public class DefaultPlugin extends Object implements PluginIF
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
directory |
protected List |
groups |
protected String |
id |
protected Map |
params |
static String |
RP_TOPIC_ID |
static String |
RP_TOPICMAP_ID |
protected int |
state |
protected String |
target |
protected String |
title |
protected String |
uri |
ACTIVATED, DEACTIVATED, ERROR| Constructor and Description |
|---|
DefaultPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String groupId)
INTERNAL: Add the specified group to groups this plugin belongs to.
|
boolean |
equals(Object obj) |
String |
generateHTML(ContextTag context)
INTERNAL: Called by the framework to make the plugin produce the
HTML that is going to represent it on a web page in the web
application.
|
String |
getDescription()
INTERNAL: Gets the description of this plugin.
|
List |
getGroups()
INTERNAL: Returns the groups this plugin belongs to.
|
String |
getId()
INTERNAL: Returns the ID of this plugin.
|
String |
getParameter(String name)
INTERNAL: Returns the value of the parameter.
|
String |
getPluginDirectory()
INTERNAL: Returns the path to the plugin directory.
|
int |
getState()
INTERNAL: Returns the state of this plugin.
|
protected String |
getStateAsString() |
String |
getTarget()
INTERNAL: Returns the URI frame target of this plugin.
|
String |
getTitle()
INTERNAL: Returns the title of this plugin.
|
String |
getURI()
INTERNAL: Returns the URI of this plugin.
|
int |
hashCode() |
void |
init()
INTERNAL: Called by the framework to finalize initialization.
|
void |
resetGroups()
INTERNAL: Reset all group settings for this plugin.
|
void |
setDescription(String description)
INTERNAL: Sets the description of this plugin.
|
void |
setGroups(List groups)
INTERNAL: Sets the groups this plugin belongs to.
|
void |
setId(String id)
INTERNAL: Sets the ID of this plugin.
|
void |
setParameter(String name,
String value)
INTERNAL: Called by the framework to give the plugin the value of a
configuration parameter.
|
void |
setPluginDirectory(String path)
INTERNAL: Called by the framework to give the plugin the directory
its plugin.xml file was found in.
|
void |
setState(int state)
INTERNAL: Sets the state of this plugin.
|
void |
setTarget(String target)
INTERNAL: Sets the URI frame target of this plugin.
|
void |
setTitle(String title)
INTERNAL: Sets the title of this plugin.
|
void |
setURI(String uri)
INTERNAL: Sets the URI of this plugin.
|
String |
toString() |
protected int state
protected String title
protected String description
protected String uri
protected String target
protected String id
protected String directory
protected Map params
protected List groups
public static final String RP_TOPICMAP_ID
public static final String RP_TOPIC_ID
public void init()
PluginIFpublic String generateHTML(ContextTag context)
PluginIFgenerateHTML in interface PluginIFpublic String getId()
PluginIFpublic void setId(String id)
PluginIFpublic void resetGroups()
PluginIFresetGroups in interface PluginIFpublic List getGroups()
PluginIFpublic void addGroup(String groupId)
PluginIFpublic void setGroups(List groups)
PluginIFpublic String getTitle()
PluginIFpublic void setTitle(String title)
PluginIFpublic String getDescription()
PluginIFgetDescription in interface PluginIFpublic void setDescription(String description)
PluginIFsetDescription in interface PluginIFpublic String getURI()
PluginIFpublic void setURI(String uri)
PluginIFNote: This has not to contain the web application context path.
Example: plugins/hello/hello.jsp
public String getTarget()
PluginIFpublic void setTarget(String target)
PluginIFpublic int getState()
PluginIFpublic void setState(int state)
PluginIFpublic String getParameter(String name)
PluginIFgetParameter in interface PluginIFpublic void setParameter(String name, String value)
PluginIFsetParameter in interface PluginIFpublic String getPluginDirectory()
PluginIFgetPluginDirectory in interface PluginIFpublic void setPluginDirectory(String path)
PluginIFsetPluginDirectory in interface PluginIFprotected String getStateAsString()