|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.plumtree.uiinfrastructure.editor.EditorModel
com.plumtree.portalpages.admin.ptutilities.objectlockmanager.ObjectLockManagerModel
public class ObjectLockManagerModel
This class keeps an up-to-date state of all the settings for the object lock manager. It contains the set and get methods for those settings. It contains the start, save and finish methods.
Field Summary | |
---|---|
static java.lang.String |
STR_MVC_CLASS_NAME
The unique identifier for the class |
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel |
---|
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType |
Constructor Summary | |
---|---|
ObjectLockManagerModel()
|
Method Summary | |
---|---|
void |
ChangeSort()
Changes the sort of the locked items array. |
boolean |
CheckEditorAccessAndStart(XPHashtable _htFormData)
Implements some actions to perform on start. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
void |
DoTaskOnChangePage(java.lang.String _sNewSpaceName,
java.lang.String _sNewPageName)
DoTaskOnChangePage() Changes the classID to the ID of the page to which the user is entering. |
void |
Finish()
Implement some code to execute when the user clicks on "Finish". |
java.lang.String |
GetAgentName(int intObjectID)
Static method to return system agent names based on their objectids |
int |
GetClassID()
Returns the classID. |
int |
GetLockedCount(int classID)
|
PTGrowableSortedArrayWrapper |
GetLockedItems(int intClassID)
Retrieves the list of locked items from the database, places those items into a PTSortedArrayWrapper member variable, m_arrLockedItems, then returns that member variable. |
PTGrowableSortedArrayWrapper |
GetLockedItemsFromHashtable(int _intClassID)
GetLockedItemsFromHashtable() Returns the growable array of locked items for the classID of the particular view. |
java.lang.String |
GetName()
Returns the Class name. |
int |
GetSortColumn()
Returns the sortColumn. |
int |
GetSortDirection()
Returns the sortDirection. |
boolean |
GetSortOnly()
Returns whether we are just sorting the list of locked items, or whether we should retrieve new data from the database. |
void |
Init(AActivitySpace parent)
Inits the Model with the IPTSession. |
int |
SavePage(java.lang.String _sPageName,
XPHashtable _htFormData)
Calls the right save function according to the page name passed in argument. |
void |
SaveValues(XPHashtable _htFormData)
Stores the object IDs of the objects selected to be unlocked in the m_arrItemsToUnlock member variable. |
void |
SetClassID(int classID)
Sets the classID. |
void |
SetLocks()
SetLocks() Initializes hashtable of locked items for the current page - called from View to ensure that the correct class of objects is set. |
void |
SetSortColumn(int sortColumn)
Sets the sortColumn. |
void |
SetSortDirection(int sortDirection)
Sets the sortDirection. |
void |
SetSortOnly(boolean m_bSortOnly)
Sets whether we are just sorting the list of locked items, or whether we should retrieve new data from the database. |
void |
UnlockObjects()
UnlockObjects() Maintains the state of the hashtables that store lock/unlock object information. |
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel |
---|
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, SetHideLeftNav, SetPageStatus, SetUserHasAccessToEditor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.uiinfrastructure.editor.IEditorModelRO |
---|
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
Constructor Detail |
---|
public ObjectLockManagerModel()
Method Detail |
---|
public void SetClassID(int classID)
classID
- The classID to setpublic int GetClassID()
GetClassID
in interface IObjectLockManagerModelRO
public void SetSortColumn(int sortColumn)
sortColumn
- The sortColumn to setpublic int GetSortColumn()
GetSortColumn
in interface IObjectLockManagerModelRO
public void SetSortDirection(int sortDirection)
sortDirection
- The sortDirection to setpublic int GetSortDirection()
GetSortDirection
in interface IObjectLockManagerModelRO
public void SetSortOnly(boolean m_bSortOnly)
m_bSortOnly
- The m_bSortOnly to setpublic boolean GetSortOnly()
GetSortOnly
in interface IObjectLockManagerModelRO
public void DoTaskOnChangePage(java.lang.String _sNewSpaceName, java.lang.String _sNewPageName)
DoTaskOnChangePage
in class EditorModel
sNewSpaceName
- sNewPageName
- public void ChangeSort()
intColumn
- intDirection
- public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
CheckEditorAccessAndStart
in class EditorModel
_htFormData
-
public void SetLocks()
public java.lang.Object Create()
EditorModel
Create
in interface IManagedObject
Create
in class EditorModel
IManagedObject.Create()
public void Finish()
Finish
in interface IRepostModel
Finish
in class EditorModel
public PTGrowableSortedArrayWrapper GetLockedItems(int intClassID)
GetLockedItems
in interface IObjectLockManagerModelRO
public int GetLockedCount(int classID)
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class EditorModel
public void Init(AActivitySpace parent)
Init
in interface IModel
Init
in class EditorModel
parent
- public int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
SavePage
in interface IRepostModel
SavePage
in class EditorModel
_sPageName
- _htFormData
-
public void SaveValues(XPHashtable _htFormData)
_htFormData
- public void UnlockObjects()
public PTGrowableSortedArrayWrapper GetLockedItemsFromHashtable(int _intClassID)
GetLockedItemsFromHashtable
in interface IObjectLockManagerModelRO
public java.lang.String GetAgentName(int intObjectID)
intObjectID
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |