|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.Gui2.ACSTree
public class ACSTree
This class is responsible for creating and for updating viewable trees from an ACS. All the methods are static. createGraphicalTree is the main method.
Field Summary | |
---|---|
private static javax.swing.tree.DefaultTreeModel |
acsTreeModel__
|
private static javax.swing.tree.DefaultMutableTreeNode |
currentACSNode__
|
private static int |
INITIAL_CAPACITY
|
private static ACSTree |
instance__
|
static java.util.Map |
M_ACS_TREE_UPPER_NODES
|
Constructor Summary | |
---|---|
private |
ACSTree()
only one private constructor |
Method Summary | |
---|---|
private static boolean[] |
buildUpGraphicalDirectoryChildren(Directory _dir)
Creates the non-null children as TreeNodes in a graphical tree. |
static boolean |
checkACSTreeNode(ACSRun _acs,
java.lang.String _node)
Checks the need of a node in the acs tree from the ACS properties. |
static javax.swing.JTree |
createACSExplorer(ACSRun _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _root)
Creates a graphical subtree of ACS objects. |
static javax.swing.JTree |
createAcsRightGraphicalTree(ACSRun _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _accRoot)
Creates a graphical flat list of ACS rights. |
static javax.swing.JTree |
createACSTree(ACS _acs)
Creates a new graphical tree of ACS objects. |
static javax.swing.JTree |
createExtContResourceGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _root)
Creates a graphical tree of external controlled resources owned by another ACS, through the external AclEntries or Linked Privileges. |
static javax.swing.JTree |
createExtEligPartyGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _epRoot)
Creates 3 graphical subtrees of external eligible parties, which are accounts (groupID and userID) and actors (that are also resources) owned by another ACS, for which the ACS controls specific rights through its AclEntries or Linked Privileges. |
static javax.swing.JTree |
createGraphicalTree(ACSRun _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _root,
java.lang.String _rootName)
Creates a graphical tree for a standard node from one of the 10 value of 'nodesInACSTree' in the ACS BeanInfo. |
static javax.swing.JTree |
createOwnAclGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _root)
Creates a graphical tree of own AclEntries, or simply a flat list if there is no subACS resources with AclEntries. |
static javax.swing.JTree |
createOwnActorGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _actRoot)
Creates a graphical flat list of own actors (which are also resources). |
static javax.swing.JTree |
createOwnEligiblePartyVirtualFolderGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _vfRoot)
Creates a graphical subtree of own EligibleParty virtual folders for an ACS. |
static javax.swing.JTree |
createOwnGroupGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _grpRoot)
Creates a graphical tree of own groupIDs with all their members, including other groupIDs. |
static javax.swing.JTree |
createOwnPrivilegeGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _priRoot)
Creates a graphical list of own typed and linked privileges for an ACS. |
static javax.swing.JTree |
createOwnResourceGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _resRoot)
Creates a graphical subtree of own resources for an ACS. |
static javax.swing.JTree |
createOwnResourceVirtualFolderGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _vfRoot)
Creates a graphical subtree of own resource virtual folders for an ACS. |
static javax.swing.JTree |
createOwnUserGraphicalTree(ACS _acs,
javax.swing.JTree _tree,
javax.swing.tree.DefaultMutableTreeNode _accRoot)
Creates a graphical flat list of own userIDs. |
static javax.swing.tree.DefaultMutableTreeNode |
getACSTreeMainNode(javax.swing.tree.DefaultTreeModel _treeModel,
ImmutableACS _acs,
java.lang.String _title,
boolean _forExplorer)
Get one of the twelve main nodes in an ACS tree, in the explorer or an another ACS tree. |
static javax.swing.tree.DefaultTreeModel |
getExtContActorTree(ImmutableACS _acs,
javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _actRoot)
Create a graphical flat list of external controlled actors (which are also resources!) |
static javax.swing.tree.DefaultTreeModel |
getExtContResourceSubTreeRoots(javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _root)
Get the children under the 'External Controlled Resources' node in an ACSTree. |
static javax.swing.tree.DefaultTreeModel |
getExtContResourceTree(ImmutableACS _acs,
javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _root)
Create a graphical flat list of external controlled resources, which are never actors, owned by another ACS. |
static javax.swing.tree.DefaultTreeModel |
getExtEligibleActorTree(ImmutableACS _acs,
javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _root)
Creates a graphical flat list of Actors owned by another ACS, for which the ACS controls specific rights through its external AclEntries or Linked Privileges. |
static javax.swing.tree.DefaultTreeModel |
getExtEligibleGroupTree(ImmutableACS _acs,
javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _root)
Creates a graphical flat list of GroupIDs owned by another ACS, for which the ACS controls specific rights through its external AclEntries or Linked Privileges. |
static javax.swing.tree.DefaultTreeModel |
getExtEligibleUserTree(ImmutableACS _acs,
javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _root)
Creates a graphical flat list of UserIDs owned by another ACS, for which the ACS controls specific rights through its external AclEntries or Linked Privileges. |
static javax.swing.tree.DefaultTreeModel |
getExtEPSubTreeRoots(javax.swing.tree.DefaultTreeModel _treeModel,
javax.swing.tree.DefaultMutableTreeNode _root)
Get the three standard nodes under the 'External Eligible Parties' node in an ACSTree: EEACTORS, EGROUPS, EUSERS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static ACSTree instance__
private static final int INITIAL_CAPACITY
private static javax.swing.tree.DefaultMutableTreeNode currentACSNode__
private static javax.swing.tree.DefaultTreeModel acsTreeModel__
public static final java.util.Map M_ACS_TREE_UPPER_NODES
Constructor Detail |
---|
private ACSTree()
Method Detail |
---|
public static final javax.swing.JTree createACSTree(ACS _acs) throws ProcessError
_acs
- to process
ProcessError
- if _acs is nullpublic static final javax.swing.JTree createACSExplorer(ACSRun _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _root) throws ProcessError
_acs
- to process_tree
- to process, which may be the explorer tree or not_root
- of the ACS tree in _tree
ProcessError
- if _acs is null or if "nodesInACSTree" return null
in the BeanInfo of the ACSpublic static final boolean checkACSTreeNode(ACSRun _acs, java.lang.String _node)
_acs
- to process is an ACS or an ACSFactoryImpl. If ACSFactoryImpl,
only the node 'ACSRIGHTS' is displayed._node
- is a node name from
ACSImplBeanInfo.getBeanDescriptor().getValue("nodesInACSTree")
public static final javax.swing.JTree createGraphicalTree(ACSRun _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _root, java.lang.String _rootName)
_acs
- to process is an ACS or an ACSFactoryImpl_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_root
- is the node to which the graphical tree is added_rootName
- is the user value of _root, that is a string which
must be a key in M_ACS_TREE_UPPER_NODES
public static final javax.swing.JTree createOwnActorGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _actRoot)
_acs
- ACS to process_tree
- JTree to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_actRoot
- DefaultMutableTreeNode in _tree, to which the ACS actors
are added
public static final javax.swing.JTree createOwnResourceGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _resRoot)
- the Resources tree from ARoad0.gBase
- the TreeNodes tree from javax.swing
The user objects are not the base objects, but their name last component. This choice avoids to link the base object to the node, allowing a future lazy loading of resources from the database files. One resource may be associated to only one TreeNode of the account tree. Calls buildUpGraphicalDirectoryChildren().
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_resRoot
- DefaultMutableTreeNode in _tree, to which the ACS resources
are added
public static final javax.swing.JTree createOwnGroupGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _grpRoot)
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel_grpRoot
- in _tree, to which the ACS groups
are added. May contains nodes for the typed groups.
public static final javax.swing.JTree createOwnUserGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _accRoot)
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_accRoot
- is the node in _tree, to which the ACS userIDs
are added
public static final javax.swing.JTree createOwnAclGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _root)
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_root
- is the node in _tree, to which the ACS AclEntries are added
public static final javax.swing.JTree createExtEligPartyGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _epRoot)
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_epRoot
- in _tree, to which the ACS eligible
parties are added
public static final javax.swing.JTree createExtContResourceGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _root)
_acs
- to handle_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_root
- in _tree, to which the ACS resourcess
are added
public static final javax.swing.JTree createAcsRightGraphicalTree(ACSRun _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _accRoot)
_acs
- to process is an ACS or an ACSFactoryImpl_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_accRoot
- is the node in _tree, to which the ACS rights are added
public static final javax.swing.JTree createOwnResourceVirtualFolderGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _vfRoot)
Two trees are processed:
- the VirtualFolders tree or list from ARoad0.gBase
- the TreeNodes tree from javax.swing
The TreeNode user objects are the base objects. One virtual folder may be associated to only one TreeNode of the tree. Calls ACSTreeUtilities.buildUpVirtualFolderTree(). Called by createGraphicalTree().
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_vfRoot
- in _tree, to which the resource virtual folders
are added
public static final javax.swing.JTree createOwnEligiblePartyVirtualFolderGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _vfRoot)
Two trees are processed:
- the VirtualFolders tree or list from ARoad0.gBase
- the TreeNodes tree from javax.swing
The TreeNode user objects are the base objects. One virtual folder may be associated to only one TreeNode of the tree. Calls ACSTreeUtilities.buildUpVirtualFolderTree(). Called by createGraphicalTree().
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_vfRoot
- in _tree, to which the EligibleParty virtual folders
are added
public static final javax.swing.JTree createOwnPrivilegeGraphicalTree(ACS _acs, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _priRoot)
_acs
- to process_tree
- to which ACS objects are added, with a DefaultTreeModel
(not a TreeModel)_priRoot
- in _tree, to which the privileges
are added
public static final javax.swing.tree.DefaultTreeModel getExtEligibleGroupTree(ImmutableACS _acs, javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _root)
_acs
- to process_treeModel
- to which ACS objects are added_root
- in _treeModel, to which the ACS eligible
parties are added
public static final javax.swing.tree.DefaultTreeModel getExtEligibleActorTree(ImmutableACS _acs, javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _root)
_acs
- to process_treeModel
- to which ACS objects are added_root
- in _treeModel, to which the ACS eligible
parties are added
public static final javax.swing.tree.DefaultTreeModel getExtEligibleUserTree(ImmutableACS _acs, javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _root)
_acs
- to process_treeModel
- to which ACS objects are added_root
- in _treeModel, to which the ACS eligible
parties are added
public static final javax.swing.tree.DefaultTreeModel getExtContActorTree(ImmutableACS _acs, javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _actRoot)
_acs
- to process_treeModel
- to which ACS objects are added_actRoot
- DefaultMutableTreeNode in _tree, to which the actors
are added
public static final javax.swing.tree.DefaultTreeModel getExtContResourceTree(ImmutableACS _acs, javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _root)
_acs
- to process_treeModel
- to which ACS objects are added_root
- in _treeModel, to which the resources are added
public static final javax.swing.tree.DefaultTreeModel getExtContResourceSubTreeRoots(javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _root)
_treeModel
- to which ACS objects are added,
with a DefaultTreeModel (not a TreeModel)_root
- in _tree, to which the ACS resources
are added
public static final javax.swing.tree.DefaultTreeModel getExtEPSubTreeRoots(javax.swing.tree.DefaultTreeModel _treeModel, javax.swing.tree.DefaultMutableTreeNode _root)
_treeModel
- to which ACS objects are added_root
- in _tree, to which the ACS resources
are added
public static final javax.swing.tree.DefaultMutableTreeNode getACSTreeMainNode(javax.swing.tree.DefaultTreeModel _treeModel, ImmutableACS _acs, java.lang.String _title, boolean _forExplorer)
_treeModel
- the explorer tree model, or the ACS tree model if
it is for an ACS main frame_acs
- displayed in the ACS tree_title
- title or user string, of the required node; it has to be an ACSTree
static final variable as ACS.ACTORS for instance_forExplorer
- true if it is in the explorer, false if it is
in the ACS main frame
private static final boolean[] buildUpGraphicalDirectoryChildren(Directory _dir)
_dir
- already created as graphical tree in acsTreeModel__
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |