com.plumtree.portaluiinfrastructure.editor
Class ObjEditorRepostControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.form.RepostControl
      extended by com.plumtree.uiinfrastructure.editor.EditorRepostControl
          extended by com.plumtree.portaluiinfrastructure.editor.ObjEditorRepostControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject
Direct Known Subclasses:
AdminFolderRepostControl, AuthSourceRepostControl, CardEditorRepostControl, CommunityEditorRepostControl, CommunityTemplateRepostControl, CrawlerRepostControl, DocTypeRepostControl, DSRepostControl, ExternalOperationEditorRepostControl, FilterRepostControl, FolderEditorRepostControl, GroupRepostControl, InvitationRepostControl, JobRepostControl, LockboxEditorRepostControl, NetSearchRepostControl, NetSearchRepostControl, OutgoingNSRepostControl, PageRepostControl, PageTemplateRepostControl, PortletBundleRepostControl, PortletRepostControl, ProfileSourceRepostControl, PropRepostControl, RemoteServerRepostControl, RuleEditorRepostControl, SavedSearchRepostControl, SiteMapFolderRepostControl, SmartSortEditorRepostControl, SOAPCardSubmitAdvancedRepostControl, SubPortalRepostControl, UserRepostControl, WebServiceRepostControl, WWWCardSubmitAdvancedRepostControl

public class ObjEditorRepostControl
extends EditorRepostControl

This class has the responsability to call the PerformRepostAction method on common pages such as the Security page or the Localize Names and Descriptions page.

Author:
Julie Fournier

Field Summary
static int POSTTOSELF_ACTION_REDIRECT_AFTER_SAVEPOPUP
          Redirects the main window when you are done with the pop-up.
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the Activity Space.
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorRepostControl
POSTTOSELF_ACTION_ONRETURN_FROM_SUBEDITOR
 
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
ObjEditorRepostControl()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  boolean DisableSavePopUp()
          Override this method to disable the save pop up.
 java.lang.String GetName()
          Returns the Class name.
protected  void OpenSavePopUp()
          Helper nmethod to build the URL to the save pop-up and add the Javascript to open it to the curent page.
protected  void PerformAction(int _nAction)
          Switch between the action modes and call the associated method for each action.
 void PerformFinishAction()
          For the Object Editor we don't want to store the object yet.
protected  void SaveCurrentPage()
          Get the current page name and call the save method on the model.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorRepostControl
CheckActionSecurityAndExecute, CheckMandatoryPages, PerformCancelAction, PerformReadOnlyAction, SetRedirectToCloseSubEditor
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
GetPageStatus, GetRepostAction, Init, PerformPassthruAction, 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
Class name for the Activity Space.

See Also:
Constant Field Values

POSTTOSELF_ACTION_REDIRECT_AFTER_SAVEPOPUP

public static final int POSTTOSELF_ACTION_REDIRECT_AFTER_SAVEPOPUP
Redirects the main window when you are done with the pop-up.

See Also:
Constant Field Values
Constructor Detail

ObjEditorRepostControl

public ObjEditorRepostControl()
Method Detail

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 EditorRepostControl
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Overrides:
GetName in class EditorRepostControl
Returns:
String

PerformFinishAction

public void PerformFinishAction()
For the Object Editor we don't want to store the object yet. We need to pop-up the save Object window so the user can select the folder, set the security and and set the name and description. To do this we add a JavaScript to the current DP to open the pop-up window.

Overrides:
PerformFinishAction in class EditorRepostControl

DisableSavePopUp

protected boolean DisableSavePopUp()
Override this method to disable the save pop up.

Returns:
false

OpenSavePopUp

protected void OpenSavePopUp()
Helper nmethod to build the URL to the save pop-up and add the Javascript to open it to the curent page.

Throws:
XPException

PerformAction

protected void PerformAction(int _nAction)
Switch between the action modes and call the associated method for each action.

Overrides:
PerformAction in class EditorRepostControl
Parameters:
_nAction -

SaveCurrentPage

protected void SaveCurrentPage()
Get the current page name and call the save method on the model.

Overrides:
SaveCurrentPage in class EditorRepostControl
See Also:
RepostControl.SaveCurrentPage()



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