com.plumtree.portalpages.browsing.portletpreview
Class PreviewPortletControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.form.RepostControl
      extended by com.plumtree.portalpages.browsing.portletpreview.PreviewPortletControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject

public class PreviewPortletControl
extends RepostControl

File: PreviewPortletControl.java ------------------------------- Control for determining which gadget is being previewedd and what type of preview is desired (selection preview, invitation, or preview from editor).

Author:
NaveenP/DustinA

Field Summary
static java.lang.String m_PreviewType
          Preview Type Query String Param
static java.lang.String m_strAddPortletJavascriptOverride
          QueryString Parameter for the Add Portlet Javascript override
static java.lang.String m_strAlwaysCommunity
          QueryString Parameter for always using Community mode
static java.lang.String m_strCommunityPortletPreview
          QueryString Parameter for Community Portlet Preview Handling
static java.lang.String m_strPortletChecked
          QueryString Parameter for Selected
static java.lang.String m_strPortletIndex
          QueryString Parameter for Index
static java.lang.String m_strPortletParam
          QueryString Parameter for Portlet Index
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.form.RepostControl
HTMLINPUT_PASSTHRU_ARGS, HTMLINPUT_PASSTHRU_CONTROL, HTMLINPUT_POSTTOSELF, HTMLSUBMIT_508_POSTTOSELF, m_asOwner, m_bInitialized, m_htFormData, m_model, m_nAction, m_nPageStatus, m_rRedirect, PAGE_STATUS_INVALID, PAGE_STATUS_VALID, POSTTOSELF_ACTION_APPLY_CHANGES, POSTTOSELF_ACTION_CANCEL, POSTTOSELF_ACTION_FINISH, POSTTOSELF_ACTION_GOTOPAGE, POSTTOSELF_ACTION_IN_PLACE_REFRESH, POSTTOSELF_ACTION_PASSTHRU, POSTTOSELF_ACTION_SIMPLEREPOST, POSTTOSELF_ACTION_UNDEFINED
 
Constructor Summary
PreviewPortletControl()
           
 
Method Summary
 Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
          This code is called by the AS Servlet each time there is a repost.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Return the class name.
 void Init(IModel model, AActivitySpace space)
          Inits the class with the associated model and activity space.
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
GetPageStatus, GetRepostAction, PerformAction, PerformPassthruAction, SaveCurrentPage, SetPageStatus, SetRedirect, SetRepostAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values

m_strPortletParam

public static final java.lang.String m_strPortletParam
QueryString Parameter for Portlet Index

See Also:
Constant Field Values

m_PreviewType

public static final java.lang.String m_PreviewType
Preview Type Query String Param

See Also:
Constant Field Values

m_strPortletIndex

public static final java.lang.String m_strPortletIndex
QueryString Parameter for Index

See Also:
Constant Field Values

m_strPortletChecked

public static final java.lang.String m_strPortletChecked
QueryString Parameter for Selected

See Also:
Constant Field Values

m_strCommunityPortletPreview

public static final java.lang.String m_strCommunityPortletPreview
QueryString Parameter for Community Portlet Preview Handling

See Also:
Constant Field Values

m_strAlwaysCommunity

public static final java.lang.String m_strAlwaysCommunity
QueryString Parameter for always using Community mode

See Also:
Constant Field Values

m_strAddPortletJavascriptOverride

public static final java.lang.String m_strAddPortletJavascriptOverride
QueryString Parameter for the Add Portlet Javascript override

See Also:
Constant Field Values
Constructor Detail

PreviewPortletControl

public PreviewPortletControl()
Method Detail

CheckActionSecurityAndExecute

public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
Description copied from class: RepostControl
This code is called by the AS Servlet each time there is a repost. First it saves the page and then performs any repost action. If the Redirect object returned is not null, the Servlet will go to the page specified by the Redirect. If the Redirect is null, the Servlet will get the current page from the AS and display it.

Specified by:
CheckActionSecurityAndExecute in interface IControl
Overrides:
CheckActionSecurityAndExecute in class RepostControl
Returns:
Redirect
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IControl#Execute()

Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Overrides:
Create in class RepostControl
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

GetName

public java.lang.String GetName()
Description copied from class: RepostControl
Return the class name.

Specified by:
GetName in interface IMVCObject
Overrides:
GetName in class RepostControl
Returns:
String
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IControl#GetName()

Init

public void Init(IModel model,
                 AActivitySpace space)
Description copied from class: RepostControl
Inits the class with the associated model and activity space. If this method is overridden in a sub-class, this version of Init must be called as super.Init();

Specified by:
Init in interface IControl
Overrides:
Init in class RepostControl
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IControl#Init(IModel, AActivitySpace)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.