Package com.priint.pubserver.plugin
Class PluginInfo
java.lang.Object
com.priint.pubserver.plugin.PluginInfo
POJO that describes a PluginLib or Plugin.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumClassifies an object as metadata for a library of plug-ins or a single plug-in. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a plugin POJO objectPluginInfo(String uid, String name, PluginLibraryControl.PluginType type, boolean active) Creates a plugin POJO object with necessary information -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Get List of Plug-ins of the LibrarygetType()getUid()voidsetActive(boolean active) Set plugin to active.voidsetClassifier(PluginInfo.ClassifierType classifier) voidsetDescription(String description) voidset label of the PluginLib / Plug-invoidsetPlugins(List<PluginInfo> plugins) Set the list of plug-ins for a libraryvoidvoidvoidvoidsetVersion(String version) voidshow()generate formatted textual information for this objecttoString()
-
Constructor Details
-
PluginInfo
public PluginInfo()Creates a plugin POJO object -
PluginInfo
Creates a plugin POJO object with necessary information- Parameters:
uid-name-type-active-
-
-
Method Details
-
getName
- Returns:
- label of the PluginLib / Plug-in
-
setName
set label of the PluginLib / Plug-in- Parameters:
name-
-
getDescription
- Returns:
- description
-
setDescription
- Parameters:
description-
-
getVersion
- Returns:
- version
-
setVersion
- Parameters:
version-
-
getType
- Returns:
- type of plugin or library
-
setType
- Parameters:
type- of plugin or library
-
getClassifier
- Returns:
- classifier
-
setClassifier
- Parameters:
classifier-
-
getActive
public boolean getActive()- Returns:
- if plugin is active (deployed)
-
setActive
public void setActive(boolean active) Set plugin to active. This is only to be set from the Kernel.- Parameters:
active-
-
getPlugins
Get List of Plug-ins of the Library- Returns:
- List
Plug-ins of Plug-in Library
-
setPlugins
Set the list of plug-ins for a library- Parameters:
plugins-
-
getUid
- Returns:
- id of this plugin or library
-
setUid
- Parameters:
uid-
-
show
public void show()generate formatted textual information for this object -
getVendor
- Returns:
- vendor
-
setVendor
- Parameters:
vendor-
-
toString
-