public interface GenticsPluginServer
Modifier and Type | Method and Description |
---|---|
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.
|
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
- pluginidString 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 modulejavax.portlet.PortletException
- an exception if anything in terms of processing
goes wrongIOException
- 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
- responsejavax.portlet.PortletException
- any processing problemIOException
- any i/o problemvoid afterProcessPluginAction(String PluginID, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws javax.portlet.PortletException, IOException
PluginID
- pluginidactionRequest
- requestactionResponse
- responsejavax.portlet.PortletException
IOException
Copyright © 2015 Gentics Software GmbH. All Rights Reserved.