org.apache.jetspeed.demo.simple
Class AttributeScopeServlet

java.lang.Object
  extended byjavax.portlet.GenericPortlet
      extended byorg.apache.portals.bridges.common.GenericServletPortlet
          extended byorg.apache.jetspeed.demo.simple.AttributeScopeServlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class AttributeScopeServlet
extends org.apache.portals.bridges.common.GenericServletPortlet

This class only exists to maintain the Help and View page names. As soon as the container/engine will retain the preferences this class can be replaced by configuring portlet preferences.

Version:
$Id: AttributeScopeServlet.java 187819 2004-10-29 01:25:14Z taylor $

Field Summary
private static String APPLICATION_SCOPE_NAME
           
private static String DEFAULT_ACTION_PAGE
          Default action page when preference does not exist
private static String DEFAULT_CUSTOM_PAGE
          Default custom page when preference does not exist
private static String DEFAULT_EDIT_PAGE
          Default edit page when preference does not exist
private static String DEFAULT_HELP_PAGE
          Default help page when preference does not exist
private static String DEFAULT_VIEW_PAGE
          Default help page when preference does not exist
private static String PORTLET_SCOPE_NAME
           
private static String REQUEST_SCOPE_NAME
           
private static String SESSION_SCOPE_NAME
           
 
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE
 
Fields inherited from class javax.portlet.GenericPortlet
 
Constructor Summary
AttributeScopeServlet()
          Set default page values when class is created
 
Method Summary
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse actionResponse)
          Increment attributes in different scopes
 
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet
doCustom, doEdit, doHelp, doView, getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, init, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, 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

DEFAULT_ACTION_PAGE

private static final String DEFAULT_ACTION_PAGE
Default action page when preference does not exist

See Also:
GenericServletPortlet.processAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse)

DEFAULT_CUSTOM_PAGE

private static final String DEFAULT_CUSTOM_PAGE
Default custom page when preference does not exist

See Also:
GenericServletPortlet.doCustom(javax.portlet.RenderRequest, javax.portlet.RenderResponse)

DEFAULT_EDIT_PAGE

private static final String DEFAULT_EDIT_PAGE
Default edit page when preference does not exist

See Also:
GenericServletPortlet.doEdit(javax.portlet.RenderRequest, javax.portlet.RenderResponse)

DEFAULT_HELP_PAGE

private static final String DEFAULT_HELP_PAGE
Default help page when preference does not exist

See Also:
GenericServletPortlet.doHelp(javax.portlet.RenderRequest, javax.portlet.RenderResponse), Constant Field Values

DEFAULT_VIEW_PAGE

private static final String DEFAULT_VIEW_PAGE
Default help page when preference does not exist

See Also:
GenericServletPortlet.doView(javax.portlet.RenderRequest, javax.portlet.RenderResponse), Constant Field Values

APPLICATION_SCOPE_NAME

private static final String APPLICATION_SCOPE_NAME
See Also:
Constant Field Values

PORTLET_SCOPE_NAME

private static final String PORTLET_SCOPE_NAME
See Also:
Constant Field Values

REQUEST_SCOPE_NAME

private static final String REQUEST_SCOPE_NAME
See Also:
Constant Field Values

SESSION_SCOPE_NAME

private static final String SESSION_SCOPE_NAME
See Also:
Constant Field Values
Constructor Detail

AttributeScopeServlet

public AttributeScopeServlet()
Set default page values when class is created

Method Detail

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse actionResponse)
                   throws javax.portlet.PortletException,
                          IOException
Increment attributes in different scopes

Throws:
javax.portlet.PortletException
IOException
See Also:
GenericPortlet.processAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.