|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenticsPluginServer
The GenticsPluginServer defines a contract for using Embedded "HelperModules" (called Plugins) inside the Portal.Node Environment. Purpose is to reduce complexity, coding time and code lines by providing a set of predefined snippet generators (plugins) that allow efficent coding and resource usage. The Plugins handle Events, are processing actions and are rendering their output like a Porlet Module, but are embedded into other Portlets
Method Summary | |
---|---|
void |
afterProcessPluginAction(String PluginID,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
process the afterProcessAction of the given plugin |
GenticsPlugin |
getPlugin(String Id)
returns a plugin from the server (if registered), or else null |
void |
onPluginEvent(EventRequest eventRequest,
EventResponse eventResponse)
onPluginEvent will be called everytime a plugin triggers an event |
void |
processPluginAction(String PluginID,
javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
processes a plugin action the pluginserver needs to distribute actions to its plugins |
void |
registerPlugin(String Id,
GenticsPlugin plugin)
allows to register plugins to the server so he can further distribute events and forward actions as well as provide rendering facility |
String |
renderPlugin(String Id,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
renders a plugin specified by the pluginid it provides the plugin with a adapted request and response so it can only see its own variables |
void |
unregisterPlugin(String id)
Unregister the plugin with the given id. |
Method Detail |
---|
void registerPlugin(String Id, GenticsPlugin plugin)
Id
- the pluginidplugin
- the pluginvoid unregisterPlugin(String id)
id
- id of the plugin to unregisterGenticsPlugin getPlugin(String Id)
Id
- pluginid
String renderPlugin(String Id, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
Id
- plugin idrequest
- the request of the module callingresponse
- the response of the calling module
javax.portlet.PortletException
- an exception if anything in terms of processing
goes wrong
IOException
- any i/o problemsvoid onPluginEvent(EventRequest eventRequest, EventResponse eventResponse)
eventRequest
- the event requesteventResponse
- the event responsevoid processPluginAction(String PluginID, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws javax.portlet.PortletException, IOException
PluginID
- pluginidactionRequest
- requestactionResponse
- response
javax.portlet.PortletException
- any processing problem
IOException
- any i/o problemvoid afterProcessPluginAction(String PluginID, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws javax.portlet.PortletException, IOException
PluginID
- pluginidactionRequest
- requestactionResponse
- response
javax.portlet.PortletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |