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()
PluginIF
public String generateHTML(ContextTag context)
PluginIF
generateHTML
in interface PluginIF
public String getId()
PluginIF
public void setId(String id)
PluginIF
public void resetGroups()
PluginIF
resetGroups
in interface PluginIF
public List getGroups()
PluginIF
public void addGroup(String groupId)
PluginIF
public void setGroups(List groups)
PluginIF
public String getTitle()
PluginIF
public void setTitle(String title)
PluginIF
public String getDescription()
PluginIF
getDescription
in interface PluginIF
public void setDescription(String description)
PluginIF
setDescription
in interface PluginIF
public String getURI()
PluginIF
public void setURI(String uri)
PluginIF
Note: This has not to contain the web application context path.
Example: plugins/hello/hello.jsp
public String getTarget()
PluginIF
public void setTarget(String target)
PluginIF
public int getState()
PluginIF
public void setState(int state)
PluginIF
public String getParameter(String name)
PluginIF
getParameter
in interface PluginIF
public void setParameter(String name, String value)
PluginIF
setParameter
in interface PluginIF
public String getPluginDirectory()
PluginIF
getPluginDirectory
in interface PluginIF
public void setPluginDirectory(String path)
PluginIF
setPluginDirectory
in interface PluginIF
protected String getStateAsString()