Package de.xima.fc.pluginstore
Class PluginStoreModel
java.lang.Object
de.xima.fc.pluginstore.PluginStoreModel
- All Implemented Interfaces:
Serializable
Model for the plugin store that can be opened via the plugin menu page. Contains meta data for the store as well as a
list of items.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginStoreModel
(List<PluginStoreItem> items) Creates a new store model with the given data. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginStoreModel
empty()
Returns an empty store model with no items.A list of all free store items (plugins) that are currently not installed but available to install.A list of all licensed store items (plugins) that are currently not installed but available to install.A list of all store items (plugins) that are currently installed.getItems()
A list of all store items (plugins) that are currently installed.getTags()
A list of all tags from all plugin items, sorted by name.A list of all store items (plugins) that are currently not installed and unavailable e.g. due to not included in the current license.long
numberOfTags
(String tagName) Returns the number of plugin store items with the given tag name.
-
Constructor Details
-
PluginStoreModel
Creates a new store model with the given data.- Parameters:
items
- A list of all plugins.
-
-
Method Details
-
getAvailableLicensedItems
A list of all licensed store items (plugins) that are currently not installed but available to install.- Returns:
- A list of all available not installed plugins.
-
getAvailableFreeItems
A list of all free store items (plugins) that are currently not installed but available to install.- Returns:
- A list of all available not installed plugins.
-
getInstalledItems
A list of all store items (plugins) that are currently installed.- Returns:
- A list of all available installed plugins.
-
getItems
A list of all store items (plugins) that are currently installed.- Returns:
- A list of all plugins.
-
getTags
A list of all tags from all plugin items, sorted by name.- Returns:
- A list of all tags.
-
empty
Returns an empty store model with no items.- Returns:
- An empty store model.
-
numberOfTags
Returns the number of plugin store items with the given tag name.- Parameters:
tagName
- tag name to filter for- Returns:
- The number of plugin store models that have the specified tag.
-