|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.tree.ATreeModel com.plumtree.portaluiinfrastructure.tree.AObjectTreeModel com.plumtree.portaluiinfrastructure.tree.AdminTreeModel
public class AdminTreeModel
This model handles generating a tree for admin objects.
Nested Class Summary | |
---|---|
static class |
AdminTreeModel.ObjectManagerHolder
Helper class to wrap object managers |
Field Summary | |
---|---|
protected boolean |
m_bDisplayingPortlets
Whether or not we are displaying portlets |
protected boolean |
m_bDisplayPreSelectedList
Whether or not we are only displaying pre-selected objects |
protected boolean |
m_bShowGlobalObjects
Whether or not we are showing global objects |
protected AdminTreeModel.ObjectManagerHolder |
m_GroupObjMgr
|
protected int |
m_nCommunityMode
|
protected int[] |
m_nDisplayedClassIDs
Class IDs to display |
protected int |
m_nFilterClassID
|
protected static int |
m_nOBJECTS_TO_LIST
the maximum number of objects to list |
protected int[] |
m_nPortletAlignment
data for fake query filters in search |
protected int[] |
m_nPortletType
|
protected int[] |
m_nPortletWebServiceID
|
protected int |
m_nProviderPropIDType
|
protected int[] |
m_nUserTypeFilter
|
protected XPArrayList |
m_nxpCommunityFolderIDs
internal data for community modes |
protected XPArrayList |
m_ObjMgrs
|
protected IPTAdminCatalog |
m_ptCatalog
server objects |
protected IPTSession |
m_ptSession
|
protected java.lang.String[] |
m_sProviderCLSID
|
protected AdminTreeModel.ObjectManagerHolder |
m_UserObjMgr
|
static java.lang.String |
STR_MVC_CLASS_NAME
MVC object name |
Fields inherited from class com.plumtree.portaluiinfrastructure.tree.AObjectTreeModel |
---|
ALLCOMMUNITIES, m_bDisplayingSearchResults, m_bSearchInitialized, m_nAccessLevel, m_ptClassTypeDescManager, m_ptFolderSelectqf, m_ptqf, NOCOMMUNITIES, THISCOMMUNITY |
Fields inherited from class com.plumtree.uiinfrastructure.tree.ATreeModel |
---|
m_asOwner, m_bAllChecked, m_bAllowEmptyTreeSubmission, m_bEmptyList, m_bFlatList, m_bHelpEnabled, m_bMultiSelect, m_bShowRoot, m_nLastExpandedNodeID, m_nSelectMode, m_nSelectOptions, m_nSubmitMode, m_Root, m_strActionSubTitle, m_strOnClickFunction, m_strParentFormItems, m_strParentFormName, m_strParentFormSpaceID, m_strParentFormSubmit, m_strTitle, m_xpmSelectedItems |
Constructor Summary | |
---|---|
AdminTreeModel()
|
Method Summary | |
---|---|
void |
AppendFolderToNodeName(TreeLeafNode node)
This helper method appends the folder name to the name of the tree node and the full path to the description. |
protected java.lang.Object[][] |
CalculateFolderSelectQueryFilter(int nAccessLevel)
This method calculates the read only query filter. |
void |
CheckDisabledCommunity(TreeCompositeNode myFolder)
This method determines whether or not to disable a folder based upon the community mode and ID. |
void |
CheckForIdenticalNames(TreeLeafNode firstNode,
java.lang.String strFirstNodeName,
TreeLeafNode secondNode,
java.lang.String strSecondNodeName)
This helper method determines if two nodes in the flat list have the same names, and then gets appends their folder name if they are identical. |
boolean |
CheckIsHidden(TreeLeafNode node)
This helper method determines if a node is hidden. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
void |
ExpandDisplayedItemsOnly()
This method is used to display multiple groups at the root level instead of a folder heirarchy. |
protected void |
ExpandGroup(TreeCompositeNode node)
|
void |
ExpandNode(boolean bExpand,
int nNodeID)
This method expands a node in the tree (Admin folder) |
void |
ExpandToFlatList()
This method expands all items in the obj mgr into a flat list and hides the root folder. |
protected void |
ExpandToSelectedItem()
This method expands the tree to display the single selected item. |
int[] |
GetDisplayedClassIDs()
This method returns the class IDs to be displayed in this tree. |
int |
GetFilterClassID()
This method returns the class ID to be filtered. |
java.lang.String[] |
GetFilterCLSID()
This method returns the CLSID values used in the web service/data source query filter. |
int |
GetFilterCLSIDPropID()
This method returns the propid for the CLSID values used in the web service/data source query filter. |
int |
GetFolderClassID()
This method returns the class ID of the folders in the tree. |
boolean |
GetItemDisplayed(int nClassID,
int nObjectID)
This method returns whether or not the given item should be displayed. |
java.lang.String |
GetName()
Return the name of the MVC object. |
int[] |
GetPortletAlignment()
This method returns the values used in the gadget alignment query filter. |
int[] |
GetPortletType()
This method returns the values used in the gadget type query filter. |
int[] |
GetPortletWebServiceID()
This method returns the values used in the gadget web service ID query filter. |
boolean |
GetSearchEnabled()
This method returns whether or not search is enabled. |
int[] |
GetUserTypeFilter()
This method returns the user type values used in the user query filter. |
void |
Init(AActivitySpace parent)
This method initializes the model. |
void |
RefreshHiddenObjects()
This helper method makes sure that the tree and the selected items list conform to the hidden objects list. |
void |
ResetTree()
This method initializes tree variables. |
void |
SetClassIDsToDisplay(int[] nIDs)
This method will set the class IDs to be displayed. |
void |
SetCommunityMode(int nMode,
int nFolderID)
This method sets the community mode for this tree. |
void |
SetObjectIDsToDisplay(int[] nIDs)
This method will display only the given objects. |
void |
SetObjectIDsToHide(int[] nIDs)
This method will hide the given objects. |
void |
SetObjectIDsToSelect(int[] nIDs)
This method will select the given objects. |
void |
SetQueryFilter(int nClassID,
int nPropID,
int[] nValues)
This must be called after SetAccessLevel() and SetClassIDsToDisplay(). |
void |
SetQueryFilter(int nClassID,
int nPropID,
java.lang.String[] sValues)
This must be called after SetAccessLevel() and SetClassIDsToDisplay(). |
void |
SetRootFolderID(int nID)
This must be called last. |
Methods inherited from class com.plumtree.portaluiinfrastructure.tree.AObjectTreeModel |
---|
GetAccessLevel, GetDisplayingSearchResults, GetItemSelected, GetLeafIfAlreadySelected, GetSearchStarted, ResetToBrowsingMode, SavePage, SelectNode, SetAccessLevel, SetCompositeImage, SetCompositeImage, SetLeafImage |
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.tree.ITreeModelRO |
---|
GetActionSubTitle, GetAllChecked, GetAllowEmptySubmission, GetDisplayingFlatList, GetHelpEnabled, GetLastExpandedNodeID, GetMultipleSelect, GetOnClickFunction, GetParentFormName, GetParentFormSpaceID, GetParentFormSubmitFunction, GetRootTreeIterator, GetSelectedItems, GetSelectMode, GetSelectOptions, GetShowRoot, GetSubmitMode, GetTitle, GetTreeIsEmpty |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
protected static final int m_nOBJECTS_TO_LIST
protected IPTAdminCatalog m_ptCatalog
protected IPTSession m_ptSession
protected AdminTreeModel.ObjectManagerHolder m_GroupObjMgr
protected AdminTreeModel.ObjectManagerHolder m_UserObjMgr
protected XPArrayList m_ObjMgrs
protected int[] m_nDisplayedClassIDs
protected int[] m_nPortletAlignment
protected int[] m_nPortletWebServiceID
protected int[] m_nPortletType
protected java.lang.String[] m_sProviderCLSID
protected int m_nProviderPropIDType
protected int m_nFilterClassID
protected int[] m_nUserTypeFilter
protected boolean m_bDisplayingPortlets
protected boolean m_bDisplayPreSelectedList
protected boolean m_bShowGlobalObjects
protected XPArrayList m_nxpCommunityFolderIDs
protected int m_nCommunityMode
Constructor Detail |
---|
public AdminTreeModel()
Method Detail |
---|
public java.lang.Object Create()
ATreeModel
Create
in interface IManagedObject
Create
in class ATreeModel
IManagedObject.Create()
public void ExpandNode(boolean bExpand, int nNodeID)
ExpandNode
in interface ITreeModel
ExpandNode
in class ATreeModel
bExpand
- whether to expand or collapse (true implies expand)nNodeID
- the ID of the node to expandpublic void ExpandToFlatList()
public int[] GetDisplayedClassIDs()
IObjectTreeModelRO
GetDisplayedClassIDs
in interface IObjectTreeModelRO
GetDisplayedClassIDs
in class AObjectTreeModel
IObjectTreeModelRO.GetDisplayedClassIDs()
public int GetFolderClassID()
IObjectTreeModelRO
GetFolderClassID
in interface IObjectTreeModelRO
GetFolderClassID
in class AObjectTreeModel
IObjectTreeModelRO.GetFolderClassID()
public int[] GetPortletAlignment()
IObjectTreeModelRO
GetPortletAlignment
in interface IObjectTreeModelRO
GetPortletAlignment
in class AObjectTreeModel
IObjectTreeModelRO.GetPortletAlignment()
public int[] GetPortletWebServiceID()
IObjectTreeModelRO
GetPortletWebServiceID
in interface IObjectTreeModelRO
GetPortletWebServiceID
in class AObjectTreeModel
IObjectTreeModelRO.GetPortletWebServiceID()
public int[] GetPortletType()
IObjectTreeModelRO
GetPortletType
in interface IObjectTreeModelRO
GetPortletType
in class AObjectTreeModel
IObjectTreeModelRO.GetPortletType()
public int[] GetUserTypeFilter()
IObjectTreeModelRO
GetUserTypeFilter
in interface IObjectTreeModelRO
GetUserTypeFilter
in class AObjectTreeModel
IObjectTreeModelRO.GetUserTypeFilter()
public java.lang.String[] GetFilterCLSID()
IObjectTreeModelRO
GetFilterCLSID
in interface IObjectTreeModelRO
GetFilterCLSID
in class AObjectTreeModel
IObjectTreeModelRO.GetFilterCLSID()
public int GetFilterCLSIDPropID()
IObjectTreeModelRO
GetFilterCLSIDPropID
in interface IObjectTreeModelRO
GetFilterCLSIDPropID
in class AObjectTreeModel
IObjectTreeModelRO.GetFilterCLSIDPropID()
public int GetFilterClassID()
GetFilterClassID
in interface IObjectTreeModel
GetFilterClassID
in interface IObjectTreeModelRO
GetFilterClassID
in class AObjectTreeModel
public boolean GetItemDisplayed(int nClassID, int nObjectID)
IObjectTreeModelRO
GetItemDisplayed
in interface IObjectTreeModelRO
GetItemDisplayed
in class AObjectTreeModel
IObjectTreeModelRO.GetItemDisplayed(int,
int)
public boolean GetSearchEnabled()
IObjectTreeModelRO
GetSearchEnabled
in interface IObjectTreeModelRO
GetSearchEnabled
in class AObjectTreeModel
IObjectTreeModelRO.GetSearchEnabled()
public java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
GetName
in class AObjectTreeModel
IMVCObject.GetName()
public void Init(AActivitySpace parent)
IModel
Init
in interface IModel
Init
in class AObjectTreeModel
parent
- the parent Activity SpaceIModel.Init(AActivitySpace)
public void ResetTree()
ITreeModel
ResetTree
in interface ITreeModel
ResetTree
in class AObjectTreeModel
public void ExpandDisplayedItemsOnly()
nIDs
- public void SetClassIDsToDisplay(int[] nIDs)
ITreeModel
SetClassIDsToDisplay
in interface ITreeModel
SetClassIDsToDisplay
in class AObjectTreeModel
nIDs
- ITreeModel.SetClassIDsToDisplay(int[])
public void SetObjectIDsToDisplay(int[] nIDs)
ITreeModel
SetObjectIDsToDisplay
in interface ITreeModel
SetObjectIDsToDisplay
in class ATreeModel
ITreeModel.SetObjectIDsToDisplay(int[])
public void SetObjectIDsToHide(int[] nIDs)
ITreeModel
SetObjectIDsToHide
in interface ITreeModel
SetObjectIDsToHide
in class AObjectTreeModel
ITreeModel.SetObjectIDsToHide(int[])
public void SetObjectIDsToSelect(int[] nIDs)
ITreeModel
SetObjectIDsToSelect
in interface ITreeModel
SetObjectIDsToSelect
in class AObjectTreeModel
nIDs
- ITreeModel.SetObjectIDsToSelect(int[])
public void SetQueryFilter(int nClassID, int nPropID, int[] nValues)
SetQueryFilter
in interface IObjectTreeModel
SetQueryFilter
in class AObjectTreeModel
IObjectTreeModel.SetQueryFilter(int,
int, int[])
public void SetQueryFilter(int nClassID, int nPropID, java.lang.String[] sValues)
SetQueryFilter
in interface IObjectTreeModel
SetQueryFilter
in class AObjectTreeModel
IObjectTreeModel.SetQueryFilter(int,
int, String[])
public void SetCommunityMode(int nMode, int nFolderID)
IObjectTreeModel
SetCommunityMode
in interface IObjectTreeModel
SetCommunityMode
in class AObjectTreeModel
nMode
- nFolderID
- IObjectTreeModel.SetCommunityMode(int, int)
public void SetRootFolderID(int nID)
SetRootFolderID
in interface IObjectTreeModel
SetRootFolderID
in class AObjectTreeModel
nID
- The ID of the root folder/catalog/etc...IObjectTreeModel.SetRootFolderID(int)
protected void ExpandGroup(TreeCompositeNode node)
node
- protected void ExpandToSelectedItem()
public void RefreshHiddenObjects()
public boolean CheckIsHidden(TreeLeafNode node)
public void CheckForIdenticalNames(TreeLeafNode firstNode, java.lang.String strFirstNodeName, TreeLeafNode secondNode, java.lang.String strSecondNodeName)
TreeLeafNode
- the first node (may be null)String
- the original name of the first node (in case
it has already had the folder name appended to it. (may be null)TreeLeafNode
- the second nodeString
- the original name of the second node (in case
it would be truncated by the node)public void AppendFolderToNodeName(TreeLeafNode node)
TreeLeafNode
- the node to append to.public void CheckDisabledCommunity(TreeCompositeNode myFolder)
TreeCompositeNode
- Folder to check.protected java.lang.Object[][] CalculateFolderSelectQueryFilter(int nAccessLevel)
CalculateFolderSelectQueryFilter
in class AObjectTreeModel
int
- the access level required by the tree
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |