com.plumtree.portalpages.admin.objsearch
Class AdminSearchRepostControl

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

public class AdminSearchRepostControl
extends RepostControl

Author:
MatthewF This control handles the Admin Search specific repost work. TODO: Note that code here is mostly from ObjMgrRepostControl and that these should be consolidated.

Field Summary
static java.lang.String CURRENT_KEY_INPUT
           
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
           
protected  AdminSearchModel m_asAdminSearchModel
           
static int POSTTOSELF_ACTION_COPY
           
static int POSTTOSELF_ACTION_COPY_DOCITEMS
           
static int POSTTOSELF_ACTION_DELETE
           
static int POSTTOSELF_ACTION_DELETE_LATER
           
static int POSTTOSELF_ACTION_ENABLE
           
static int POSTTOSELF_ACTION_MIGRATE
           
static int POSTTOSELF_ACTION_MOVE
          Repost Actions
static int POSTTOSELF_ACTION_MOVE_DOCITEMS
           
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
AdminSearchRepostControl()
           
 
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 GetCurrentKey()
           
protected  java.lang.String GetDP()
           
 java.lang.String GetName()
          Return the class name.
static int[] GetSelectedCards(XPHashtable htFormData, boolean returnFolders)
           
static int[] GetSelectedFolders(XPHashtable htFormData, java.lang.String key)
          This method gets the selected folders from the form data
static java.lang.Object[][] GetSelectedObjects(XPHashtable htFormData, boolean returnObjectIDS)
          This method gets the selected objects (not folders) from the form data
static XPHashtable GetSelectedObjectsMap(XPHashtable htFormData, boolean returnObjectIDS)
          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.
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
GetPageStatus, GetRepostAction, 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
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

CURRENT_KEY_INPUT

public static final java.lang.String CURRENT_KEY_INPUT
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_MOVE

public static final int POSTTOSELF_ACTION_MOVE
Repost Actions

See Also:
Constant Field Values

POSTTOSELF_ACTION_COPY

public static final int POSTTOSELF_ACTION_COPY
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_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_RUN_ONCE

public static final int POSTTOSELF_ACTION_RUN_ONCE
See Also:
Constant Field Values

POSTTOSELF_ACTION_MOVE_DOCITEMS

public static final int POSTTOSELF_ACTION_MOVE_DOCITEMS
See Also:
Constant Field Values

POSTTOSELF_ACTION_COPY_DOCITEMS

public static final int POSTTOSELF_ACTION_COPY_DOCITEMS
See Also:
Constant Field Values

m_asAdminSearchModel

protected AdminSearchModel m_asAdminSearchModel
Constructor Detail

AdminSearchRepostControl

public AdminSearchRepostControl()
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,
                                       java.lang.String key)
This method gets the selected folders from the form data

Returns:
int[] an array of Folder IDs

GetSelectedObjects

public static java.lang.Object[][] GetSelectedObjects(XPHashtable htFormData,
                                                      boolean returnObjectIDS)
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

GetSelectedCards

public static int[] GetSelectedCards(XPHashtable htFormData,
                                     boolean returnFolders)

GetSelectedObjectsMap

public static XPHashtable GetSelectedObjectsMap(XPHashtable htFormData,
                                                boolean returnObjectIDS)
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 -

GetDP

protected java.lang.String GetDP()

GetCurrentKey

public java.lang.String GetCurrentKey()



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