|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.editor.EditorHelperModel com.plumtree.uiinfrastructure.expandablelist.ExpListModel com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.selectptobjectsbytype.SelectPTObjectsByTypeModel com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel com.plumtree.portaluiinfrastructure.securitymatrix.MultiObjectsSecurityModel
public class MultiObjectsSecurityModel
This is the implementation of the Expandable List framework for the the Select PTObject list. The Select PTObject is a list of objects. New objects can be added to the list by selecting them from the associated Object tree. The list is by default sorted by name ascending.
Field Summary | |
---|---|
protected int[] |
m_arrColumns
Array of column info. |
protected XPArrayList |
m_arrObjects
Array of objects we are editing the security for. |
protected XPHashtable |
m_htObjectColumnKeys
|
static java.lang.String |
QS_MULTI_OBJ_SECURITY_IDS
Class name for the activity space |
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel |
---|
EXPLIST_COL_ACCESSLEVEL_ID, EXPLIST_COL_ACCESSLEVEL_STRING, EXPLIST_COL_GROUPTREEASID, EXPLIST_COL_MANDATORY, EXPLIST_COL_MAX, EXPLIST_COL_ROWACCESS, EXPLIST_DEFAULT_INITIAL_SIZE, m_arrAccessLevels, m_arrLowAccessObjects, m_arrNoContentTree, m_bCardACL, m_bShowHeaderAndLeftNav, m_nSupportMandatoryColumn, m_ptObject, m_ptSession, m_sLeftNavString, MANDATORY_FALSE, MANDATORY_TRUE, MANDCOL_COMMUNITY, MANDCOL_NONE, MANDCOL_REGULAR, PT_ACCESS_LIST_ENTRY_READONLY, PT_ACCESS_LIST_ENTRY_READWRITE, SUBSPACE_KEY_EVERYONETREE, SUBSPACE_KEY_GROUPTREE |
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
m_asOwner |
Constructor Summary | |
---|---|
MultiObjectsSecurityModel()
|
Method Summary | |
---|---|
protected void |
AddACLToList(int _nClassID,
int _nObjectID,
java.lang.String _sName)
Helper method that adds a row to the list. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
protected java.lang.Object[][] |
CreateColumnInfos()
Creates the array of clolumn info. |
void |
Finish()
Saves the security settings into the IPTObject. |
java.lang.String |
GetAccessLevelString(int _nAccessLevelID)
Returns the String associated with the Access Level ID in argument. |
int |
GetACLIndex(int _nClassID,
int _nObjectID)
|
protected int[] |
GetArrayOfColumns()
Helper method to get the sort. |
int[] |
GetColumns()
Returns the array of column info. |
IPTAccessList |
GetCurrentFolderACL()
|
java.lang.String |
GetName()
Returns the Class name. |
XPArrayList |
GetObjectArray()
Returns the array of Objects. |
int[] |
GetObjectIDs()
Returns the array of Object IDs. |
boolean |
HasSecurityMatrixChanged()
Returns a flag to know whether any of the security settings on the matrix have changed (compare to what we have in the DB). |
protected void |
InitAccessLevels()
Inits the array of supported Access Levels. |
boolean |
InitializeMultiObjsSecurityPage(XPHashtable _htFormData,
IPTSession _ptSession)
Initializes the expandable list. |
protected void |
InitListWithACLFromObject(IPTObject _ptObject)
Initializes the list with the ACL from the PTObject. |
boolean |
IsAdminModifiedOnFolder(IPTAccessList _ptOldACL)
|
boolean |
IsEdtingAdminFolderSecurity()
Returns true if we are Editing Security on Amdin Folders. |
protected boolean |
IsMatrixRowInObjectACL(int _nClassID,
int _nObjectID,
int _nAccessLevel,
IPTAccessList _ptACL)
Tells whether the row identified by the class ID, the object ID and the Access Level ID in argument is in the Object ACL or no. |
void |
ResetSettings()
Resets all the changes that were made so far. |
protected int |
SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
Saves the access level for the row _nRowIndex. |
protected void |
StoreSecurityOnObject(IPTObject _ptObject)
Saves the security settings into the IPTObject. |
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel |
---|
AddACLFromTree, AddRowsOnRepost, CanPropagateSecurity, DisplayGroupMembersTree, GetAccessLevels, GetColumnInfos, GetIsCardACL, GetLeftNavString, GetSelectedItems, GetShowHeaderAndLeftNav, GetSupportMandatoryColumn, HasAccessRights, HasEditAccessToGroup, HasSecurityChanged, InitializeSecurityPage, InitListWithACLFromObject, InitReadOnlyAccessFlag, IsACLInArray, IsEveryoneGroup, SetCardACL, SetLeftNavString, SetShowHeaderAndLeftNav, SetSupportMandatoryColumn |
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.selectptobjectsbytype.SelectPTObjectsByTypeModel |
---|
GetMainColumnSort, GetMainColumnSortDirection, InitializeSortedArray, ReverseCurrentSort, SortByColumn |
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
CleanupAllData, CleanupTempData, Init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.IObjectSecurityModelRO |
---|
DisplayGroupMembersTree, GetAccessLevels, GetIsCardACL, GetLeftNavString, GetShowHeaderAndLeftNav, GetSupportMandatoryColumn, HasEditAccessToGroup, IsEveryoneGroup |
Methods inherited from interface com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.ISelectPTObjectModelRO |
---|
ClearHiddenObjects, GetAccessLevel, GetCommunityFolderID, GetCommunityMode, GetCreateNewInfo, GetCreateNewURL, GetDefaultRowIcon, GetDisplayObjects, GetEditObjectURL, GetHiddenObjects, GetNoRowIcons, GetObjectClassIDs, GetRowIconByClassID, GetSelectedItems, GetSelectedNamesAsHTML, GetTreeLeafType, GetTreeMultiSelect, GetTreeQueryFilter, GetTreeSpaceID, GetTreeSubTitle, GetTreeTitle, GetUniquePopUpName, IsEditLinkEnabled, IsObjectReadOnly |
Methods inherited from interface com.plumtree.uiinfrastructure.expandablelist.IExpListModelRO |
---|
GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, GetArrExpListColInfo, GetDeleteIcon, GetDeleteIconAlt, GetDelRowConfirmMsg, GetEmptyListInstructions, GetEmptyListMainMessage, GetEnableMoveRowActions, GetIsListReadOnly, GetListKey, GetMainColumnSort, GetMainColumnSortDirection, GetModelStorageName, GetReadOnlyItems, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled |
Methods inherited from interface com.plumtree.uiinfrastructure.form.pagination.IPaginationModelRO |
---|
GetCurrentLowerObjectCount, GetCurrentUpperObjectCount, GetNumObjects, GetPaginationSize |
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IModel |
---|
CleanupAllData, CleanupTempData, Init |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String QS_MULTI_OBJ_SECURITY_IDS
protected XPArrayList m_arrObjects
protected int[] m_arrColumns
protected XPHashtable m_htObjectColumnKeys
Constructor Detail |
---|
public MultiObjectsSecurityModel()
Method Detail |
---|
protected void AddACLToList(int _nClassID, int _nObjectID, java.lang.String _sName)
AddACLToList
in class ObjectSecurityModel
_nClassID
- _nObjectID
- _sName
- public java.lang.Object Create()
EditorHelperModel
Create
in interface IManagedObject
Create
in class ObjectSecurityModel
IManagedObject.Create()
public void Finish()
Finish
in class ObjectSecurityModel
public int GetACLIndex(int _nClassID, int _nObjectID)
_nClassID
- _nObjectID
-
public boolean HasSecurityMatrixChanged()
protected boolean IsMatrixRowInObjectACL(int _nClassID, int _nObjectID, int _nAccessLevel, IPTAccessList _ptACL)
_nClassID
- _nObjectID
- _nAccessLevel
- _ptACL
-
public boolean IsEdtingAdminFolderSecurity()
public IPTAccessList GetCurrentFolderACL()
public boolean IsAdminModifiedOnFolder(IPTAccessList _ptOldACL)
_ptOldACL
- the IPTAccessList from before the ACLs were changed
public int[] GetObjectIDs()
public java.lang.String GetAccessLevelString(int _nAccessLevelID)
GetAccessLevelString
in interface IObjectSecurityModelRO
GetAccessLevelString
in class ObjectSecurityModel
_nAccessLevelID
-
com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel#GetAccessLevelString()
public int[] GetColumns()
GetColumns
in interface IMultiObjectsSecurityModelRO
GetColumns()
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class ObjectSecurityModel
public XPArrayList GetObjectArray()
GetObjectArray
in interface IMultiObjectsSecurityModelRO
GetObjectArray()
public boolean InitializeMultiObjsSecurityPage(XPHashtable _htFormData, IPTSession _ptSession)
_ptObject
- Object being created or edited_ptSession
- User session
public void ResetSettings()
protected java.lang.Object[][] CreateColumnInfos()
protected int[] GetArrayOfColumns()
GetArrayOfColumns
in class ObjectSecurityModel
protected void InitAccessLevels()
InitAccessLevels
in class ObjectSecurityModel
protected void InitListWithACLFromObject(IPTObject _ptObject)
_ptObject
- Object being created or editedprotected int SaveRow(PTGrowableSortedArrayWrapper _saData, int _nRowIndex, XPHashtable _htFormData)
SaveRow
in class ObjectSecurityModel
_saData
- List to update the data on row _nRowIndex_nRowIndex
- Index of the row to save._htFormData
- Data posted by the form.
protected void StoreSecurityOnObject(IPTObject _ptObject)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |