Class PluginInstallerArguments
java.lang.Object
net.shibboleth.ext.spring.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 enum
Operation enum. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Contents to list.private String
Force update version.private boolean
Detailed info about installed plugins.private String
What to install.private Path
Decomposed input - directory .private String
Decomposed input - name.private URL
Decomposed input - base URL.private String
What to install.private String
List License.private boolean
Brief info about installed plugins.private boolean
Brief info about installed plugins.private org.slf4j.Logger
Logger.private boolean
Override version check.private boolean
Suppress Prompts.private boolean
Override version check.What to do.private String
The PluginId - usually used to drive the update.private String
Truststore to use for signing.private String
Id to remove.private String
Update plugin Id.private String
location to override the plugin supplied location.private PluginVersion
TheforceUpdateVersion
as aPluginVersion
. -
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.Logger
getLog()
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.boolean
Are we doing a full List?boolean
Are we going to install from the pluginId?boolean
isList()
Are we doing a List?boolean
Are we going to list everything from the remote site?boolean
Are we checking the version or not?boolean
Do we rebuild the war?boolean
Are we doing an unattended install?void
printHelp
(PrintStream out) void
validate()
Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLineArguments
getHttpClientName, getHttpClientSecurityParameterstName, getIdPHome, setHttpClientName
Methods inherited from class net.shibboleth.ext.spring.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
@Nullable private boolean noPromptSuppress Prompts. -
list
@Nullable private boolean listBrief info about installed plugins. -
listAvailable
@Nullable private boolean listAvailableBrief info about installed plugins. -
noCheck
@Nullable private boolean noCheckOverride version check. -
fullList
@Nullable 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
@Nullable private boolean noRebuildOverride version check. -
updateVersion
TheforceUpdateVersion
as aPluginVersion
. -
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
public org.slf4j.Logger getLog()- Specified by:
getLog
in 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.INSTALLDIR
andPluginInstallerArguments.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 calue 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:
validate
in interfaceCommandLineArguments
- Overrides:
validate
in 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:
printHelp
in interfaceCommandLineArguments
- Overrides:
printHelp
in classAbstractIdPHomeAwareCommandLineArguments
-