Package de.xima.fc.pluginstore
Class PluginStoreItem.Builder
java.lang.Object
de.xima.fc.pluginstore.PluginStoreItem.Builder
- Enclosing class:
- PluginStoreItem
A builder for configuring a
PluginStoreItem
instance- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a new store item with the current data.description
(String description) Sets the localized description of the plugin.downloadCount
(long downloadCount) Sets the total number of downloads of the plugin.free
(boolean free) Sets if the plugin is free or not.Sets the list of image links (e.g. icons or screenshots) for the plugin.installedVersionRange
(String installedVersionRange) Sets the range of the installed versions.Sets the localized name of the plugin.Sets the plugin key of this plugin group.Sets the scope of the plugin, if it is installed.void
shortDescription
(String shortDescription) Sets a the short, plain-text description of the plugin.status
(EPluginStoreItemInstallStatus status) Sets the install status of the plugin.tags
(List<PluginStoreItemTag> tags) Sets all tags associated with the plugin.Sets the name of the most recent compatible version of the plugin.
-
Method Details
-
build
Creates a new store item with the current data. Subsequent modifications to this builder will not affect the built instance.- Returns:
- A new store item instance.
-
description
Sets the localized description of the plugin.- Parameters:
description
- The description of the plugin.- Returns:
- This builder instance for chaining method calls.
-
downloadCount
Sets the total number of downloads of the plugin.- Parameters:
downloadCount
- The number of plugin downloads.- Returns:
- This builder instance for chaining method calls.
-
images
Sets the list of image links (e.g. icons or screenshots) for the plugin. Each image link can be accessed via an HTTP GET request.- Parameters:
images
- The links for the images of the plugin.- Returns:
- This builder instance for chaining method calls.
-
installedVersionRange
Sets the range of the installed versions.- Parameters:
installedVersionRange
- Installed version range of the plugin.- Returns:
- This builder instance for chaining method calls.
-
name
Sets the localized name of the plugin.- Parameters:
name
- The name of the plugin.- Returns:
- This builder instance for chaining method calls.
-
free
Sets if the plugin is free or not.- Parameters:
free
- if the plugin is freely available.- Returns:
- This builder instance for chaining method calls.
-
pluginKey
Sets the plugin key of this plugin group.- Parameters:
pluginKey
- The key of this plugin group.- Returns:
- This builder instance for chaining method calls.
-
shortDescription
Sets a the short, plain-text description of the plugin.- Parameters:
shortDescription
- A short, plain-text (non-HTML) description.
-
status
Sets the install status of the plugin.- Parameters:
status
- The install status of the plugin.- Returns:
- This builder instance for chaining method calls.
-
tags
Sets all tags associated with the plugin.- Parameters:
tags
- A list of tags, may be empty.- Returns:
- This builder instance for chaining method calls.
-
version
Sets the name of the most recent compatible version of the plugin.- Parameters:
version
- Version of the plugin.- Returns:
- This builder instance for chaining method calls.
-
scope
Sets the scope of the plugin, if it is installed.- Parameters:
scope
- of the installed plugin.- Returns:
- This builder instance for chaining method calls.
-