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 TypeMethodDescriptionboolean
Get 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.int
Return The patch version, (as defined by the Java Product Version Policy.Return the unique identifier for the plugin.Get the IDs of anyIdPModule
s required for installation of this plugin.int
hashCode()
protected void
setDisableOnRemoval
(Set<IdPModule> modules) Set the modules to disable on removal.protected void
setEnableOnInstall
(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, wait
Methods 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:
getPluginId
in 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:
getPatchVersion
in interfaceIdPPlugin
- Returns:
- The patch version.
-
getRequiredModules
Get the IDs of anyIdPModule
s required for installation of this plugin.- Specified by:
getRequiredModules
in interfaceIdPPlugin
- Returns:
- module IDs that are required
-
getEnableOnInstall
Get the modules to enable after plugin installation or upgrade.- Specified by:
getEnableOnInstall
in interfaceIdPPlugin
- Returns:
- modules to enable
-
getLicenseFileLocation
Return the classpath location of the license file to emit when --license is specified.- Specified by:
getLicenseFileLocation
in 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:
getDisableOnRemoval
in interfaceIdPPlugin
- Returns:
- modules to disable
-
setDisableOnRemoval
Set the modules to disable on removal.- Parameters:
modules
- modules to disable
-
equals
-
hashCode
public int hashCode() -
toString
-