Class PluginInstallerArguments
java.lang.Object
net.shibboleth.shared.cli.AbstractCommandLineArguments
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLineArguments
net.shibboleth.idp.installer.plugin.impl.PluginInstallerArguments
- All Implemented Interfaces:
CommandLineArguments
Arguments for Plugin Installer CLI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOperation enum. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringContents to list.private StringForce update version.private booleanDetailed info about installed plugins.private StringWhat to install.private PathDecomposed input - directory .private StringDecomposed input - name.private URLDecomposed input - base URL.private StringWhat to install.private StringList License.private booleanBrief info about installed plugins.private booleanBrief info about installed plugins.private org.slf4j.LoggerLogger.private booleanOverride version check.private booleanSuppress Prompts.private booleanOverride version check.What to do.private StringThe PluginId - usually used to drive the update.private StringTruststore to use for signing.private StringId to remove.private StringUpdate plugin Id.private Stringlocation to override the plugin supplied location.private InstallableComponentVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven an input string, work out what the parts are.Get the digested input directory.Get the file Name.Get the digested parent URL.org.slf4j.LoggergetLog()Get operation to perform.Plugin Id (if specified).get TrustStore (if specified).return the update URL or null.Return the version to update to or null.booleanAre we doing a full List?booleanAre we going to install from the pluginId?booleanisList()Are we doing a List?booleanAre we going to list everything from the remote site?booleanAre we checking the version or not?booleanDo we rebuild the war?booleanAre we doing an unattended install?voidprintHelp(PrintStream out) voidvalidate()Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLineArguments
getHttpClientName, getHttpClientSecurityParameterstName, getIdPHome, setHttpClientNameMethods inherited from class net.shibboleth.shared.cli.AbstractCommandLineArguments
getLanguageRanges, getLoggingConfiguration, getOtherArgs, getPropertyFiles, isANSI, isHelp, isQuietOutput, isVerboseOutput, isVersion
-
Field Details
-
log
@Nullable private org.slf4j.Logger logLogger. -
pluginId
The PluginId - usually used to drive the update. -
noPrompt
private boolean noPromptSuppress Prompts. -
list
private boolean listBrief info about installed plugins. -
listAvailable
private boolean listAvailableBrief info about installed plugins. -
noCheck
private boolean noCheckOverride version check. -
fullList
private boolean fullListDetailed info about installed plugins. -
license
List License. -
input
What to install. -
installId
What to install. -
truststore
Truststore to use for signing. -
updatePluginId
Update plugin Id. -
forceUpdateVersion
Force update version. -
uninstallId
Id to remove. -
contentsList
Contents to list. -
updateURL
location to override the plugin supplied location. -
noRebuild
private boolean noRebuildOverride version check. -
updateVersion
-
inputName
Decomposed input - name. -
inputDirectory
Decomposed input - directory . -
inputURL
Decomposed input - base URL. -
operation
What to do.
-
-
Constructor Details
-
PluginInstallerArguments
public PluginInstallerArguments()
-
-
Method Details
-
getLog
@Nonnull public org.slf4j.Logger getLog()- Specified by:
getLogin classAbstractCommandLineArguments
-
getPluginId
Plugin Id (if specified).- Returns:
- plugin ID
-
getTruststore
get TrustStore (if specified).- Returns:
- the trust store
-
getInputURL
Get the digested parent URL.- Returns:
- Returns the digested parent URL.
Only valid for
PluginInstallerArguments.OperationType.INSTALLREMOTE.
-
getInputFileName
Get the file Name. Only valid forPluginInstallerArguments.OperationType.INSTALLDIRandPluginInstallerArguments.OperationType.INSTALLREMOTE.- Returns:
- Returns the digested file Name.
-
getInputDirectory
Get the digested input directory. Only valid forPluginInstallerArguments.OperationType.INSTALLDIR.- Returns:
- Returns the digested input directory.
-
isFullList
public boolean isFullList()Are we doing a full List?- Returns:
- whether we're doing a full list.
-
isListAvailable
public boolean isListAvailable()Are we going to list everything from the remote site?- Returns:
- listAvailable.
-
isInstallId
public boolean isInstallId()Are we going to install from the pluginId?- Returns:
- whether the user specified
installId
-
isList
public boolean isList()Are we doing a List?- Returns:
- whether we're doing a list
-
isNoCheck
public boolean isNoCheck()Are we checking the version or not?- Returns:
- noCheck.
-
isUnattended
public boolean isUnattended()Are we doing an unattended install?- Returns:
- whether we're doing an unattended install
-
getUpdateVersion
Return the version to update to or null.- Returns:
- the version or null
-
getUpdateURL
return the update URL or null.- Returns:
- null or the value supplied
-
getOperation
Get operation to perform.- Returns:
- operation
-
isRebuild
public boolean isRebuild()Do we rebuild the war?- Returns:
- whether we do or not
-
validate
- Specified by:
validatein interfaceCommandLineArguments- Overrides:
validatein classAbstractCommandLineArguments- Throws:
IllegalArgumentException
-
decodeInput
Given an input string, work out what the parts are.- Returns:
- Whether this is a remote install or a local one.
-
printHelp
- Specified by:
printHelpin interfaceCommandLineArguments- Overrides:
printHelpin classAbstractIdPHomeAwareCommandLineArguments
-