Package de.xima.fc.mdl.plugin
Class PluginMeta
java.lang.Object
de.xima.fc.mdl.plugin.PluginMeta
- All Implemented Interfaces:
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 by
getEntityId().- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginMeta(PluginID pluginId, String technicalName, String localizedName, long entityId) PluginMeta(PluginID pluginId, String technicalName, String localizedName, WorkspaceScope scope, long entityId) Creates a new POJO with the given data. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongGet the ID of theplugin entitythat stores the plugin.getScope()inthashCode()booleantoString()
-
Constructor Details
-
PluginMeta
public PluginMeta(PluginID pluginId, String technicalName, String localizedName, WorkspaceScope scope, 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.scope- The scope of the plugin, if known.entityId- ID of the corresponding plugin entity, if an existing plugin, or-1otherwise.
-
PluginMeta
-
-
Method Details
-
equals
-
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
- Returns:
- The technical name of the plugin, if known, or
getPluginId()otherwise.
-
getLocalizedName
- Returns:
- The localized name of the plugin, if known, or same as
getTechnicalName()otherwise.
-
getScope
- Returns:
- The scope of the plugin, if known.
-
getPluginId
- Returns:
- The ID of the plugin.
-
hashCode
public int hashCode() -
isHasEntity
public boolean isHasEntity()- Returns:
- Whether a plugin entity exists.
-
toString
-