Package com.evolveum.midpoint.ninja.util
Class NinjaUtils
java.lang.Object
com.evolveum.midpoint.ninja.util.NinjaUtils
Created by Viliam Repan (lazyman).
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic GetOperationOptionsBuilderaddIncludeOptionsForExport(GetOperationOptionsBuilder optionsBuilder, Class<? extends Containerable> type) static FilecomputeInstallationDirectory(File installationDirectory, NinjaContext context) static FilecomputeInstallationDirectory(File installationDirectory, File midpointHomeDirectory) static StringcreateHelp(com.beust.jcommander.JCommander jc, String parsedCommand) static ObjectFiltercreateObjectFilter(FileReference strFilter, NinjaContext context, Class<? extends Containerable> objectClass) static ObjectQuerycreateObjectQuery(FileReference ref, NinjaContext context, Class<? extends Containerable> objectClass) static WritercreateWriter(File output, Charset charset, boolean zip, boolean overwrite, PrintStream defaultOutput) static <T> TgetOptions(List<Object> options, Class<T> type) static List<ObjectTypes>getTypes(Set<ObjectTypes> selected) static StringprintFormatted(String message, Object... args) static StringprintObjectNameOidAndType(PrismObject<?> object) static Stringstatic Stringstatic 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_INTERVALpublic static final long COUNT_STATUS_LOG_INTERVAL- See Also:
 
- 
WAIT_FOR_EXECUTOR_FINISHpublic static final long WAIT_FOR_EXECUTOR_FINISH- See Also:
 
 
- 
- 
Constructor Details- 
NinjaUtilspublic NinjaUtils()
 
- 
- 
Method Details- 
setupCommandLineParserpublic static com.beust.jcommander.JCommander setupCommandLineParser()
- 
getOptions
- 
createObjectFilterpublic static ObjectFilter createObjectFilter(FileReference strFilter, NinjaContext context, Class<? extends Containerable> objectClass) throws IOException, SchemaException - Throws:
- IOException
- SchemaException
 
- 
createObjectQuerypublic static ObjectQuery createObjectQuery(FileReference ref, NinjaContext context, Class<? extends Containerable> objectClass) throws IOException, SchemaException - Throws:
- IOException
- SchemaException
 
- 
printStackToString
- 
createWriterpublic static Writer createWriter(File output, Charset charset, boolean zip, boolean overwrite, PrintStream defaultOutput) throws IOException - Throws:
- IOException
 
- 
addIncludeOptionsForExportpublic static GetOperationOptionsBuilder addIncludeOptionsForExport(GetOperationOptionsBuilder optionsBuilder, Class<? extends Containerable> type) 
- 
getTypes
- 
computeInstallationDirectorypublic static File computeInstallationDirectory(File installationDirectory, NinjaContext context) throws NinjaException - Throws:
- NinjaException
 
- 
computeInstallationDirectorypublic static File computeInstallationDirectory(File installationDirectory, File midpointHomeDirectory) throws NinjaException - Throws:
- NinjaException
 
- 
readInput
- 
printFormatted
- 
createHelp
- 
printObjectNameOidAndType
 
-