com.bea.security.entitlements.admin.rbac
Class RolePermissionSetNode

java.lang.Object
  extended byorg.apache.myfaces.custom.tree2.TreeNodeBase
      extended bycom.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
          extended bycom.bea.security.entitlements.admin.rbac.BaseTreeNode
              extended bycom.bea.security.entitlements.admin.rbac.AttributableEntitlementNode
                  extended bycom.bea.security.entitlements.admin.rbac.RolePermissionSetNode
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable, org.apache.myfaces.custom.tree2.TreeNode
Direct Known Subclasses:
PermissionSetNode, RoleNode

public abstract class RolePermissionSetNode
extends AttributableEntitlementNode

Abstract class to common to both RoleNode and PermissionSet Nodes. Defines method signatuures and also mandates methods signatures common to both nodes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bea.security.entitlements.admin.rbac.BaseTreeNode
IDENTITY_DIRECTORY_NODE, IDENTITY_NODE, NAVIGATION_NODE, PERMISSION_NODE, PERMISSION_SET_NODE, REPORTING_NODE, RESOURCE_NODE, ROLE_NODE, SOD_NODE
 
Constructor Summary
RolePermissionSetNode()
          Default constructor
RolePermissionSetNode(java.lang.String type, java.lang.String description, boolean leaf)
          Constructor for a given type
RolePermissionSetNode(java.lang.String type, java.lang.String description, java.lang.String identifier, boolean leaf)
          Constructor for a given type and identifier
RolePermissionSetNode(TreeNodeWithSelection parentNode, java.lang.String type, java.lang.String description, boolean leaf)
          Constructor for a given type and parent
 
Method Summary
abstract  java.lang.String addPermissions()
           
 java.lang.String decreasePermissionIndex()
          For paging purposes, decrement on remove existing permission
abstract  java.util.List getAllRbacPermissions()
          Get All RBAC Permission objects associated to this node
abstract  java.util.List getCurrentAvailablePermissions()
          Get all available permissions for this node
abstract  java.util.List getCurrentIndividualPermissions()
          Get just the individual permissions for this node
abstract  java.util.List getDirectAttributes()
          Get Direct Atttributes for this node
abstract  java.util.List getDirectRbacPermissions()
          Accessor method to get direct permissions for this node
abstract  java.util.List getIndividualPermissions()
          Get just the individual permissions for this node
abstract  java.util.List getInheritedPermissions()
          Get all inherited pemissions for this node
 java.lang.String increasePermissionIndex()
          For paging purposes, increment add new permission
abstract  java.lang.String removePermissions()
          Remove permissions method.
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.AttributableEntitlementNode
cancelModifyAttribute, getCurrentAttribute, isNewAttribute, newAttributeAction, removeCurrentAttributeFromList, setAttributes, setAttrIdx, setCurrentAttribute, setNewAttribute
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.BaseTreeNode
getNodeType
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.TreeNodeWithSelection
compareTo, getNodeByName, getParent, isSelected, removeNode, setChildrenSelectedRecursively, setNeedUpdateChildren, setParent, setSelected
 
Methods inherited from class org.apache.myfaces.custom.tree2.TreeNodeBase
getChildCount, getChildren, getDescription, getIdentifier, getType, isLeaf, setDescription, setIdentifier, setLeaf, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolePermissionSetNode

public RolePermissionSetNode()
Default constructor


RolePermissionSetNode

public RolePermissionSetNode(java.lang.String type,
                             java.lang.String description,
                             boolean leaf)
Constructor for a given type

Parameters:
type - type of the node for example "Role" or "PermossionSet" etc
description - description to use
leaf - true if leaf, false otherwise

RolePermissionSetNode

public RolePermissionSetNode(java.lang.String type,
                             java.lang.String description,
                             java.lang.String identifier,
                             boolean leaf)
Constructor for a given type and identifier

Parameters:
type - type of the node for example "Role" or "PermossionSet" etc
description - description to use
identifier - identifier for node
leaf - true if leaf, false otherwise

RolePermissionSetNode

public RolePermissionSetNode(TreeNodeWithSelection parentNode,
                             java.lang.String type,
                             java.lang.String description,
                             boolean leaf)
Constructor for a given type and parent

Parameters:
parentNode - parent node to set
type - type of the node for example "Role" or "PermossionSet" etc
description - description to use
leaf - true if leaf, false otherwise
Method Detail

addPermissions

public abstract java.lang.String addPermissions()

decreasePermissionIndex

public java.lang.String decreasePermissionIndex()
For paging purposes, decrement on remove existing permission

Returns:
mostly null

getAllRbacPermissions

public abstract java.util.List getAllRbacPermissions()
Get All RBAC Permission objects associated to this node

Returns:
ArrayList of RBAC_Permission objects

getCurrentAvailablePermissions

public abstract java.util.List getCurrentAvailablePermissions()
Get all available permissions for this node

Returns:
Array list of available RBAC_Permission objects

getCurrentIndividualPermissions

public abstract java.util.List getCurrentIndividualPermissions()
Get just the individual permissions for this node

Returns:
array list of SelectItem objects

getDirectAttributes

public abstract java.util.List getDirectAttributes()
Get Direct Atttributes for this node

Returns:
List of AttributeElements for this node

getDirectRbacPermissions

public abstract java.util.List getDirectRbacPermissions()
Accessor method to get direct permissions for this node

Returns:
array list of RBAC_Permission objects

getIndividualPermissions

public abstract java.util.List getIndividualPermissions()
Get just the individual permissions for this node

Returns:
array list of RBAC_Permission objects

getInheritedPermissions

public abstract java.util.List getInheritedPermissions()
Get all inherited pemissions for this node

Returns:
array list of RBAC_Permission objects

increasePermissionIndex

public java.lang.String increasePermissionIndex()
For paging purposes, increment add new permission

Returns:
mostly null

removePermissions

public abstract java.lang.String removePermissions()
Remove permissions method. Called by the add permissions popup. For each selected permission remove it to the current role.

Returns:
null mostly


Copyright © 2007 BEA Systems Inc. All Rights Reserved.