Package de.xima.fc.entities.interfaces
Interface IPluginEntity<META extends IPluginFileEntity<?,?,?>,DATA extends IFileDataEntity<META>,CONFIG extends IFileDataEntity<META>>
- 
- Type Parameters:
 META- File entity with the file meta data of the plugin file, such as the file size.DATA- Data entity with the binary data of the plugin JAR.CONFIG- Data entity with the properties configuration file of the plugin.
- All Superinterfaces:
 Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>,IDescriptionProviding,de.xima.cmn.dao.interfaces.IEntity<Long>,INameProviding,IUUIDEntity,Serializable
- All Known Implementing Classes:
 APluginEntity,ClientPlugin,SystemPlugin
public interface IPluginEntity<META extends IPluginFileEntity<?,?,?>,DATA extends IFileDataEntity<META>,CONFIG extends IFileDataEntity<META>> extends IUUIDEntity, INameProviding, IDescriptionProviding, de.xima.cmn.dao.interfaces.IEntity<Long>
A plugin entity, either scoped to a particular client or to the system.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Field Summary
- 
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION 
- 
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME 
- 
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description METAgetFileEntity()StringgetPluginFileKey()PluginIDgetPluginId()Gets the ID of this plugin, if it has one.StringgetPluginKey()StringgetPluginRepository()StringgetRuntimeKey()StringgetScopeKey()booleanisActive()booleanisRemoteSync()voidsetActive(boolean active)voidsetBeschreibung(String description)voidsetName(String name)voidsetPluginFileKey(String pluginFileKey)voidsetPluginKey(String pluginKey)voidsetPluginRepository(String pluginRepository)voidsetRemoteSync(boolean sync)- 
Methods inherited from interface java.lang.Comparable
compareTo 
- 
Methods inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
getBeschreibung, getDescription 
- 
Methods inherited from interface de.xima.fc.entities.interfaces.INameProviding
getName 
- 
Methods inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
getUUID, getUUIDObject, setUUID 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getFileEntity
META getFileEntity()
- Returns:
 - File entity with the file meta data of the plugin file, such as the file size.
 
 
- 
getPluginFileKey
String getPluginFileKey()
- Returns:
 - The plugin file key as reported by the plugin, part of the ID that identifies the plugin. Plugins do not have a file key when they consist of only a single file.
 
 
- 
getPluginId
PluginID getPluginId()
Gets the ID of this plugin, if it has one.- Returns:
 - The ID of this plugin, or 
nullif this plugin does not have an ID. 
 
- 
getPluginKey
String getPluginKey()
- Returns:
 - The plugin key as reported by the plugin, part of the ID that identifies the plugin. All plugins must have a plugin key, but legacy plugins may not have such a key yet.
 
 
- 
getPluginRepository
String getPluginRepository()
- Returns:
 - The repository of the plugin. Defaults to 
REPOSITORY_NONE. When a repository exists, the plugin can e.g. be updated automatically. 
 
- 
getRuntimeKey
String getRuntimeKey()
- Returns:
 - The runtime key of the plugin, the UUID of the database entity.
 
 
- 
getScopeKey
String getScopeKey()
- Returns:
 - The scope key of this plugin, either the client UUID for client-scoped plugins or
 
SYSTEM_SCOPE_KEYfor system scoped plugins. 
 
- 
isActive
boolean isActive()
- Returns:
 - Whether this plugin is currently enabled.
 
 
- 
isRemoteSync
boolean isRemoteSync()
- Returns:
 - Whether this plugin is allowed to be enabled on the frontend server.
 
 
- 
setActive
void setActive(boolean active)
- Parameters:
 active- Whether this plugin is currently enabled.
 
- 
setBeschreibung
void setBeschreibung(String description)
- Parameters:
 description- Internal description of the plugin.
 
- 
setName
void setName(String name)
- Parameters:
 name- The name of the plugin, e.g. the file name.
 
- 
setPluginFileKey
void setPluginFileKey(String pluginFileKey)
- Parameters:
 pluginFileKey- The plugin file key as reported by the plugin, part of the ID that identifies the plugin. Plugins do not have a file key when they consist of only a single file.
 
- 
setPluginKey
void setPluginKey(String pluginKey)
- Parameters:
 pluginKey- The plugin key as reported by the plugin, part of the ID that identifies the plugin. All plugins must have a plugin key, but legacy plugins may not have such a key yet.
 
- 
setPluginRepository
void setPluginRepository(String pluginRepository)
- Parameters:
 pluginRepository- The repository of the plugin. Defaults toREPOSITORY_NONE. When a repository exists, the plugin can e.g. be updated automatically.
 
- 
setRemoteSync
void setRemoteSync(boolean sync)
- Parameters:
 sync- Whether this plugin is allowed to be enabled on the frontend server.
 
 - 
 
 -