| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HttpServlet 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
public void destroy(PortletConfig config)
public void initConcrete(PortletSettings settings) throws UnavailableException
public void destroyConcrete(PortletSettings settings)
public void login(PortletRequest request) throws PortletException
public void logout(PortletSession session) throws PortletException
public long getLastModified(PortletRequest request)
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
public void doView(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public void doEdit(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public void doHelp(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public void doConfigure(PortletRequest request, PortletResponse response) throws PortletException, java.io.IOException
public PortletConfig getPortletConfig()
public PortletLog getPortletLog()
public void setVariable(java.lang.String name, java.lang.Object value) throws AccessDeniedException
public java.lang.Object getVariable(java.lang.String name) throws AccessDeniedException
public void removeVariable(java.lang.String name) throws AccessDeniedException
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |