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
public class PluginInstallerArguments extends AbstractIdPHomeAwareCommandLineArguments
Arguments for Plugin Installer CLI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPluginInstallerArguments.OperationTypeOperation enum.
-
Field Summary
Fields Modifier and Type Field Description private StringcontentsListContents to list.private StringforceUpdateVersionForce update version.private booleanfullListDetailed info about installed plugins.private StringinputWhat to install.private PathinputDirectoryDecomposed input - directory .private StringinputNameDecomposed input - name.private URLinputURLDecomposed input - base URL.private StringinstallIdWhat to install.private StringlicenseList License.private booleanlistBrief info about installed plugins.private booleanlistAvailableBrief info about installed plugins.private org.slf4j.LoggerlogLogger.private booleannoCheckOverride version check.private booleannoPromptSuppress Prompts.private booleannoRebuildOverride version check.private PluginInstallerArguments.OperationTypeoperationWhat to do.private StringpluginIdThe PluginId - usually used to drive the update.private StringtruststoreTruststore to use for signing.private StringuninstallIdId to remove.private StringupdatePluginIdUpdate plugin Id.private StringupdateURLlocation to override the plugin supplied location.private PluginVersionupdateVersionTheforceUpdateVersionas aPluginVersion.
-
Constructor Summary
Constructors Constructor Description PluginInstallerArguments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private PluginInstallerArguments.OperationTypedecodeInput()Given an input string, work out what the parts are.PathgetInputDirectory()Get the digested input directory.StringgetInputFileName()Get the file Name.URLgetInputURL()Get the digested parent URL.org.slf4j.LoggergetLog()PluginInstallerArguments.OperationTypegetOperation()Get operation to perform.StringgetPluginId()Plugin Id (if specified).StringgetTruststore()get TrustStore (if specified).StringgetUpdateURL()return the update URL or null.PluginVersiongetUpdateVersion()Return the version to update to or null.booleanisFullList()Are we doing a full List?booleanisInstallId()Are we going to install from the pluginId?booleanisList()Are we doing a List?booleanisListAvailable()Are we going to list everything from the remote site?booleanisNoCheck()Are we checking the version or not?booleanisRebuild()Do we rebuild the war?booleanisUnattended()Are we doing an unattended install?voidprintHelp(PrintStream out)voidvalidate()-
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 Detail
-
log
@Nullable private org.slf4j.Logger log
Logger.
-
pluginId
@Nullable private String pluginId
The PluginId - usually used to drive the update.
-
noPrompt
@Nullable private boolean noPrompt
Suppress Prompts.
-
list
@Nullable private boolean list
Brief info about installed plugins.
-
listAvailable
@Nullable private boolean listAvailable
Brief info about installed plugins.
-
noCheck
@Nullable private boolean noCheck
Override version check.
-
fullList
@Nullable private boolean fullList
Detailed info about installed plugins.
-
license
@Nullable private String license
List License.
-
input
@Nullable private String input
What to install.
-
installId
@Nullable private String installId
What to install.
-
truststore
@Nullable private String truststore
Truststore to use for signing.
-
updatePluginId
@Nullable private String updatePluginId
Update plugin Id.
-
forceUpdateVersion
@Nullable private String forceUpdateVersion
Force update version.
-
uninstallId
@Nullable private String uninstallId
Id to remove.
-
contentsList
@Nullable private String contentsList
Contents to list.
-
updateURL
@Nullable private String updateURL
location to override the plugin supplied location.
-
noRebuild
@Nullable private boolean noRebuild
Override version check.
-
updateVersion
@Nullable private PluginVersion updateVersion
TheforceUpdateVersionas aPluginVersion.
-
inputName
@Nullable private String inputName
Decomposed input - name.
-
inputDirectory
@Nullable private Path inputDirectory
Decomposed input - directory .
-
inputURL
@Nullable private URL inputURL
Decomposed input - base URL.
-
operation
@Nonnull private PluginInstallerArguments.OperationType operation
What to do.
-
-
Method Detail
-
getLog
public org.slf4j.Logger getLog()
- Specified by:
getLogin classAbstractCommandLineArguments
-
getPluginId
@Nullable public String getPluginId()
Plugin Id (if specified).- Returns:
- plugin ID
-
getTruststore
@Nullable public String getTruststore()
get TrustStore (if specified).- Returns:
- the trust store
-
getInputURL
public URL getInputURL()
Get the digested parent URL.- Returns:
- Returns the digested parent URL.
Only valid for
PluginInstallerArguments.OperationType.INSTALLREMOTE.
-
getInputFileName
public String getInputFileName()
Get the file Name. Only valid forPluginInstallerArguments.OperationType.INSTALLDIRandPluginInstallerArguments.OperationType.INSTALLREMOTE.- Returns:
- Returns the digested file Name.
-
getInputDirectory
public Path 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
@Nullable public PluginVersion getUpdateVersion()
Return the version to update to or null.- Returns:
- the version or null
-
getUpdateURL
@Nullable public String getUpdateURL()
return the update URL or null.- Returns:
- null or the calue supplied
-
getOperation
@Nullable public PluginInstallerArguments.OperationType getOperation()
Get operation to perform.- Returns:
- operation
-
isRebuild
public boolean isRebuild()
Do we rebuild the war?- Returns:
- whether we do or not
-
validate
public void validate() throws IllegalArgumentException- Specified by:
validatein interfaceCommandLineArguments- Overrides:
validatein classAbstractCommandLineArguments- Throws:
IllegalArgumentException
-
decodeInput
private PluginInstallerArguments.OperationType decodeInput()
Given an input string, work out what the parts are.- Returns:
- Whether this is a remote install or a local one.
-
printHelp
public void printHelp(PrintStream out)
- Specified by:
printHelpin interfaceCommandLineArguments- Overrides:
printHelpin classAbstractIdPHomeAwareCommandLineArguments
-
-