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
-
public final class ModuleManagerCLI extends net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<ModuleManagerArguments>
Command line forIdPModulemanagement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.-
Fields inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description ModuleManagerCLI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private intdoList(ModuleContext moduleContext, ModuleManagerArguments args)List/report on modules.private intdoManage(ModuleContext moduleContext, ModuleManagerArguments args)Manage modules as directed.private voiddoReportOperation(IdPModule.ModuleResource resource, IdPModule.ResourceResult result)Report on a resource result.protected intdoRun(ModuleManagerArguments args)protected List<Resource>getAdditionalSpringResources()protected Class<ModuleManagerArguments>getArgumentClass()protected org.slf4j.LoggergetLogger()protected StringgetVersion()static voidmain(String[] args)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
-
-
-
-
Method Detail
-
getLogger
@Nonnull protected org.slf4j.Logger getLogger()
- Specified by:
getLoggerin classAbstractCommandLine<ModuleManagerArguments>
-
getArgumentClass
@Nonnull protected Class<ModuleManagerArguments> getArgumentClass()
- Specified by:
getArgumentClassin classAbstractCommandLine<ModuleManagerArguments>
-
getVersion
protected String getVersion()
- Specified by:
getVersionin classAbstractCommandLine<ModuleManagerArguments>
-
getAdditionalSpringResources
@Nonnull @NonnullElements @NotLive @Unmodifiable protected List<Resource> getAdditionalSpringResources()
- Overrides:
getAdditionalSpringResourcesin classAbstractCommandLine<ModuleManagerArguments>
-
doRun
protected int doRun(@Nonnull ModuleManagerArguments args)- Overrides:
doRunin classnet.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<ModuleManagerArguments>
-
doList
private int doList(@Nonnull ModuleContext moduleContext, @Nonnull ModuleManagerArguments args)List/report on modules.- Parameters:
moduleContext- contextargs- arguments- Returns:
- return code
-
doManage
private int doManage(@Nonnull ModuleContext moduleContext, @Nonnull ModuleManagerArguments args) throws ModuleExceptionManage 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
public static void main(@Nonnull String[] args)CLI entry point.- Parameters:
args- arguments
-
-