|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.BasicData net.sf.basedb.core.data.OwnedData net.sf.basedb.core.data.SharedData net.sf.basedb.core.data.PluginDefinitionData
public class PluginDefinitionData
This class represent an installed plugin.
PluginDefinition
,
PluginsField Summary | |
---|---|
private boolean |
allowImmediateExecution
|
private AnnotationSetData |
annotationSet
|
private String |
className
|
private Set<PluginConfigurationData> |
configurations
|
private String |
contact
|
private String |
copyright
|
private String |
description
|
private String |
email
|
private Date |
entryDate
|
private Set<GuiContextData> |
guiContexts
|
private boolean |
interactive
|
private String |
jarPath
|
private Set<JobAgentSettingsData> |
jobAgentSettings
|
private int |
mainType
|
static int |
MAX_CLASSNAME_LENGTH
The maximum length of the class name that can be stored in the database. |
static int |
MAX_CONTACT_LENGTH
The maximum length of the contact information that can be stored in the database. |
static int |
MAX_COPYRIGHT_LENGTH
The maximum length of the copyright notice that can be stored in the database. |
static int |
MAX_DESCRIPTION_LENGTH
The maximum length of the url that can be stored in the database. |
static int |
MAX_EMAIL_LENGTH
The maximum length of the email address that can be stored in the database. |
static int |
MAX_JARPATH_LENGTH
|
static int |
MAX_NAME_LENGTH
The maximum length of the name that can be stored in the database. |
static int |
MAX_URL_LENGTH
The maximum length of the url that can be stored in the database. |
static int |
MAX_VERSION_LENGTH
The maximum length of the version that can be stored in the database. |
private Long |
maxMemory
|
private String |
name
|
private Map<RoleKeyData,PluginPermission> |
permissions
|
private Set<PluginTypeData> |
pluginTypes
|
private boolean |
removed
|
private boolean |
requiresConfiguration
|
private boolean |
supportsConfigurations
|
private boolean |
trusted
|
private String |
url
|
private boolean |
useInternalJobQueue
|
private boolean |
usePermissions
|
private String |
version
|
Constructor Summary | |
---|---|
PluginDefinitionData()
|
Method Summary | |
---|---|
boolean |
getAllowImmediateExecution()
If the plugin is allowed to be immediately executed or if it must be added to the job queue. |
AnnotationSetData |
getAnnotationSet()
Get the annotation set that holds the annotations for an item. |
String |
getClassName()
Get the class name of the Java class that implements this plugin. |
(package private) Set<PluginConfigurationData> |
getConfigurations()
This is the inverse end. |
String |
getContact()
Get contact information for the plugin. |
String |
getCopyright()
Get a copyright notice for the plugin. |
String |
getDescription()
Get a description of the plugin. |
String |
getEmail()
Get an email address that can be used to get more information about the plugin. |
Date |
getEntryDate()
Get the date this item was added to the database. |
Set<GuiContextData> |
getGuiContexts()
The item code for all items where it makes sense to use the plugin in a client application. |
String |
getJarPath()
Get the path to the JAR file where the plugin class is located. |
(package private) Set<JobAgentSettingsData> |
getJobAgentSettings()
This is the inverse end. |
int |
getMainType()
Get the main type of plugin. |
Long |
getMaxMemory()
The max amount of memory the plugin can use. |
String |
getName()
Get the name of the plugin. |
Map<RoleKeyData,PluginPermission> |
getPermissions()
Get a map containing the rolekey and the permissions for this plugin. |
Set<PluginTypeData> |
getPluginTypes()
The plugin types of this plugin, ie. all interfaces that it implements. |
boolean |
getRequiresConfiguration()
If the plugin requires a configurations or not. |
boolean |
getSupportsConfigurations()
If the plugin supports configurations or not. |
String |
getUrl()
Get a URL with more information about the plugin. |
boolean |
getUseInternalJobQueue()
If the plug-in can be executed with the internal job queue or not. |
boolean |
getUsePermissions()
If the permissions for this plugin should be used or not. |
String |
getVersionString()
Get the version of the plugin. |
boolean |
isInteractive()
If the plugin is interactive or not. |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
boolean |
isTrusted()
If the plugin should be trusted or not. |
void |
setAllowImmediateExecution(boolean allowImmediateExecution)
|
void |
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set. |
void |
setClassName(String className)
|
(package private) void |
setConfigurations(Set<PluginConfigurationData> configurations)
|
void |
setContact(String contact)
|
void |
setCopyright(String copyright)
|
void |
setDescription(String description)
|
void |
setEmail(String email)
|
void |
setEntryDate(Date entryDate)
|
(package private) void |
setGuiContexts(Set<GuiContextData> guiContexts)
|
void |
setInteractive(boolean interactive)
|
void |
setJarPath(String jarPath)
|
(package private) void |
setJobAgentSettings(Set<JobAgentSettingsData> jobAgentSettings)
|
void |
setMainType(int mainType)
|
void |
setMaxMemory(Long maxMemory)
|
void |
setName(String name)
|
(package private) void |
setPermissions(Map<RoleKeyData,PluginPermission> permissions)
|
(package private) void |
setPluginTypes(Set<PluginTypeData> pluginTypes)
|
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
void |
setRequiresConfiguration(boolean requiresConfiguration)
|
void |
setSupportsConfigurations(boolean supportsConfigurations)
|
void |
setTrusted(boolean trusted)
|
void |
setUrl(String url)
|
void |
setUseInternalJobQueue(boolean useInternalJobQueue)
|
void |
setUsePermissions(boolean usePermissions)
|
void |
setVersionString(String version)
|
Methods inherited from class net.sf.basedb.core.data.SharedData |
---|
getItemKey, getProjectKey, setItemKey, setProjectKey |
Methods inherited from class net.sf.basedb.core.data.OwnedData |
---|
getOwner, setOwner |
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
---|
getId, getVersion |
Methods inherited from interface net.sf.basedb.core.data.OwnableData |
---|
getOwner, setOwner |
Field Detail |
---|
private boolean removed
private AnnotationSetData annotationSet
private Date entryDate
public static final int MAX_CLASSNAME_LENGTH
private String className
public static final int MAX_JARPATH_LENGTH
private String jarPath
public static final int MAX_NAME_LENGTH
private String name
public static final int MAX_DESCRIPTION_LENGTH
private String description
public static final int MAX_VERSION_LENGTH
private String version
public static final int MAX_COPYRIGHT_LENGTH
private String copyright
public static final int MAX_CONTACT_LENGTH
private String contact
public static final int MAX_EMAIL_LENGTH
private String email
public static final int MAX_URL_LENGTH
private String url
private int mainType
private boolean interactive
private boolean supportsConfigurations
private boolean requiresConfiguration
private boolean usePermissions
private Set<GuiContextData> guiContexts
private Set<PluginTypeData> pluginTypes
private Map<RoleKeyData,PluginPermission> permissions
private boolean trusted
private Long maxMemory
private Set<JobAgentSettingsData> jobAgentSettings
private Set<PluginConfigurationData> configurations
private boolean allowImmediateExecution
private boolean useInternalJobQueue
Constructor Detail |
---|
public PluginDefinitionData()
Method Detail |
---|
public boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwisepublic AnnotationSetData getAnnotationSet()
AnnotatableData
getAnnotationSet
in interface AnnotatableData
AnnotationSetData
item or null if no annotations existpublic void setAnnotationSet(AnnotationSetData annotationSet)
AnnotatableData
setAnnotationSet
in interface AnnotatableData
annotationSet
- Annotation set to change to.public Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public String getClassName()
Plugin
interface.
public void setClassName(String className)
public String getJarPath()
public void setJarPath(String jarPath)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getVersionString()
public void setVersionString(String version)
public String getCopyright()
public void setCopyright(String copyright)
public String getContact()
public void setContact(String contact)
public String getEmail()
public void setEmail(String email)
public String getUrl()
public void setUrl(String url)
public int getMainType()
Plugin.MainType
.public void setMainType(int mainType)
public boolean isInteractive()
public void setInteractive(boolean interactive)
public boolean getSupportsConfigurations()
public void setSupportsConfigurations(boolean supportsConfigurations)
public boolean getRequiresConfiguration()
public void setRequiresConfiguration(boolean requiresConfiguration)
public boolean getUsePermissions()
public void setUsePermissions(boolean usePermissions)
public Set<GuiContextData> getGuiContexts()
void setGuiContexts(Set<GuiContextData> guiContexts)
public Set<PluginTypeData> getPluginTypes()
void setPluginTypes(Set<PluginTypeData> pluginTypes)
public Map<RoleKeyData,PluginPermission> getPermissions()
void setPermissions(Map<RoleKeyData,PluginPermission> permissions)
public boolean isTrusted()
public void setTrusted(boolean trusted)
public Long getMaxMemory()
public void setMaxMemory(Long maxMemory)
Set<JobAgentSettingsData> getJobAgentSettings()
JobAgentSettingsData.getPluginDefinition()
void setJobAgentSettings(Set<JobAgentSettingsData> jobAgentSettings)
Set<PluginConfigurationData> getConfigurations()
PluginConfigurationData.getPluginDefinition()
void setConfigurations(Set<PluginConfigurationData> configurations)
public boolean getAllowImmediateExecution()
public void setAllowImmediateExecution(boolean allowImmediateExecution)
public boolean getUseInternalJobQueue()
public void setUseInternalJobQueue(boolean useInternalJobQueue)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |