Package net.shibboleth.idp.plugin
Class AbstractIdPPlugin
java.lang.Object
net.shibboleth.idp.plugin.AbstractIdPPlugin
- All Implemented Interfaces:
IdPPlugin
- Direct Known Subclasses:
PropertyDrivenIdPPlugin
A base class implementing
IdPPlugin that defaults common settings.- Since:
- 4.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionModules to disable on removal.Modules to enable on install. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the modules to disable after plugin removal.Get the modules to enable after plugin installation or upgrade.Return the classpath location of the license file to emit when --license is specified.intReturn The patch version, (as defined by the Java Product Version Policy.Return the unique identifier for the plugin.Get the IDs of anyIdPModules required for installation of this plugin.inthashCode()protected voidsetDisableOnRemoval(Set<IdPModule> modules) Set the modules to disable on removal.protected voidsetEnableOnInstall(Set<IdPModule> modules) Set the modules to enable on install.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.idp.plugin.IdPPlugin
getMajorVersion, getMinorVersion, getUpdateURLs
-
Field Details
-
enableModules
Modules to enable on install. -
disableModules
Modules to disable on removal.
-
-
Constructor Details
-
AbstractIdPPlugin
public AbstractIdPPlugin()Constructor.
-
-
Method Details
-
getPluginId
Return the unique identifier for the plugin. This name MUST be- renderable in all file systems (for instance alphanumerics, '-' and '.' only)
- unique. This is best done using java module guidance
org.example.plugins.myplugin- Specified by:
getPluginIdin interfaceIdPPlugin- Returns:
- The id of this plugin.
-
getPatchVersion
@Nonnegative public int getPatchVersion()Return The patch version, (as defined by the Java Product Version Policy.- Specified by:
getPatchVersionin interfaceIdPPlugin- Returns:
- The patch version.
-
getRequiredModules
Get the IDs of anyIdPModules required for installation of this plugin.- Specified by:
getRequiredModulesin interfaceIdPPlugin- Returns:
- module IDs that are required
-
getEnableOnInstall
Get the modules to enable after plugin installation or upgrade.- Specified by:
getEnableOnInstallin interfaceIdPPlugin- Returns:
- modules to enable
-
getLicenseFileLocation
Return the classpath location of the license file to emit when --license is specified.- Specified by:
getLicenseFileLocationin interfaceIdPPlugin- Returns:
- the location
-
setEnableOnInstall
Set the modules to enable on install.- Parameters:
modules- modules to enable
-
getDisableOnRemoval
Get the modules to disable after plugin removal.- Specified by:
getDisableOnRemovalin interfaceIdPPlugin- Returns:
- modules to disable
-
setDisableOnRemoval
Set the modules to disable on removal.- Parameters:
modules- modules to disable
-
equals
-
hashCode
public int hashCode() -
toString
-