org.apache.jetspeed.portlets.custom
Class CustomConfigModePortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.apache.portals.bridges.common.GenericServletPortlet
          extended by org.apache.portals.bridges.velocity.GenericVelocityPortlet
              extended by org.apache.jetspeed.portlets.custom.CustomConfigModePortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class CustomConfigModePortlet
extends org.apache.portals.bridges.velocity.GenericVelocityPortlet

Common Custom Config Mode Portlet

Version:
$Id: $
Author:
Woonsan Ko

Field Summary
private static javax.portlet.PortletMode CONFIG_MODE
           
private  String configPage
           
private static String DELIMITERS
           
private  org.apache.jetspeed.page.PageManager pageManager
           
 
Fields inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
PORTLET_BRIDGE_CONTEXT
 
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
 
Constructor Summary
CustomConfigModePortlet()
           
 
Method Summary
private  void addSecurityConstraint(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
private  Set convertToSet(String s, String delimiters)
           
protected  void doDispatch(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
private  boolean equalsSetAndList(Set set, List list)
           
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
private  void removeSecurityConstraint(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
private  void updateSecurityConstraintRefs(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
 
Methods inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
doCustom, doEdit, doHelp, doPreferencesEdit, doView, getContext, getContext, render, setupPreferencesEdit
 
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet
getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_MODE

private static final javax.portlet.PortletMode CONFIG_MODE

DELIMITERS

private static final String DELIMITERS
See Also:
Constant Field Values

pageManager

private org.apache.jetspeed.page.PageManager pageManager

configPage

private String configPage
Constructor Detail

CustomConfigModePortlet

public CustomConfigModePortlet()
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 org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException

doDispatch

protected void doDispatch(javax.portlet.RenderRequest request,
                          javax.portlet.RenderResponse response)
                   throws javax.portlet.PortletException,
                          IOException
Overrides:
doDispatch in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
IOException

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException

addSecurityConstraint

private void addSecurityConstraint(javax.portlet.ActionRequest request,
                                   javax.portlet.ActionResponse response)
                            throws javax.portlet.PortletException,
                                   IOException
Throws:
javax.portlet.PortletException
IOException

removeSecurityConstraint

private void removeSecurityConstraint(javax.portlet.ActionRequest request,
                                      javax.portlet.ActionResponse response)
                               throws javax.portlet.PortletException,
                                      IOException
Throws:
javax.portlet.PortletException
IOException

updateSecurityConstraintRefs

private void updateSecurityConstraintRefs(javax.portlet.ActionRequest request,
                                          javax.portlet.ActionResponse response)
                                   throws javax.portlet.PortletException,
                                          IOException
Throws:
javax.portlet.PortletException
IOException

convertToSet

private Set convertToSet(String s,
                         String delimiters)

equalsSetAndList

private boolean equalsSetAndList(Set set,
                                 List list)


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