Package de.xima.fc.pluginstore
Class PluginStoreItem
java.lang.Object
de.xima.fc.pluginstore.PluginStoreItem
- All Implemented Interfaces:
Serializable
Model for a single store items that is shown in the plugin store. The plugin store is available via the plugin menu
page.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A builder for configuring aPluginStoreItem
instance -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginStoreItem.Builder
builder()
Creates a new builder for configuring a store item instance.Gets the localized, HTML description of the plugin.long
Gets the total number of downloads of the plugin.Gets the list of images (e.g. icons or screenshots) for the plugin.Gets the range of installed versions, if any.getName()
Gets the localized name of the plugin.Gets the plugin key of this plugin group.getScope()
Gets the scope of the plugin.Gets the short localized, plain-text description of the plugin.Gets the install status of the plugin.getTags()
Gets all tags associated with the plugin.Gets the name of the most recent compatible version of the plugin.boolean
Checks whether the plugin must be downgrade if installed.boolean
isFree()
Gets if the plugin is freely available.boolean
Checks whether the plugin can be installed, depending on itsgetStatus()
.toString()
-
Method Details
-
getDescription
Gets the localized, HTML description of the plugin.- Returns:
- The description of the plugin.
-
getDownloadCount
public long getDownloadCount()Gets the total number of downloads of the plugin.- Returns:
- The number of plugin downloads.
-
getImages
Gets the list of images (e.g. icons or screenshots) for the plugin.- Returns:
- A list with all image links.
-
getInstalledVersionRange
Gets the range of installed versions, if any.- Returns:
- The range of installed versions.
-
getName
Gets the localized name of the plugin.- Returns:
- The name of the plugin.
-
getPluginKey
Gets the plugin key of this plugin group.- Returns:
- The key of the plugin group.
-
getShortDescription
Gets the short localized, plain-text description of the plugin.- Returns:
- The short description of the plugin.
-
getStatus
Gets the install status of the plugin.- Returns:
- The install status of the plugin.
-
getTags
Gets all tags associated with the plugin.- Returns:
- A list of tags, may be empty.
-
getTagsJson
-
getVersion
Gets the name of the most recent compatible version of the plugin.- Returns:
- Version of the plugin.
-
getScope
Gets the scope of the plugin.- Returns:
- The scope of the plugin.
-
isFree
public boolean isFree()Gets if the plugin is freely available.- Returns:
- if the plugin is freely available.
-
isDowngrade
public boolean isDowngrade()Checks whether the plugin must be downgrade if installed.- Returns:
- Whether installing the plugin is a downgrade.
-
isInstallable
public boolean isInstallable()Checks whether the plugin can be installed, depending on itsgetStatus()
.- Returns:
- Whether the plugin can be installed.
-
toString
-
builder
Creates a new builder for configuring a store item instance.- Returns:
- A new builder for a store item.
-