Package com.evolveum.midpoint.ninja.util
Class NinjaUtils
java.lang.Object
com.evolveum.midpoint.ninja.util.NinjaUtils
Created by Viliam Repan (lazyman).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GetOperationOptionsBuilder
addIncludeOptionsForExport
(GetOperationOptionsBuilder optionsBuilder, Class<? extends Containerable> type) static File
computeInstallationDirectory
(File installationDirectory, NinjaContext context) static File
computeInstallationDirectory
(File installationDirectory, File midpointHomeDirectory) static String
createHelp
(com.beust.jcommander.JCommander jc, String parsedCommand) static ObjectFilter
createObjectFilter
(FileReference strFilter, NinjaContext context, Class<? extends Containerable> objectClass) static ObjectQuery
createObjectQuery
(FileReference ref, NinjaContext context, Class<? extends Containerable> objectClass) static Writer
createWriter
(File output, Charset charset, boolean zip, boolean overwrite, PrintStream defaultOutput) static <T> T
getOptions
(List<Object> options, Class<T> type) static List<ObjectTypes>
getTypes
(Set<ObjectTypes> selected) static String
printFormatted
(String message, Object... args) static String
printObjectNameOidAndType
(PrismObject<?> object) static String
static String
static com.beust.jcommander.JCommander
-
Field Details
-
PATTERN
-
XML_OBJECTS_PREFIX
- See Also:
-
XML_OBJECTS_SUFFIX
- See Also:
-
XML_DELTAS_PREFIX
- See Also:
-
XML_DELTAS_SUFFIX
- See Also:
-
DELTA_LIST_DELTA
-
JSON_OBJECTS_PREFIX
- See Also:
-
JSON_OBJECTS_SUFFIX
- See Also:
-
DECIMAL_FORMAT
-
COUNT_STATUS_LOG_INTERVAL
public static final long COUNT_STATUS_LOG_INTERVAL- See Also:
-
WAIT_FOR_EXECUTOR_FINISH
public static final long WAIT_FOR_EXECUTOR_FINISH- See Also:
-
-
Constructor Details
-
NinjaUtils
public NinjaUtils()
-
-
Method Details
-
setupCommandLineParser
public static com.beust.jcommander.JCommander setupCommandLineParser() -
getOptions
-
createObjectFilter
public static ObjectFilter createObjectFilter(FileReference strFilter, NinjaContext context, Class<? extends Containerable> objectClass) throws IOException, SchemaException - Throws:
IOException
SchemaException
-
createObjectQuery
public static ObjectQuery createObjectQuery(FileReference ref, NinjaContext context, Class<? extends Containerable> objectClass) throws IOException, SchemaException - Throws:
IOException
SchemaException
-
printStackToString
-
createWriter
public static Writer createWriter(File output, Charset charset, boolean zip, boolean overwrite, PrintStream defaultOutput) throws IOException - Throws:
IOException
-
addIncludeOptionsForExport
public static GetOperationOptionsBuilder addIncludeOptionsForExport(GetOperationOptionsBuilder optionsBuilder, Class<? extends Containerable> type) -
getTypes
-
computeInstallationDirectory
public static File computeInstallationDirectory(File installationDirectory, NinjaContext context) throws NinjaException - Throws:
NinjaException
-
computeInstallationDirectory
public static File computeInstallationDirectory(File installationDirectory, File midpointHomeDirectory) throws NinjaException - Throws:
NinjaException
-
readInput
-
printFormatted
-
createHelp
-
printObjectNameOidAndType
-