org.apache.portals.gems.flash
Class FlashPortlet

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.portals.gems.flash.FlashPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

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


Nested Class Summary
protected  class FlashPortlet.SWFContext
           
 
Field Summary
static String CLASSID
           
static String CODEBASE
           
protected  String editPage
           
private  org.apache.velocity.app.VelocityEngine engine
           
static String EXPRESS_INSTALL_URL
           
static String EXTRA_SIZE_INFO
           
private  Map flash_vars
           
static String FLASHVARS
           
static String FLASHVARS_INITPARAM
           
static String HEIGHT
           
static String HEIGHT_ACTUAL
           
static String HEIGHT_PERCENT
           
static String HEIGHT_PREF
           
static String IS_DESKTOP
           
protected  org.apache.commons.logging.Log log
           
static String MAX_HEIGHT_PREF
           
static String MAX_SRC_PREF
           
static String MAX_WIDTH_PREF
           
static String NAMESPACE
           
static String NODEID
           
private  Map object_attributes
           
static String OBJECT_ATTRIBUTES
           
static String OBJECT_ATTRIBUTES_INITPARAM
           
private  Map object_parameters
           
static String OBJECT_PARAMS
           
static String OBJECT_PARAMS_INITPARAM
           
static String PARAM_EDIT_PAGE
           
static String PARAM_EDIT_PAGE_DEFAULT
           
static String PARAM_VIEW_PAGE
           
static String PARAM_VIEW_PAGE_DEFAULT
           
static String REPLACECONTENT_NODEID
           
static String SRC
           
static String SRC_PREF
           
static String SWF_VERSION
           
static String SWF_VERSION_DEFAULT
           
static String SWFOBJECTS_LIB_URL
           
static String VIEW_PAGE_INITPARAM
           
protected  String viewPage
           
static String WIDTH
           
static String WIDTH_ACTUAL
           
static String WIDTH_PREF
           
static String WINDOW_STATE
           
 
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_HELP_PAGE, PARAM_MAX_PAGE
 
Constructor Summary
FlashPortlet()
           
 
Method Summary
protected  void configureClasspathVelocityEngine(org.apache.velocity.app.VelocityEngine vEngine)
           
 void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  Map getDefaultFlashVars()
           
protected  Map getDefaultObjectAttributes()
           
protected  Map getDefaultObjectParameters()
           
protected  String getDefaultSwfVersion()
           
protected  Map getFlashVars(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, FlashPortlet.SWFContext swfContext)
           
protected  Map getObjectAttributes(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, FlashPortlet.SWFContext swfContext)
           
protected  Map getObjectParameters(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, FlashPortlet.SWFContext swfContext)
           
 void init(javax.portlet.PortletConfig config)
           
 Map parseSemicolonEqualsDelimitedProps(String propsStr)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
protected  void processClasspathTemplate(String classpathTemplate, org.apache.velocity.context.Context context, javax.portlet.RenderResponse response)
           
protected  void readSwfFileInfo(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.apache.velocity.context.Context context, FlashPortlet.SWFContext swfContext)
           
protected  void setContextVars(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.apache.velocity.context.Context context, FlashPortlet.SWFContext swfContext)
           
protected  void setFinalContextVars(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.apache.velocity.context.Context context, FlashPortlet.SWFContext swfContext)
           
protected  void setParameterContextVars(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.apache.velocity.context.Context context, FlashPortlet.SWFContext swfContext)
           
protected  void setSizeContextVars(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.apache.velocity.context.Context context, FlashPortlet.SWFContext swfContext)
           
 
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

HEIGHT_PREF

public static final String HEIGHT_PREF
See Also:
Constant Field Values

WIDTH_PREF

public static final String WIDTH_PREF
See Also:
Constant Field Values

SRC_PREF

public static final String SRC_PREF
See Also:
Constant Field Values

MAX_SRC_PREF

public static final String MAX_SRC_PREF
See Also:
Constant Field Values

MAX_HEIGHT_PREF

public static final String MAX_HEIGHT_PREF
See Also:
Constant Field Values

MAX_WIDTH_PREF

public static final String MAX_WIDTH_PREF
See Also:
Constant Field Values

OBJECT_PARAMS_INITPARAM

public static final String OBJECT_PARAMS_INITPARAM
See Also:
Constant Field Values

OBJECT_ATTRIBUTES_INITPARAM

public static final String OBJECT_ATTRIBUTES_INITPARAM
See Also:
Constant Field Values

FLASHVARS_INITPARAM

public static final String FLASHVARS_INITPARAM
See Also:
Constant Field Values

VIEW_PAGE_INITPARAM

public static final String VIEW_PAGE_INITPARAM
See Also:
Constant Field Values

PARAM_VIEW_PAGE

public static final String PARAM_VIEW_PAGE
See Also:
Constant Field Values

PARAM_EDIT_PAGE

public static final String PARAM_EDIT_PAGE
See Also:
Constant Field Values

PARAM_VIEW_PAGE_DEFAULT

public static final String PARAM_VIEW_PAGE_DEFAULT
See Also:
Constant Field Values

PARAM_EDIT_PAGE_DEFAULT

public static final String PARAM_EDIT_PAGE_DEFAULT
See Also:
Constant Field Values

CODEBASE

public static final String CODEBASE
See Also:
Constant Field Values

CLASSID

public static final String CLASSID
See Also:
Constant Field Values

NODEID

public static final String NODEID
See Also:
Constant Field Values

SRC

public static final String SRC
See Also:
Constant Field Values

WIDTH

public static final String WIDTH
See Also:
Constant Field Values

HEIGHT

public static final String HEIGHT
See Also:
Constant Field Values

WIDTH_ACTUAL

public static final String WIDTH_ACTUAL
See Also:
Constant Field Values

HEIGHT_ACTUAL

public static final String HEIGHT_ACTUAL
See Also:
Constant Field Values

HEIGHT_PERCENT

public static final String HEIGHT_PERCENT
See Also:
Constant Field Values

OBJECT_PARAMS

public static final String OBJECT_PARAMS
See Also:
Constant Field Values

OBJECT_ATTRIBUTES

public static final String OBJECT_ATTRIBUTES
See Also:
Constant Field Values

FLASHVARS

public static final String FLASHVARS
See Also:
Constant Field Values

EXTRA_SIZE_INFO

public static final String EXTRA_SIZE_INFO
See Also:
Constant Field Values

WINDOW_STATE

public static final String WINDOW_STATE
See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values

REPLACECONTENT_NODEID

public static final String REPLACECONTENT_NODEID
See Also:
Constant Field Values

SWF_VERSION

public static final String SWF_VERSION
See Also:
Constant Field Values

SWF_VERSION_DEFAULT

public static final String SWF_VERSION_DEFAULT
See Also:
Constant Field Values

SWFOBJECTS_LIB_URL

public static final String SWFOBJECTS_LIB_URL
See Also:
Constant Field Values

EXPRESS_INSTALL_URL

public static final String EXPRESS_INSTALL_URL
See Also:
Constant Field Values

IS_DESKTOP

public static final String IS_DESKTOP
See Also:
Constant Field Values

log

protected org.apache.commons.logging.Log log

viewPage

protected String viewPage

editPage

protected String editPage

object_parameters

private Map object_parameters

object_attributes

private Map object_attributes

flash_vars

private Map flash_vars

engine

private org.apache.velocity.app.VelocityEngine engine
Constructor Detail

FlashPortlet

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

getDefaultObjectParameters

protected final Map getDefaultObjectParameters()

getDefaultObjectAttributes

protected final Map getDefaultObjectAttributes()

getDefaultFlashVars

protected final Map getDefaultFlashVars()

getDefaultSwfVersion

protected String getDefaultSwfVersion()

getObjectParameters

protected Map getObjectParameters(javax.portlet.RenderRequest request,
                                  javax.portlet.RenderResponse response,
                                  FlashPortlet.SWFContext swfContext)

getObjectAttributes

protected Map getObjectAttributes(javax.portlet.RenderRequest request,
                                  javax.portlet.RenderResponse response,
                                  FlashPortlet.SWFContext swfContext)

getFlashVars

protected Map getFlashVars(javax.portlet.RenderRequest request,
                           javax.portlet.RenderResponse response,
                           FlashPortlet.SWFContext swfContext)

setContextVars

protected void setContextVars(javax.portlet.RenderRequest request,
                              javax.portlet.RenderResponse response,
                              org.apache.velocity.context.Context context,
                              FlashPortlet.SWFContext swfContext)

setFinalContextVars

protected void setFinalContextVars(javax.portlet.RenderRequest request,
                                   javax.portlet.RenderResponse response,
                                   org.apache.velocity.context.Context context,
                                   FlashPortlet.SWFContext swfContext)

setParameterContextVars

protected void setParameterContextVars(javax.portlet.RenderRequest request,
                                       javax.portlet.RenderResponse response,
                                       org.apache.velocity.context.Context context,
                                       FlashPortlet.SWFContext swfContext)

readSwfFileInfo

protected void readSwfFileInfo(javax.portlet.RenderRequest request,
                               javax.portlet.RenderResponse response,
                               org.apache.velocity.context.Context context,
                               FlashPortlet.SWFContext swfContext)

setSizeContextVars

protected void setSizeContextVars(javax.portlet.RenderRequest request,
                                  javax.portlet.RenderResponse response,
                                  org.apache.velocity.context.Context context,
                                  FlashPortlet.SWFContext swfContext)

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

processClasspathTemplate

protected void processClasspathTemplate(String classpathTemplate,
                                        org.apache.velocity.context.Context context,
                                        javax.portlet.RenderResponse response)
                                 throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

configureClasspathVelocityEngine

protected void configureClasspathVelocityEngine(org.apache.velocity.app.VelocityEngine vEngine)
                                         throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

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

parseSemicolonEqualsDelimitedProps

public Map parseSemicolonEqualsDelimitedProps(String propsStr)


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