|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet
org.apache.jetspeed.portlet.Portlet
org.apache.jetspeed.portlet.PortletAdapter
public abstract class PortletAdapter
The PortletAdapter
provides a default implementation
for the Portlet
interface. It is recommended not to
extend the portlet interface directly. Rather, a portlet should derive
from this or any other derived class, because changes in the
Portlet
interface are then mostly likely to be catched
by the default implementation, rather than breaking your portlet
implementation.
The virtual instance is created and destroyed with the
login()
and logout()
methods,
respectively. If a portlet provides personalized views these methods
should be implemented.
This interface is designed to be implemented by clients. |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jetspeed.portlet.Portlet |
---|
Portlet.Mode, Portlet.ModeModifier |
Constructor Summary | |
---|---|
PortletAdapter()
Deprecated. |
Method Summary | |
---|---|
void |
destroy(PortletConfig config)
Deprecated. The default implementation of this method is to do nothing. |
void |
destroyConcrete(PortletSettings settings)
Deprecated. The default implementation of this method is to do nothing. |
void |
doConfigure(PortletRequest request,
PortletResponse response)
Deprecated. Helper method to serve up the CONFIGURE mode. |
void |
doEdit(PortletRequest request,
PortletResponse response)
Deprecated. Helper method to serve up the EDIT mode. |
void |
doHelp(PortletRequest request,
PortletResponse response)
Deprecated. Helper method to serve up the HELP mode. |
void |
doView(PortletRequest request,
PortletResponse response)
Deprecated. Helper method to serve up the VIEW mode. |
long |
getLastModified(PortletRequest request)
Deprecated. The default implementation of this method defines that the portlet never expires. |
PortletConfig |
getPortletConfig()
Deprecated. Returns the portlet configuration. |
PortletLog |
getPortletLog()
Deprecated. Returns the portlet log. |
java.lang.Object |
getVariable(java.lang.String name)
Deprecated. Returns a transient variable of the concrete portlet. |
void |
init(PortletConfig config)
Deprecated. The default implementation of this method is to remember the portlet configuration for later use. |
void |
initConcrete(PortletSettings settings)
Deprecated. The default implementation of this method is to do nothing. |
void |
login(PortletRequest request)
Deprecated. The default implementation of this method is to do nothing. |
void |
logout(PortletSession session)
Deprecated. The default implementation of this method is to do nothing. |
void |
removeVariable(java.lang.String name)
Deprecated. Removes a transient variable of the concrete portlet. |
void |
service(PortletRequest request,
PortletResponse response)
Deprecated. The default implementation of this method routes the request to a set of helper methods that are already split out by portlet mode. |
void |
setVariable(java.lang.String name,
java.lang.Object value)
Deprecated. Sets a transient variable of the concrete portlet. |
Methods inherited from class org.apache.jetspeed.portlet.Portlet |
---|
destroy, doGet, doPost, doPut, getId, getInitParameter, getInitParameterNames, getPortletSettings, getServletContext, getServletInfo |
Methods inherited from class com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet |
---|
getSharingPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletAdapter()
Method Detail |
---|
public void init(PortletConfig config) throws UnavailableException
init
in class Portlet
config
- the portlet configuration
UnavailableException
- if an exception has occurrred that interferes
with the portlet's normal initializationpublic void destroy(PortletConfig config)
destroy
in class Portlet
config
- the portlet configurationpublic void initConcrete(PortletSettings settings) throws UnavailableException
initConcrete
in class Portlet
settings
- the portlet settings
UnavailableException
- if an exception has occurrred that interferes
with the portlet's normal initializationpublic void destroyConcrete(PortletSettings settings)
destroyConcrete
in class Portlet
settings
- the portlet settingspublic void login(PortletRequest request) throws PortletException
login
in interface PortletSessionListener
login
in class Portlet
request
- the portlet request
PortletException
- if the portlet has trouble fulfilling the
login requestpublic void logout(PortletSession session) throws PortletException
logout
in interface PortletSessionListener
logout
in class Portlet
session
- the portlet session
PortletException
- if the portlet has trouble fulfilling the
logoutpublic long getLastModified(PortletRequest request)
getLastModified
in class Portlet
request
- the PortletRequest
object that is sent to the portlet
long
integer specifying
the time the PortletRequest
object was last modified, in milliseconds
since midnight, January 1, 1970 GMT, or
-1 if the time is not knownpublic void service(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
doView
method needs to be
implemented.
service
in class Portlet
request
- the portlet requestresponse
- the portlet response
PortletException
java.io.IOException
doView(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse)
,
doEdit(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse)
,
doHelp(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse)
,
doConfigure(org.apache.jetspeed.portlet.PortletRequest, org.apache.jetspeed.portlet.PortletResponse)
public void doView(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
request
- the portlet requestresponse
- the portlet response
PortletException
java.io.IOException
public void doEdit(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
request
- the portlet requestresponse
- the portlet response
PortletException
java.io.IOException
public void doHelp(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
request
- the portlet requestresponse
- the portlet response
PortletException
java.io.IOException
public void doConfigure(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
request
- the portlet requestresponse
- the portlet response
PortletException
java.io.IOException
public PortletConfig getPortletConfig()
getPortletConfig
in class Portlet
public PortletLog getPortletLog()
public void setVariable(java.lang.String name, java.lang.Object value) throws AccessDeniedException
name
- the name of the transient variablevalue
- the value of the transient variable
AccessDeniedException
- if the method is called outside of a concrete portletpublic java.lang.Object getVariable(java.lang.String name) throws AccessDeniedException
name
- the name of the transient variablevalue
- the value of the transient variable
AccessDeniedException
- if the method is called outside of a concrete portletpublic void removeVariable(java.lang.String name) throws AccessDeniedException
name
- the name of the transient variablevalue
- the value of the transient variable
AccessDeniedException
- if the method is called outside of a concrete portlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |