org.apache.jetspeed.portlet
Class IFrameGenericPortlet

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.portlet.IFrameGenericPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig
Direct Known Subclasses:
SSOIFramePortlet

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

IFrameGenericPortlet

Version:
$Id: IFrameGenericPortlet.java 578925 2007-09-24 19:22:58Z smilek $
Author:
David Sean Taylor

Field Summary
private  Map attributes
           
private  Map maxAttributes
           
 
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
IFrameGenericPortlet()
           
 
Method Summary
private  void appendAttribute(javax.portlet.PortletPreferences prefs, StringBuffer content, String attribute)
           
private  void appendAttribute(javax.portlet.PortletPreferences prefs, StringBuffer content, String attribute, Map map)
           
private  void appendMaxAttribute(javax.portlet.PortletPreferences prefs, StringBuffer content, String attribute)
           
 void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  void doIFrame(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Render IFRAME content
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
private  String getAttributePreference(javax.portlet.PortletPreferences prefs, String attribute)
           
private  String getMappedAttributePreference(javax.portlet.PortletPreferences prefs, String attribute, Map map)
           
private  String getMaxAttributePreference(javax.portlet.PortletPreferences prefs, String attribute)
           
 String getURLSource(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, javax.portlet.PortletPreferences prefs)
           
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse actionResponse)
          Save the prefs
 
Methods inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet
doCustom, doHelp, doPreferencesEdit, 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, doDispatch, 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

attributes

private Map attributes

maxAttributes

private Map maxAttributes
Constructor Detail

IFrameGenericPortlet

public IFrameGenericPortlet()
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

getAttributePreference

private String getAttributePreference(javax.portlet.PortletPreferences prefs,
                                      String attribute)

getMaxAttributePreference

private String getMaxAttributePreference(javax.portlet.PortletPreferences prefs,
                                         String attribute)

getMappedAttributePreference

private String getMappedAttributePreference(javax.portlet.PortletPreferences prefs,
                                            String attribute,
                                            Map map)

appendAttribute

private void appendAttribute(javax.portlet.PortletPreferences prefs,
                             StringBuffer content,
                             String attribute,
                             Map map)

appendAttribute

private void appendAttribute(javax.portlet.PortletPreferences prefs,
                             StringBuffer content,
                             String attribute)

appendMaxAttribute

private void appendMaxAttribute(javax.portlet.PortletPreferences prefs,
                                StringBuffer content,
                                String attribute)

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Overrides:
doView in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException

doEdit

public void doEdit(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Overrides:
doEdit in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException

doIFrame

protected void doIFrame(javax.portlet.RenderRequest request,
                        javax.portlet.RenderResponse response)
                 throws IOException
Render IFRAME content

Throws:
IOException

getURLSource

public String getURLSource(javax.portlet.RenderRequest request,
                           javax.portlet.RenderResponse response,
                           javax.portlet.PortletPreferences prefs)

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse actionResponse)
                   throws javax.portlet.PortletException,
                          IOException
Save the prefs

Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class org.apache.portals.bridges.velocity.GenericVelocityPortlet
Throws:
javax.portlet.PortletException
IOException


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