com.plumtree.portalpages.admin.objmgr
Class ObjMgrRepostControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.form.RepostControl
      extended by com.plumtree.portalpages.admin.objmgr.ObjMgrRepostControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject

public class ObjMgrRepostControl
extends RepostControl

Author:
Don Hayler This control handles the Obj Mgr specific repost work.

Field Summary
static java.lang.String HTML_INPUT_EXPAND_BOOLEAN
           
static java.lang.String HTML_INPUT_EXPAND_OBJECT_ID
          Expand object types inputs
static java.lang.String HTML_INPUT_FOLDER_ID
          Mandatory Form inputs
static java.lang.String HTML_INPUT_OBJECT_IDS
           
static int POSTTOSELF_ACTION_COLLAPSE_ALL_OBJECTS
           
static int POSTTOSELF_ACTION_COPY
           
static int POSTTOSELF_ACTION_CREATE_FOLDER
          Repost Actions
static int POSTTOSELF_ACTION_DELETE
           
static int POSTTOSELF_ACTION_DELETE_LATER
           
static int POSTTOSELF_ACTION_EDIT
           
static int POSTTOSELF_ACTION_ENABLE
           
static int POSTTOSELF_ACTION_EXPAND_ALL_OBJECTS
           
static int POSTTOSELF_ACTION_EXPAND_OBJECT_TYPE
           
static int POSTTOSELF_ACTION_MIGRATE
           
static int POSTTOSELF_ACTION_MOVE
           
static int POSTTOSELF_ACTION_RUN_ONCE
           
static java.lang.String STR_MVC_CLASS_NAME
          Name of this control
 
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
ObjMgrRepostControl()
           
 
Method Summary
 Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
          This ovverrides the implementation from RepostControl for certain actions
 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.
static int[] GetSelectedFolders(XPHashtable htFormData)
          This method gets the selected folders from the form data
static java.lang.Object[][] GetSelectedObjects(IObjMgrModelRO asObjMgrModel, XPHashtable htFormData)
          This method gets the selected objects (not folders) from the form data
static XPHashtable GetSelectedObjectsMap(IObjMgrModelRO asObjMgrModel, XPHashtable htFormData)
          This method gets the selected objects (not folders) from the form data
 void Init(IModel model, AActivitySpace space)
          Inits the class with the associated model and activity space.
protected  void PerformAction(int _nAction)
          Given the repost action mode, calls the associated method in the model.
protected  void SaveCurrentPage()
          Save Object Manager settings
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
GetPageStatus, GetRepostAction, 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
Name of this control

See Also:
Constant Field Values

HTML_INPUT_FOLDER_ID

public static final java.lang.String HTML_INPUT_FOLDER_ID
Mandatory Form inputs

See Also:
Constant Field Values

HTML_INPUT_OBJECT_IDS

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

HTML_INPUT_EXPAND_OBJECT_ID

public static final java.lang.String HTML_INPUT_EXPAND_OBJECT_ID
Expand object types inputs

See Also:
Constant Field Values

HTML_INPUT_EXPAND_BOOLEAN

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

POSTTOSELF_ACTION_CREATE_FOLDER

public static final int POSTTOSELF_ACTION_CREATE_FOLDER
Repost Actions

See Also:
Constant Field Values

POSTTOSELF_ACTION_MOVE

public static final int POSTTOSELF_ACTION_MOVE
See Also:
Constant Field Values

POSTTOSELF_ACTION_COPY

public static final int POSTTOSELF_ACTION_COPY
See Also:
Constant Field Values

POSTTOSELF_ACTION_EDIT

public static final int POSTTOSELF_ACTION_EDIT
See Also:
Constant Field Values

POSTTOSELF_ACTION_DELETE

public static final int POSTTOSELF_ACTION_DELETE
See Also:
Constant Field Values

POSTTOSELF_ACTION_DELETE_LATER

public static final int POSTTOSELF_ACTION_DELETE_LATER
See Also:
Constant Field Values

POSTTOSELF_ACTION_RUN_ONCE

public static final int POSTTOSELF_ACTION_RUN_ONCE
See Also:
Constant Field Values

POSTTOSELF_ACTION_MIGRATE

public static final int POSTTOSELF_ACTION_MIGRATE
See Also:
Constant Field Values

POSTTOSELF_ACTION_ENABLE

public static final int POSTTOSELF_ACTION_ENABLE
See Also:
Constant Field Values

POSTTOSELF_ACTION_EXPAND_OBJECT_TYPE

public static final int POSTTOSELF_ACTION_EXPAND_OBJECT_TYPE
See Also:
Constant Field Values

POSTTOSELF_ACTION_EXPAND_ALL_OBJECTS

public static final int POSTTOSELF_ACTION_EXPAND_ALL_OBJECTS
See Also:
Constant Field Values

POSTTOSELF_ACTION_COLLAPSE_ALL_OBJECTS

public static final int POSTTOSELF_ACTION_COLLAPSE_ALL_OBJECTS
See Also:
Constant Field Values
Constructor Detail

ObjMgrRepostControl

public ObjMgrRepostControl()
Method Detail

CheckActionSecurityAndExecute

public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
This ovverrides the implementation from RepostControl for certain actions

Specified by:
CheckActionSecurityAndExecute in interface IControl
Overrides:
CheckActionSecurityAndExecute in class RepostControl
Returns:
Redirect

GetSelectedFolders

public static int[] GetSelectedFolders(XPHashtable htFormData)
This method gets the selected folders from the form data

Returns:
int[] an array of Folder IDs

GetSelectedObjects

public static java.lang.Object[][] GetSelectedObjects(IObjMgrModelRO asObjMgrModel,
                                                      XPHashtable htFormData)
This method gets the selected objects (not folders) from the form data

Returns:
Object[][] a (2 x n) array of class ID / Object ID pairs

GetSelectedObjectsMap

public static XPHashtable GetSelectedObjectsMap(IObjMgrModelRO asObjMgrModel,
                                                XPHashtable htFormData)
This method gets the selected objects (not folders) from the form data

Returns:
XPHashtable of Integer class IDs to int[] of Object IDs

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.xpshared.activityspace.IControl#GetName()

Init

public void Init(IModel model,
                 AActivitySpace space)
Inits the class with the associated model and activity space.

Specified by:
Init in interface IControl
Overrides:
Init in class RepostControl
Parameters:
model -
space -

PerformAction

protected void PerformAction(int _nAction)
Given the repost action mode, calls the associated method in the model.

Overrides:
PerformAction in class RepostControl
Parameters:
_nAction -

SaveCurrentPage

protected void SaveCurrentPage()
Save Object Manager settings

Overrides:
SaveCurrentPage in class RepostControl



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