Package net.shibboleth.idp.module.impl
Class ModuleManagerCLI
java.lang.Object
net.shibboleth.ext.spring.cli.AbstractCommandLine<T>
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<ModuleManagerArguments>
net.shibboleth.idp.module.impl.ModuleManagerCLI
Command line for
IdPModule
management.-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes
-
Field Summary
FieldsFields inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
doList
(ModuleContext moduleContext, ModuleManagerArguments args) List/report on modules.private int
doManage
(ModuleContext moduleContext, ModuleManagerArguments args) Manage modules as directed.private void
doReportOperation
(IdPModule.ModuleResource resource, IdPModule.ResourceResult result) Report on a resource result.protected int
doRun
(ModuleManagerArguments args) protected Class<ModuleManagerArguments>
protected org.slf4j.Logger
protected String
static void
CLI entry point.Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine
getHttpClient, getHttpClientSecurityParameters
Methods inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
getApplicationContext, initLogging, run, 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:
getLogger
in classAbstractCommandLine<ModuleManagerArguments>
-
getArgumentClass
- Specified by:
getArgumentClass
in classAbstractCommandLine<ModuleManagerArguments>
-
getVersion
- Specified by:
getVersion
in classAbstractCommandLine<ModuleManagerArguments>
-
getAdditionalSpringResources
@Nonnull @NonnullElements @NotLive @Unmodifiable protected List<Resource> getAdditionalSpringResources()- Overrides:
getAdditionalSpringResources
in classAbstractCommandLine<ModuleManagerArguments>
-
doRun
- Overrides:
doRun
in 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 IdPModule.ModuleResource resource, @Nonnull IdPModule.ResourceResult result) Report on a resource result.- Parameters:
resource
- resourceresult
- result of operation
-
main
CLI entry point.- Parameters:
args
- arguments
-