Package de.xima.fc.mdl.plugin
Class PluginMeta
- java.lang.Object
-
- de.xima.fc.mdl.plugin.PluginMeta
-
- All Implemented Interfaces:
Serializable
@Immutable public final class PluginMeta extends Object implements Serializable
A target plugin that is to be updated. Contains the name of an updated plugin, with the plugin's ID and its name. Instances of this class are equated bygetEntityId().- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginMeta(PluginID pluginId, String technicalName, String localizedName, long entityId)Creates a new POJO with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetEntityId()Get the ID of theplugin entitythat stores the plugin.StringgetLocalizedName()PluginIDgetPluginId()StringgetTechnicalName()inthashCode()booleanisHasEntity()StringtoString()
-
-
-
Constructor Detail
-
PluginMeta
public PluginMeta(PluginID pluginId, String technicalName, String localizedName, long entityId)
Creates a new POJO with the given data.- Parameters:
pluginId- The ID of the plugin.technicalName- The technical name of the plugin, if known, or the plugin ID otherwise.localizedName- The localized name of the plugin, if known.entityId- ID of the corresponding plugin entity, if an existing plugin, or-1otherwise.
-
-
Method Detail
-
getEntityId
public long getEntityId()
Get the ID of theplugin entitythat stores the plugin. If not an existing plugin, returns-1.- Returns:
- Database ID of the corresponding plugin entity.
-
getTechnicalName
public String getTechnicalName()
- Returns:
- The technical name of the plugin, if known, or
getPluginId()otherwise.
-
getLocalizedName
public String getLocalizedName()
- Returns:
- The localized name of the plugin, if known, or same as
getTechnicalName()otherwise.
-
getPluginId
public PluginID getPluginId()
- Returns:
- The ID of the plugin.
-
isHasEntity
public boolean isHasEntity()
- Returns:
- Whether a plugin entity exists.
-
-