Package de.xima.fc.plugin.lifecycle
Class DefaultPluginLifecycleData
- java.lang.Object
-
- de.xima.fc.plugin.lifecycle.DefaultPluginLifecycleData
-
- All Implemented Interfaces:
IPluginDefaultLifecycleData,IPluginInitializeBeanData,IPluginInitializeData,IPluginInstallData,IPluginShutdownData,IPluginUninstallData
- Direct Known Subclasses:
DefaultPluginValidationData
public class DefaultPluginLifecycleData extends Object implements IPluginInitializeData, IPluginInitializeBeanData, IPluginShutdownData, IPluginInstallData, IPluginUninstallData
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.interfaces.plugin.lifecycle.IPluginDefaultLifecycleData
SYSTEM_SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginLifecycleData(PluginRuntime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MandantgetClient()Gets the client where the plugin is installed ornullif it is installed in system scope.IPluginFileHelpergetFileHelper()Gets the helper-class for working with plugin-filesFrontendServergetFrontendServer()Gets the frontend-server where the plugin is installed ornullif it is installed on an master-serverIPluginManifestgetManifest()Gets the manifest of the plugin.StringgetPluginFileKey()Gets the plugin file key of the plugin file.StringgetPluginKey()Gets the plugin key of the plugin.PropertiesgetProperties()Returns the properties of the pluginIPluginResourceHelpergetResourceHelper()Gets the helper-class for working with resourcesStringgetRuntimeKey()Returns the plugin-runtime-keyStringgetScopeKey()Returns the plugin scope-key: Could be theIPluginDefaultLifecycleData.SYSTEM_SCOPE_KEYor the uuid of the client
-
-
-
Constructor Detail
-
DefaultPluginLifecycleData
public DefaultPluginLifecycleData(PluginRuntime runtime)
-
-
Method Detail
-
getScopeKey
public String getScopeKey()
Description copied from interface:IPluginDefaultLifecycleDataReturns the plugin scope-key: Could be theIPluginDefaultLifecycleData.SYSTEM_SCOPE_KEYor the uuid of the client- Specified by:
getScopeKeyin interfaceIPluginDefaultLifecycleData- Returns:
- Client UUID or
IPluginDefaultLifecycleData.SYSTEM_SCOPE_KEY
-
getManifest
public IPluginManifest getManifest()
Description copied from interface:IPluginDefaultLifecycleDataGets the manifest of the plugin.- Specified by:
getManifestin interfaceIPluginDefaultLifecycleData- Returns:
- The manifest of the plugin.
-
getPluginKey
public String getPluginKey()
Description copied from interface:IPluginDefaultLifecycleDataGets the plugin key of the plugin. The key uniquely identifies the plugin. A plugin may consist of multiple JAR files. In that case, each JAR file has a differentIPluginDefaultLifecycleData.getPluginFileKey().- Specified by:
getPluginKeyin interfaceIPluginDefaultLifecycleData- Returns:
- The plugin key.
-
getPluginFileKey
public String getPluginFileKey()
Description copied from interface:IPluginDefaultLifecycleDataGets the plugin file key of the plugin file. The key uniquely identifies the plugin JAR file. A plugin may consist of multiple JAR files. In that case, each JAR file has a different plugin file key, but the sameIPluginDefaultLifecycleData.getPluginKey(). If a plugin only has one JAR file, the file key is usually empty.- Specified by:
getPluginFileKeyin interfaceIPluginDefaultLifecycleData- Returns:
- The plugin file key.
-
getRuntimeKey
public String getRuntimeKey()
Description copied from interface:IPluginDefaultLifecycleDataReturns the plugin-runtime-key- Specified by:
getRuntimeKeyin interfaceIPluginDefaultLifecycleData- Returns:
- The plugin-runtime-key
-
getClient
public Mandant getClient()
Description copied from interface:IPluginDefaultLifecycleDataGets the client where the plugin is installed ornullif it is installed in system scope.- Specified by:
getClientin interfaceIPluginDefaultLifecycleData- Returns:
- The
clientornullif the plugin is installed in system scope.
-
getFrontendServer
public FrontendServer getFrontendServer()
Description copied from interface:IPluginDefaultLifecycleDataGets the frontend-server where the plugin is installed ornullif it is installed on an master-server- Specified by:
getFrontendServerin interfaceIPluginDefaultLifecycleData- Returns:
- The frontend server, or
nullif the plugin is installed in on an master-server
-
getProperties
public Properties getProperties()
Description copied from interface:IPluginDefaultLifecycleDataReturns the properties of the plugin- Specified by:
getPropertiesin interfaceIPluginDefaultLifecycleData- Returns:
- The plugin properties.
-
getFileHelper
public IPluginFileHelper getFileHelper()
Description copied from interface:IPluginDefaultLifecycleDataGets the helper-class for working with plugin-files- Specified by:
getFileHelperin interfaceIPluginDefaultLifecycleData- Returns:
- The plugin file helper
-
getResourceHelper
public IPluginResourceHelper getResourceHelper()
Description copied from interface:IPluginDefaultLifecycleDataGets the helper-class for working with resources- Specified by:
getResourceHelperin interfaceIPluginDefaultLifecycleData- Returns:
- The plugin resource helper.
-
-