|
|||||||||
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.subscribematrix.MultiObjectsSubscribeModel
public class MultiObjectsSubscribeModel
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 | |
---|---|
static int |
EXPLIST_COL_SUBSCRIBE
Subscribe column |
static int |
EXPLIST_COLUMN_IMG
Object img |
protected int[] |
m_arrColumns
Array of column info. |
protected XPArrayList |
m_arrObjects
Array of objects we are editing the security for. |
static java.lang.String |
QS_MULTI_OBJ_SUBSCRIBE_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 | |
---|---|
MultiObjectsSubscribeModel()
|
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. |
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 |
GetJobFolderName()
|
int |
GetJobID()
|
java.lang.String |
GetJobName()
|
java.lang.String |
GetName()
Returns the Class name. |
XPArrayList |
GetObjectArray()
Returns the array of Objects. |
int[] |
GetObjectIDs()
Returns the array of Object IDs. |
boolean |
HaveSubscriptionsBeenMade()
Returns a flag to know whether any subscriptions have been made. |
boolean |
InitializeMultiObjsSubscribePage(XPHashtable _htFormData,
IPTSession _ptSession)
Initializes the expandable list. |
protected void |
InitListWithACLFromObject(IPTObject _ptObject)
Initializes the list with the ACL from the PTObject. |
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. |
protected int |
SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
Saves the access level for the row _nRowIndex. |
protected void |
StoreSubscriptionsToObject(IPTObject _ptObject,
IPTBulkSubscriber _ptSubscriber)
Saves the security settings into the IPTObject. |
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.commonpages.objectsecurity.ObjectSecurityModel |
---|
AddACLFromTree, AddRowsOnRepost, CanPropagateSecurity, DisplayGroupMembersTree, GetAccessLevels, GetAccessLevelString, GetColumnInfos, GetIsCardACL, GetLeftNavString, GetSelectedItems, GetShowHeaderAndLeftNav, GetSupportMandatoryColumn, HasAccessRights, HasEditAccessToGroup, HasSecurityChanged, InitAccessLevels, 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, GetAccessLevelString, 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_SUBSCRIBE_IDS
public static final int EXPLIST_COL_SUBSCRIBE
public static final int EXPLIST_COLUMN_IMG
protected XPArrayList m_arrObjects
protected int[] m_arrColumns
Constructor Detail |
---|
public MultiObjectsSubscribeModel()
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 GetJobID()
GetJobID
in interface IMultiObjectsSubscribeModelRO
public java.lang.String GetJobName()
GetJobName
in interface IMultiObjectsSubscribeModelRO
public java.lang.String GetJobFolderName()
GetJobFolderName
in interface IMultiObjectsSubscribeModelRO
public int GetACLIndex(int _nClassID, int _nObjectID)
_nClassID
- _nObjectID
-
public boolean HaveSubscriptionsBeenMade()
protected boolean IsMatrixRowInObjectACL(int _nClassID, int _nObjectID, int _nAccessLevel, IPTAccessList _ptACL)
_nClassID
- _nObjectID
- _nAccessLevel
- _ptACL
-
public IPTAccessList GetCurrentFolderACL()
public int[] GetObjectIDs()
public int[] GetColumns()
GetColumns
in interface IMultiObjectsSubscribeModelRO
MultiObjectsSecurityModel.GetColumns()
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class ObjectSecurityModel
public XPArrayList GetObjectArray()
GetObjectArray
in interface IMultiObjectsSubscribeModelRO
MultiObjectsSecurityModel.GetObjectArray()
public boolean InitializeMultiObjsSubscribePage(XPHashtable _htFormData, IPTSession _ptSession)
_ptObject
- Object being created or edited_ptSession
- User session
protected java.lang.Object[][] CreateColumnInfos()
protected int[] GetArrayOfColumns()
GetArrayOfColumns
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 StoreSubscriptionsToObject(IPTObject _ptObject, IPTBulkSubscriber _ptSubscriber)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |