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

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.IdentityDirectoryNode
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable, org.apache.myfaces.custom.tree2.TreeNode

public class IdentityDirectoryNode
extends BaseTreeNode

The identity directory node class represents an identity directory node in EUI tree. The node will wrap RBAC Identity Directory Node used by the entitlements front end.

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
IdentityDirectoryNode(java.lang.String name)
          Constructor to create a new IdentityDirectoryNode
IdentityDirectoryNode(java.lang.String name, boolean isleaf)
          Constructor to create a new IdentityDirectoryNode
 
Method Summary
 java.lang.String cancelModifyAttribute()
          Cancel to create or modify attribute.
 java.lang.String cancelNewGroup()
          Cancel to create or modify group.
 java.lang.String cancelNewUser()
          Cancel to create or modify user.
 java.lang.String cancelRemoveCurrentAttribute()
          Cancel to remove the currently selected attribute
 java.lang.String cancelRemoveGroup()
          Cancel to remove group.
 java.lang.String cancelRemoveUser()
          Cancel to remove user.
 java.lang.String decreaseGroupIndex()
          For paging purposes, decrement on index of groups
 java.lang.String decreaseUserIndex()
          For paging purposes, decrement on index of users
 java.lang.String finishedModifyAttribute()
          Finished to create or modify an attribute.
 java.lang.String finishNewGroup()
          Finished to create or modify group.
 java.lang.String finishNewUser()
          Finished to create or modify user.
 java.lang.String finishRemoveCurrentAttribute()
          Finished to remove the currently selected attribute
 java.lang.String finishRemoveGroup()
          Finished to remove group.
 java.lang.String finishRemoveUser()
          Finished to remove user.
 java.util.List getAvailableGroup()
          Get a list of groups associated with this identity directory
 java.util.List getAvailableUser()
          Get a list of users associated with this identity directory
 AttributeElement getCurrentAttribute()
          Get Current attribute for this group
 GroupItem getCurrentGroup()
          Get current selected group
 UserItem getCurrentUser()
          Get current selected user
 java.util.List getDirectoryAttributes()
          Return a list Attributes associated to this identity directory
 java.lang.String getGroupFilter()
          Filter set to view groups
 int getGroupFromIdx()
          Index of the groups in the From box
 int getGroupToIdx()
          Index of the groups in the To box
 int getGroupTotal()
          Get a total number of groups
 GroupItem getNewGroupItem()
          Get the new GroupItem for create new group
 UserItem getNewUserItem()
          Get the new UserItem for create new user
 java.lang.String getNodeType()
          Return identity directory node type constant
 java.lang.String getUserFilter()
          Filter set to view users
 int getUserFromIdx()
          Index of the users in the From box
 int getUserToIdx()
          Index of the users in the To box
 int getUserTotal()
          Get a total number of users
 java.lang.String increaseGroupIndex()
          For paging purposes, increment on index of groups
 java.lang.String increaseUserIndex()
          For paging purposes, increment on index of users
 boolean isNewAttribute()
          Status of newAttribute
 boolean isNewGroup()
          Status of newGroup
 boolean isNewUser()
          Status of isNewUser
 java.lang.String newAttributeAction()
          Create a new identity attribute.
 java.lang.String newGroupAction()
          Create a new group.
 java.lang.String newUserAction()
          Create a new user.
 void setAttrIdx(int attrIdx)
          set row index for this attribute
 void setCurrentAttribute(AttributeElement currentAttribute)
          Set current attribute to set for this group
 void setCurrentGroup(GroupItem selectedGroup)
          Set current group for this identity directory
 void setCurrentUser(UserItem selectedUser)
          Set current user for this identity directory
 void setGroupFilter(java.lang.String filter)
          Reset currently set filter to display groups
 void setNewAttribute(boolean newAttribute)
          Set status of newAttribute
 void setNewGroupItem(GroupItem group)
          Reset the new GroupItem for create new group
 void setNewUser(boolean isNewUser)
          Status of isNewUser
 void setNewUserItem(UserItem newUserItem)
          Reset the new UserItem for create new user
 void setUserFilter(java.lang.String filter)
          Reset currently set filter to display users
 
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

IdentityDirectoryNode

public IdentityDirectoryNode(java.lang.String name)
Constructor to create a new IdentityDirectoryNode

Parameters:
name - Name of the identity to create

IdentityDirectoryNode

public IdentityDirectoryNode(java.lang.String name,
                             boolean isleaf)
Constructor to create a new IdentityDirectoryNode

Parameters:
name - Name of the identity to create
isleaf - true if leaf, false otherwises
Method Detail

cancelModifyAttribute

public java.lang.String cancelModifyAttribute()
Cancel to create or modify attribute.

Returns:
null mostly, exception otherwise

cancelNewGroup

public java.lang.String cancelNewGroup()
Cancel to create or modify group.

Returns:
null mostly, exception otherwise

cancelNewUser

public java.lang.String cancelNewUser()
Cancel to create or modify user.

Returns:
null mostly, exception otherwise

cancelRemoveCurrentAttribute

public java.lang.String cancelRemoveCurrentAttribute()
Cancel to remove the currently selected attribute

Returns:
null mostly, exception otherwise

cancelRemoveGroup

public java.lang.String cancelRemoveGroup()
Cancel to remove group.

Returns:
null mostly, exception otherwise

cancelRemoveUser

public java.lang.String cancelRemoveUser()
Cancel to remove user.

Returns:
null mostly, exception otherwise

decreaseGroupIndex

public java.lang.String decreaseGroupIndex()
For paging purposes, decrement on index of groups

Returns:
mostly null

decreaseUserIndex

public java.lang.String decreaseUserIndex()
For paging purposes, decrement on index of users

Returns:
mostly null

finishedModifyAttribute

public java.lang.String finishedModifyAttribute()
Finished to create or modify an attribute.

Returns:
null mostly, exception otherwise

finishNewGroup

public java.lang.String finishNewGroup()
Finished to create or modify group.

Returns:
null mostly, exception otherwise

finishNewUser

public java.lang.String finishNewUser()
Finished to create or modify user.

Returns:
null mostly, exception otherwise

finishRemoveCurrentAttribute

public java.lang.String finishRemoveCurrentAttribute()
Finished to remove the currently selected attribute

Returns:
null mostly, exception otherwise

finishRemoveGroup

public java.lang.String finishRemoveGroup()
Finished to remove group.

Returns:
null mostly, exception otherwise

finishRemoveUser

public java.lang.String finishRemoveUser()
Finished to remove user.

Returns:
null mostly, exception otherwise

getAvailableGroup

public java.util.List getAvailableGroup()
Get a list of groups associated with this identity directory

Returns:
list of groups for this directory

getAvailableUser

public java.util.List getAvailableUser()
Get a list of users associated with this identity directory

Returns:
list of users for this directory

getCurrentAttribute

public AttributeElement getCurrentAttribute()
Get Current attribute for this group

Returns:
AttributeElement for current attribute

getCurrentGroup

public GroupItem getCurrentGroup()
Get current selected group

Returns:
GroupItem for current group

getCurrentUser

public UserItem getCurrentUser()
Get current selected user

Returns:
UserItem for current user

getDirectoryAttributes

public java.util.List getDirectoryAttributes()
Return a list Attributes associated to this identity directory

Returns:
set of attributes for this identity directory

getGroupFilter

public java.lang.String getGroupFilter()
Filter set to view groups

Returns:
Returns the groupFilter currently set.

getGroupFromIdx

public int getGroupFromIdx()
Index of the groups in the From box

Returns:
index

getGroupToIdx

public int getGroupToIdx()
Index of the groups in the To box

Returns:
index

getGroupTotal

public int getGroupTotal()
Get a total number of groups

Returns:
total groups

getNewGroupItem

public GroupItem getNewGroupItem()
Get the new GroupItem for create new group

Returns:
GroupItem for the new group

getNewUserItem

public UserItem getNewUserItem()
Get the new UserItem for create new user

Returns:
UserItem for the new user

getNodeType

public java.lang.String getNodeType()
Return identity directory node type constant

Specified by:
getNodeType in class BaseTreeNode
Returns:
returns BaseTreeNode.IDENTITY_DIRECTORY_NODE for identity directory node

getUserFilter

public java.lang.String getUserFilter()
Filter set to view users

Returns:
Returns the userFilter currently set.

getUserFromIdx

public int getUserFromIdx()
Index of the users in the From box

Returns:
index

getUserToIdx

public int getUserToIdx()
Index of the users in the To box

Returns:
index

getUserTotal

public int getUserTotal()
Get a total number of users

Returns:
total users

increaseGroupIndex

public java.lang.String increaseGroupIndex()
For paging purposes, increment on index of groups

Returns:
mostly null

increaseUserIndex

public java.lang.String increaseUserIndex()
For paging purposes, increment on index of users

Returns:
mostly null

isNewAttribute

public boolean isNewAttribute()
Status of newAttribute

Returns:
true if set, false otherwise

isNewGroup

public boolean isNewGroup()
Status of newGroup

Returns:
true if set, false otherwise

isNewUser

public boolean isNewUser()
Status of isNewUser

Returns:
true if set, false otherwise

newAttributeAction

public java.lang.String newAttributeAction()
Create a new identity attribute.

Returns:
"Success" Once created the success return value causes the popup to be forwarded to the modifydirattribute.jsp page which will be pointing to the newly created attribute.

newGroupAction

public java.lang.String newGroupAction()
Create a new group.

Returns:
"Success" Once created the success return value causes the popup to be forwarded to the modifyIdentityGroup.jsp page which will be pointing to the newly created group.

newUserAction

public java.lang.String newUserAction()
Create a new user.

Returns:
"Success" Once created the success return value causes the popup to be forwarded to the modifyIdentityUser.jsp page which will be pointing to the newly created group.

setAttrIdx

public void setAttrIdx(int attrIdx)
set row index for this attribute

Parameters:
attrIdx - attribute row index to set for this node

setCurrentAttribute

public void setCurrentAttribute(AttributeElement currentAttribute)
Set current attribute to set for this group

Parameters:
currentAttribute - AttributeElement to set

setCurrentGroup

public void setCurrentGroup(GroupItem selectedGroup)
Set current group for this identity directory

Parameters:
selectedGroup - GroupItem to set

setCurrentUser

public void setCurrentUser(UserItem selectedUser)
Set current user for this identity directory


setGroupFilter

public void setGroupFilter(java.lang.String filter)
Reset currently set filter to display groups

Parameters:
filter - new filter value to set

setNewAttribute

public void setNewAttribute(boolean newAttribute)
Set status of newAttribute

Parameters:
newAttribute - true for new attribute

setNewGroupItem

public void setNewGroupItem(GroupItem group)
Reset the new GroupItem for create new group


setNewUser

public void setNewUser(boolean isNewUser)
Status of isNewUser

Parameters:
isNewUser - true for new user

setNewUserItem

public void setNewUserItem(UserItem newUserItem)
Reset the new UserItem for create new user


setUserFilter

public void setUserFilter(java.lang.String filter)
Reset currently set filter to display users

Parameters:
filter - new filter value to set


Copyright © 2007 BEA Systems Inc. All Rights Reserved.