com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity
Class ObjectSecurityModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListModel
          extended by com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
              extended by com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.selectptobjectsbytype.SelectPTObjectsByTypeModel
                  extended by com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel
All Implemented Interfaces:
IObjectSecurityModelRO, ISelectPTObjectModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IPaginationModel, IPaginationModelRO
Direct Known Subclasses:
MultiObjectsSecurityModel, MultiObjectsSubscribeModel

public class ObjectSecurityModel
extends SelectPTObjectsByTypeModel
implements IObjectSecurityModelRO

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.

Author:
Julie Fournier

Field Summary
static int EXPLIST_COL_ACCESSLEVEL_ID
          This column is used to store the access level ID of each row.
static int EXPLIST_COL_ACCESSLEVEL_STRING
          This column is used to store the access level String of each row.
static int EXPLIST_COL_GROUPTREEASID
          On each group on the list there is a link to get the tree of groups in the users in that group.
static int EXPLIST_COL_MANDATORY
          If the Object being created or edited is mandatory for this user or group.
static int EXPLIST_COL_MAX
          Number total of columns
static int EXPLIST_COL_ROWACCESS
          If the row is read only, we won't deisplay the checkbox to delete it.
static int EXPLIST_DEFAULT_INITIAL_SIZE
          Default initial size for the sorted array.
protected  int[] m_arrAccessLevels
          Array of supported Access Levels (constants from PT_ACCESS_LEVELS).
protected  XPArrayList m_arrLowAccessObjects
          Special case for ACLs that the current user doesn't have at least select access to.
protected  XPArrayList m_arrNoContentTree
          You can click on a group only if the current user has at least read access to it.
protected  boolean m_bCardACL
          Special case for Crawler Editor where it's possible to Edit the imported cards ACL.
protected  boolean m_bShowHeaderAndLeftNav
          We don't want to display the header and the left navigation in create mode when the Security table is displayed in the save object pop-up.
protected  int m_nSupportMandatoryColumn
          Flag to know if we should display the mandatory column for this Object.
protected  IPTObject m_ptObject
          Object being created or edited.
protected  IPTSession m_ptSession
          Current User Session
protected  java.lang.String m_sLeftNavString
          String to display on the left navigation menu.
static int MANDATORY_FALSE
          Mandatory column value: the Object is NOT mandatory for this user of group
static int MANDATORY_TRUE
          Mandatory column value: the Object is mandatory for this user of group
static int MANDCOL_COMMUNITY
          Value for m_nSupportMandatoryColumn: community
static int MANDCOL_NONE
          Value for m_nSupportMandatoryColumn: none
static int MANDCOL_REGULAR
          Value for m_nSupportMandatoryColumn: regular
static boolean PT_ACCESS_LIST_ENTRY_READONLY
          Read only flag value for the EXPLIST_COL_ROWACCESS column.
static boolean PT_ACCESS_LIST_ENTRY_READWRITE
          Read/Write flag value for the EXPLIST_COL_ROWACCESS column.
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
static java.lang.String SUBSPACE_KEY_EVERYONETREE
          Key name used by the Activity Space to store the read-only everyone tree.
static java.lang.String SUBSPACE_KEY_GROUPTREE
          Key name used by the Activity Space to store the read-only groups in groups tree.
 
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
CREATE_NEW_COL_ASNAME, CREATE_NEW_COL_CLASSID, CREATE_NEW_COL_ICON, CREATE_NEW_COL_LABEL, CREATE_NEW_COL_MAX, CREATE_NEW_COL_MAXWITHPARAMS, CREATE_NEW_COL_PARAMS, EXPLIST_COL_CLASSID, EXPLIST_COL_OBJECTID, EXPLIST_COL_STRING, HIDE_COL_CLASSID, HIDE_COL_MAX, HIDE_COL_OBJECTID, m_arrCreateNewInfo, m_arrObjectClassIDs, m_arrReadOnlyObjects, m_bNoRowIcons, m_bTreeMultiSelect, m_imgDefaultRowIcon, m_nAccessLevel, m_nCommunityFolderID, m_nCommunityMode, m_sDisplayObjects, m_sTreeSpaceID, m_sTreeSubTitle, m_sTreeTitle, m_strObjectsToHide, m_strTreeQueryFilter, m_treeLeafType, m_xphtRowIcons, PARAM_COL_PARAMNAME, PARAM_COL_PARAMVALUE, READ_ONLY_ROW_CLASSID, READ_ONLY_ROW_OBJECTID, SUBSPACE_KEY_SELECTTREE
 
Fields inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel
EXPLIST_COLUMN_COLSPAN, EXPLIST_COLUMN_ENABLESORT, EXPLIST_COLUMN_ID, EXPLIST_COLUMN_INVALID, EXPLIST_COLUMN_TITLE, EXPLIST_COLUMN_WIDTH, EXPLIST_SORTEDARRAY_PROPID_INDEX, m_arrExpListColInfo, m_bAddButtonDisabled, m_bCheckBoxesDisabled, m_bEnableMoveRowActions, m_bIsReadOnly, m_bWrapColumnHeaders, m_imgAddIcon, m_imgDeleteIcon, m_nListKey, m_nNextIndex, m_saData, m_sAddIconAlt, m_sAddLabel, m_sDeleteIconAlt, m_sDelRowConfirmMsg, m_sEmptyListAlert, m_sInstructions, m_sMainMessage, m_sSectionTitle, m_sTableInstructions, MAX_ROWS, MOVEACTION_DOWN, MOVEACTION_FIRST, MOVEACTION_LAST, MOVEACTION_UP, parent
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
ObjectSecurityModel()
           
 
Method Summary
 void AddACLFromTree(XPHashtable _htFormData)
          This method adds the group and users selected in the tree to the list.
protected  void AddACLToList(int _nClassID, int _nObjectID, java.lang.String _sName)
          Helper method that adds a row to the list.
 void AddRowsOnRepost(XPHashtable _htFormData)
          Calls the right AddRow method based on the Object type.
 boolean CanPropagateSecurity()
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 boolean DisplayGroupMembersTree(int _nGroupID)
          Returns true if this group should have a link to view its members.
 void Finish()
          Saves the security settings into the IPTObject.
 int[] GetAccessLevels()
          Returns the array of supported Access Levels.
 java.lang.String GetAccessLevelString(int _nAccessLevelID)
          Returns the String associated with the Access Level ID in argument.
protected  int[] GetArrayOfColumns()
          Helper method to get the sort.
protected  java.lang.Object[][] GetColumnInfos()
          Helper method to get the array of column info.
 boolean GetIsCardACL()
          Returns the value of m_bCardACL.
 java.lang.String GetLeftNavString()
          Returns the String to display on the left navigation menu.
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetSelectedItems()
          Returns a String of Class IDs and Object IDs of the Objects to select in the tree.
 boolean GetShowHeaderAndLeftNav()
          Tells whether or not the DP should display the header and the left navigation.
 int GetSupportMandatoryColumn()
          Returns the value of m_nSupportMandatoryColumn.
protected  boolean HasAccessRights(IPTSession _ptSession, int _nClassID, int _nObjectID, int _nAccessLevel)
          Helper method to know whether or not the current user has at least select access to the object in argument.
 boolean HasEditAccessToGroup(int _nGroupID)
          Helper function that returns true if the current user has edit access on the group identified by the ID in argument.
 boolean HasSecurityChanged()
          Returns a flag to know whether the security has changed compared to what we have in the DB or no.
protected  void InitAccessLevels()
          Inits the array of supported Access Levels.
 void InitializeSecurityPage(IPTObject _ptObject, IPTSession _ptSession)
          Initializes the expandable list.
protected  void InitListWithACLFromObject(IPTObject _ptObject, IPTSession _ptSession)
          Initializes the list with the ACL from the PTObject.
protected  void InitReadOnlyAccessFlag(IPTSession _ptSession)
          Initializes the m_bIsReadOnly flag to know if the user can edit the page or not.
 boolean IsACLInArray(int _nClassID, int _nObjectID, int _nAccessLevel)
          Tells whether the Object ACL identified by the class ID, the object ID and the Access Level ID in argument is in the list or no.
 boolean IsEveryoneGroup(int _nRowIndex)
          Returns true if the object on the row in argument corresponds to the Everyone Group.
protected  int SaveRow(PTGrowableSortedArrayWrapper _saData, int _nRowIndex, XPHashtable _htFormData)
          Saves the access level for the row _nRowIndex.
 void SetCardACL(boolean _bCardACL)
          Special case for Crawler Editor where it's possible to Edit the ACL for cards imported by this crawler.
 void SetLeftNavString(java.lang.String _sLeftNavString)
          Sets the String to display on the left navigation menu.
 void SetShowHeaderAndLeftNav(boolean _bShowHeaderAndLeftNav)
          Changes the value of the flag m_bShowHeaderAndLeftNav that decides if the DP should display the header and the left navigation.
 void SetSupportMandatoryColumn(int _nSupportMandatoryColumn)
          Sets a new value for m_nSupportMandatoryColumn.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.selectptobjectsbytype.SelectPTObjectsByTypeModel
GetMainColumnSort, GetMainColumnSortDirection, InitializeSortedArray, ReverseCurrentSort, SortByColumn
 
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
AddControlParamsToURL, ClearHiddenObjects, ContainsObject, CreateIndexMapping, DoTaskOnComeBackFromSubEditor, GetAccessLevel, GetCommunityFolderID, GetCommunityMode, GetCreateNewInfo, GetCreateNewURL, GetDefaultRowIcon, GetDisplayObjects, GetEditObjectURL, GetHiddenObjects, GetIndex, GetNoRowIcons, GetObjectClassIDs, GetRowIconByClassID, GetSelectedNamesAsHTML, GetTreeLeafType, GetTreeMultiSelect, GetTreeQueryFilter, GetTreeSpaceID, GetTreeSubTitle, GetTreeTitle, GetUniquePopUpName, InitializeListClassIDs, InitializeReadOnlySelectPTObject, InitializeSelectPTObject, IsEditLinkEnabled, IsObjectReadOnly, ResetTreeID, SaveTreeID, SetAccessLevel, SetCommunityFolderID, SetCommunityMode, SetDefaultObjects, SetDefaultRowIcon, SetDisplayObjects, SetEnableCreateNew, SetEnableMoveRowActions, SetHiddenObjects, SetNoRowIcons, SetReadOnlyObjects, SetRowIconByClassID, SetTreeLeafType, SetTreeMultiSelect, SetTreeQueryFilter, SetTreeSubTitle, SetTreeTitle
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel
DeleteRowsOnRepost, DisableAddButton, DisableCheckBoxes, EnablePagination, GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, GetArrayOfObjToDelete, GetArrExpListColInfo, GetCurrentLowerObjectCount, GetCurrentUpperObjectCount, GetDeleteIcon, GetDeleteIconAlt, GetDelRowConfirmMsg, GetEmptyListInstructions, GetEmptyListMainMessage, GetEnableMoveRowActions, GetIsListReadOnly, GetItems, GetListKey, GetModelStorageName, GetMoveAction, GetNumObjects, GetPaginationSize, GetReadOnlyItems, GetRowIndex, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, InitializeExpandableList, InitializeReadOnlyExpandableList, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled, ModifyRow, MoveDown, MoveFirst, MoveLast, MoveRow, MoveUp, SaveSection, SetAddIcon, SetAddIconAlt, SetDeleteIcon, SetDeleteIconAlt, SetDelRowConfirmMsg, SetEmptyListMessages, SetEnableEmptyListClientValidation, SetIsListReadOnly, SetListKey, SetPagination, SetSectionTitle, SetTableInstructions, SetWrapColumnHeaders
 
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.expandablelist.selectptobject.ISelectPTObjectModelRO
ClearHiddenObjects, GetAccessLevel, GetCommunityFolderID, GetCommunityMode, GetCreateNewInfo, GetCreateNewURL, GetDefaultRowIcon, GetDisplayObjects, GetEditObjectURL, GetHiddenObjects, GetNoRowIcons, GetObjectClassIDs, GetRowIconByClassID, 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

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

SUBSPACE_KEY_GROUPTREE

public static final java.lang.String SUBSPACE_KEY_GROUPTREE
Key name used by the Activity Space to store the read-only groups in groups tree.

See Also:
Constant Field Values

SUBSPACE_KEY_EVERYONETREE

public static final java.lang.String SUBSPACE_KEY_EVERYONETREE
Key name used by the Activity Space to store the read-only everyone tree.

See Also:
Constant Field Values

EXPLIST_COL_MAX

public static final int EXPLIST_COL_MAX
Number total of columns

See Also:
Constant Field Values

EXPLIST_COL_ACCESSLEVEL_ID

public static final int EXPLIST_COL_ACCESSLEVEL_ID
This column is used to store the access level ID of each row.

See Also:
Constant Field Values

EXPLIST_COL_ACCESSLEVEL_STRING

public static final int EXPLIST_COL_ACCESSLEVEL_STRING
This column is used to store the access level String of each row.

See Also:
Constant Field Values

EXPLIST_COL_ROWACCESS

public static final int EXPLIST_COL_ROWACCESS
If the row is read only, we won't deisplay the checkbox to delete it.

See Also:
Constant Field Values

EXPLIST_COL_MANDATORY

public static final int EXPLIST_COL_MANDATORY
If the Object being created or edited is mandatory for this user or group. Note: not use for all objects. Used for both mandatory column index for portlets and communities. CONSTRAINT: Cannot two of these mandatory cols in the same table for now.

See Also:
Constant Field Values

EXPLIST_COL_GROUPTREEASID

public static final int EXPLIST_COL_GROUPTREEASID
On each group on the list there is a link to get the tree of groups in the users in that group. This column is used the sotre the tree AS IDs.

See Also:
Constant Field Values

MANDATORY_TRUE

public static final int MANDATORY_TRUE
Mandatory column value: the Object is mandatory for this user of group

See Also:
Constant Field Values

MANDATORY_FALSE

public static final int MANDATORY_FALSE
Mandatory column value: the Object is NOT mandatory for this user of group

See Also:
Constant Field Values

EXPLIST_DEFAULT_INITIAL_SIZE

public static final int EXPLIST_DEFAULT_INITIAL_SIZE
Default initial size for the sorted array.

See Also:
Constant Field Values

MANDCOL_NONE

public static final int MANDCOL_NONE
Value for m_nSupportMandatoryColumn: none

See Also:
Constant Field Values

MANDCOL_REGULAR

public static final int MANDCOL_REGULAR
Value for m_nSupportMandatoryColumn: regular

See Also:
Constant Field Values

MANDCOL_COMMUNITY

public static final int MANDCOL_COMMUNITY
Value for m_nSupportMandatoryColumn: community

See Also:
Constant Field Values

PT_ACCESS_LIST_ENTRY_READONLY

public static final boolean PT_ACCESS_LIST_ENTRY_READONLY
Read only flag value for the EXPLIST_COL_ROWACCESS column. Read only means that the user won't be able to delete that row.

See Also:
Constant Field Values

PT_ACCESS_LIST_ENTRY_READWRITE

public static final boolean PT_ACCESS_LIST_ENTRY_READWRITE
Read/Write flag value for the EXPLIST_COL_ROWACCESS column. Read/Write means that the user will be able to delete that row.

See Also:
Constant Field Values

m_ptObject

protected IPTObject m_ptObject
Object being created or edited. We use it on start to prepopulate the list and on finish to store the ACL.


m_ptSession

protected IPTSession m_ptSession
Current User Session


m_sLeftNavString

protected java.lang.String m_sLeftNavString
String to display on the left navigation menu. The default value is "Security"


m_arrAccessLevels

protected int[] m_arrAccessLevels
Array of supported Access Levels (constants from PT_ACCESS_LEVELS).


m_bCardACL

protected boolean m_bCardACL
Special case for Crawler Editor where it's possible to Edit the imported cards ACL.


m_arrLowAccessObjects

protected XPArrayList m_arrLowAccessObjects
Special case for ACLs that the current user doesn't have at least select access to. These ACLs can be removed but not re-added.


m_arrNoContentTree

protected XPArrayList m_arrNoContentTree
You can click on a group only if the current user has at least read access to it.


m_bShowHeaderAndLeftNav

protected boolean m_bShowHeaderAndLeftNav
We don't want to display the header and the left navigation in create mode when the Security table is displayed in the save object pop-up.


m_nSupportMandatoryColumn

protected int m_nSupportMandatoryColumn
Flag to know if we should display the mandatory column for this Object.

Constructor Detail

ObjectSecurityModel

public ObjectSecurityModel()
Method Detail

AddACLFromTree

public void AddACLFromTree(XPHashtable _htFormData)
This method adds the group and users selected in the tree to the list. It deletes the unselected values and adds the newly selected values. It doesn't change the values that were already in the list (this way we don't loose the rights information).

Parameters:
_htFormData - Form data

AddACLToList

protected void AddACLToList(int _nClassID,
                            int _nObjectID,
                            java.lang.String _sName)
Helper method that adds a row to the list. NOTE: Items added to the growable sorted list is not resorted after adding an entry due to scalability reasons. Resort the growable sort array manually by calling: super.GetItems().SortArray()

Parameters:
_nClassID -
_nObjectID -
_sName -

AddRowsOnRepost

public void AddRowsOnRepost(XPHashtable _htFormData)
Calls the right AddRow method based on the Object type.

Overrides:
AddRowsOnRepost in class SelectPTObjectModel
Parameters:
_htFormData - Form data

Create

public java.lang.Object Create()
Description copied from class: EditorHelperModel
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Overrides:
Create in class SelectPTObjectsByTypeModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Finish

public void Finish()
Saves the security settings into the IPTObject.


GetAccessLevelString

public java.lang.String GetAccessLevelString(int _nAccessLevelID)
Returns the String associated with the Access Level ID in argument. The ID has to be a PT_ACCESS_LEVELS constant.

Specified by:
GetAccessLevelString in interface IObjectSecurityModelRO
Parameters:
_nAccessLevelID -
Returns:
String
See Also:
com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel#GetAccessLevelString()

GetAccessLevels

public int[] GetAccessLevels()
Returns the array of supported Access Levels. Those levels will be printed out on each row in a drop-down list.

Specified by:
GetAccessLevels in interface IObjectSecurityModelRO
Returns:
int[]
See Also:
GetAccessLevels()

GetLeftNavString

public java.lang.String GetLeftNavString()
Returns the String to display on the left navigation menu.

Specified by:
GetLeftNavString in interface IObjectSecurityModelRO
Returns:
String
See Also:
GetLeftNavString()

GetName

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

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

GetShowHeaderAndLeftNav

public boolean GetShowHeaderAndLeftNav()
Tells whether or not the DP should display the header and the left navigation.

Specified by:
GetShowHeaderAndLeftNav in interface IObjectSecurityModelRO
Returns:
boolean
See Also:
GetShowHeaderAndLeftNav()

GetSupportMandatoryColumn

public int GetSupportMandatoryColumn()
Returns the value of m_nSupportMandatoryColumn.

Specified by:
GetSupportMandatoryColumn in interface IObjectSecurityModelRO
Returns:
int
See Also:
GetSupportMandatoryColumn()

GetSelectedItems

public java.lang.String GetSelectedItems()
Returns a String of Class IDs and Object IDs of the Objects to select in the tree. E.g.: "classID1,ObjID1,classID2,objID2" This is the format used by the tree.

Specified by:
GetSelectedItems in interface ISelectPTObjectModelRO
Overrides:
GetSelectedItems in class SelectPTObjectModel
Returns:
String
See Also:
SelectPTObjectModel.GetSelectedItems()

HasEditAccessToGroup

public boolean HasEditAccessToGroup(int _nGroupID)
Helper function that returns true if the current user has edit access on the group identified by the ID in argument.

Specified by:
HasEditAccessToGroup in interface IObjectSecurityModelRO
Parameters:
_nGroupID -
Returns:
boolean
See Also:
com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel#HasEditAccessToGroup()

HasSecurityChanged

public boolean HasSecurityChanged()
Returns a flag to know whether the security has changed compared to what we have in the DB or no.

Returns:
boolean

CanPropagateSecurity

public boolean CanPropagateSecurity()

InitializeSecurityPage

public void InitializeSecurityPage(IPTObject _ptObject,
                                   IPTSession _ptSession)
Initializes the expandable list.

Parameters:
_ptObject - Object being created or edited
_ptSession - User session

IsACLInArray

public boolean IsACLInArray(int _nClassID,
                            int _nObjectID,
                            int _nAccessLevel)
Tells whether the Object ACL identified by the class ID, the object ID and the Access Level ID in argument is in the list or no.

Parameters:
_nClassID -
_nObjectID -
_nAccessLevel -
Returns:
boolean

DisplayGroupMembersTree

public boolean DisplayGroupMembersTree(int _nGroupID)
Returns true if this group should have a link to view its members.

Specified by:
DisplayGroupMembersTree in interface IObjectSecurityModelRO
Parameters:
_nGroupID -
Returns:
boolean
See Also:
com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel#DisplayGroupMembersTree()

SetCardACL

public void SetCardACL(boolean _bCardACL)
Special case for Crawler Editor where it's possible to Edit the ACL for cards imported by this crawler.

Parameters:
_bCardACL -

GetIsCardACL

public boolean GetIsCardACL()
Returns the value of m_bCardACL.

Specified by:
GetIsCardACL in interface IObjectSecurityModelRO
Returns:
boolean
See Also:
GetIsCardACL()

SetLeftNavString

public void SetLeftNavString(java.lang.String _sLeftNavString)
Sets the String to display on the left navigation menu.

Parameters:
_sLeftNavString -

SetShowHeaderAndLeftNav

public void SetShowHeaderAndLeftNav(boolean _bShowHeaderAndLeftNav)
Changes the value of the flag m_bShowHeaderAndLeftNav that decides if the DP should display the header and the left navigation.

Parameters:
_bShowHeaderAndLeftNav -

SetSupportMandatoryColumn

public void SetSupportMandatoryColumn(int _nSupportMandatoryColumn)
Sets a new value for m_nSupportMandatoryColumn.

Parameters:
_nSupportMandatoryColumn -

GetArrayOfColumns

protected int[] GetArrayOfColumns()
Helper method to get the sort.

Overrides:
GetArrayOfColumns in class SelectPTObjectsByTypeModel
Returns:
int[]

GetColumnInfos

protected java.lang.Object[][] GetColumnInfos()
Helper method to get the array of column info.

Returns:
Object[][]

InitAccessLevels

protected void InitAccessLevels()
Inits the array of supported Access Levels.


InitListWithACLFromObject

protected void InitListWithACLFromObject(IPTObject _ptObject,
                                         IPTSession _ptSession)
Initializes the list with the ACL from the PTObject.

Parameters:
_ptObject - Object being created or edited

HasAccessRights

protected boolean HasAccessRights(IPTSession _ptSession,
                                  int _nClassID,
                                  int _nObjectID,
                                  int _nAccessLevel)
Helper method to know whether or not the current user has at least select access to the object in argument.

Parameters:
_ptSession -
_nClassID -
_nObjectID -
_nAccessLevel -
Returns:
boolean

InitReadOnlyAccessFlag

protected void InitReadOnlyAccessFlag(IPTSession _ptSession)
Initializes the m_bIsReadOnly flag to know if the user can edit the page or not. Only users with admin access on the object can edit this page.

Parameters:
_ptSession - User session

IsEveryoneGroup

public boolean IsEveryoneGroup(int _nRowIndex)
Returns true if the object on the row in argument corresponds to the Everyone Group.

Specified by:
IsEveryoneGroup in interface IObjectSecurityModelRO
Parameters:
_nRowIndex -
Returns:
boolean
See Also:
com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel#IsEveryoneGroup()

SaveRow

protected int SaveRow(PTGrowableSortedArrayWrapper _saData,
                      int _nRowIndex,
                      XPHashtable _htFormData)
Saves the access level for the row _nRowIndex.

Overrides:
SaveRow in class SelectPTObjectModel
Parameters:
_saData - List to update the data on row _nRowIndex
_nRowIndex - Index of the row to save.
_htFormData - Data posted by the form.
Returns:
int Status for server side validation.



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