Package net.shibboleth.idp.cli.impl
Class ModuleManagerCLI
java.lang.Object
net.shibboleth.shared.cli.AbstractCommandLine<T>
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<ModuleManagerArguments>
net.shibboleth.idp.cli.impl.ModuleManagerCLI
Command line for
IdPModule management.-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.shared.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes -
Field Summary
FieldsFields inherited from class net.shibboleth.shared.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intdoList(ModuleContext moduleContext, ModuleManagerArguments args) List/report on modules.private intdoManage(ModuleContext moduleContext, ModuleManagerArguments args) Manage modules as directed.private voiddoReportOperation(Module.ModuleResource resource, Module.ResourceResult result) Report on a resource result.protected intdoRun(ModuleManagerArguments args) protected Class<ModuleManagerArguments>protected org.slf4j.Loggerprotected Stringstatic voidCLI entry point.Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine
getHttpClient, getHttpClientSecurityParametersMethods inherited from class net.shibboleth.shared.cli.AbstractCommandLine
getApplicationContext, initLogging, run, setCaseSensitiveOptions, setContextInitializer
-
Field Details
-
log
@Nullable private org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
ModuleManagerCLI
public ModuleManagerCLI()
-
-
Method Details
-
getLogger
@Nonnull protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractCommandLine<ModuleManagerArguments>
-
getArgumentClass
- Specified by:
getArgumentClassin classAbstractCommandLine<ModuleManagerArguments>
-
getVersion
- Specified by:
getVersionin classAbstractCommandLine<ModuleManagerArguments>
-
getAdditionalSpringResources
- Overrides:
getAdditionalSpringResourcesin classAbstractCommandLine<ModuleManagerArguments>
-
doRun
- Overrides:
doRunin classAbstractIdPHomeAwareCommandLine<ModuleManagerArguments>
-
doList
List/report on modules.- Parameters:
moduleContext- contextargs- arguments- Returns:
- return code
-
doManage
private int doManage(@Nonnull ModuleContext moduleContext, @Nonnull ModuleManagerArguments args) throws ModuleException Manage modules as directed.- Parameters:
moduleContext- contextargs- arguments- Returns:
- return code
- Throws:
ModuleException- to report module errors
-
doReportOperation
private void doReportOperation(@Nonnull Module.ModuleResource resource, @Nonnull Module.ResourceResult result) Report on a resource result.- Parameters:
resource- resourceresult- result of operation
-
main
CLI entry point.- Parameters:
args- arguments
-