hu.midori.kosmos.portlet
Class AbstractKosmosPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by hu.midori.kosmos.portlet.AbstractKosmosPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig
Direct Known Subclasses:
CcMonitoringPortlet, JiraMonitoringPortlet, SfMonitoringPortlet, SvnMonitoringPortlet

public abstract class AbstractKosmosPortlet
extends javax.portlet.GenericPortlet

Each Kosmos portlet must extend this baseclass.

Version:
$Id$
Author:
Aron Gombas

Field Summary
protected  java.lang.String monitoredResource
           
protected  java.lang.String serviceUrl
           
 
Constructor Summary
AbstractKosmosPortlet()
           
 
Method Summary
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest arg0, javax.portlet.ActionResponse arg1)
          This dummy method needs only to make Liferay happy: Liferay will call this when minimizing/maximizing the portlet window, and the implementation in GenericPortlet simply throws an exception.
protected  void renderJsp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.String jspName)
          Renders a JSP.
protected  void renderJsp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.String jspName, java.lang.String title)
          Renders a JSP and sets the portlet title.
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, doEdit, doHelp, doView, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monitoredResource

protected java.lang.String monitoredResource

serviceUrl

protected java.lang.String serviceUrl
Constructor Detail

AbstractKosmosPortlet

public AbstractKosmosPortlet()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException

renderJsp

protected void renderJsp(javax.portlet.RenderRequest request,
                         javax.portlet.RenderResponse response,
                         java.lang.String jspName,
                         java.lang.String title)
Renders a JSP and sets the portlet title.


renderJsp

protected void renderJsp(javax.portlet.RenderRequest request,
                         javax.portlet.RenderResponse response,
                         java.lang.String jspName)
Renders a JSP.


processAction

public void processAction(javax.portlet.ActionRequest arg0,
                          javax.portlet.ActionResponse arg1)
This dummy method needs only to make Liferay happy: Liferay will call this when minimizing/maximizing the portlet window, and the implementation in GenericPortlet simply throws an exception.

Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class javax.portlet.GenericPortlet