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

java.lang.Object
  extended bycom.bea.security.entitlements.admin.rbac.DataTableElement
      extended bycom.bea.security.entitlements.admin.rbac.BaseTableElement
          extended bycom.bea.security.entitlements.admin.rbac.SODElement
All Implemented Interfaces:
java.io.Serializable

public class SODElement
extends BaseTableElement

The SOD Element is purly a UI construct to allow us to aggregate all SOD rules to a single view within the UI. It will contain a reference to a RoleNode object so that when we want to modify the denied roles, it's easy to do.

See Also:
Serialized Form

Constructor Summary
SODElement()
          Default constructor
SODElement(RoleNode node)
          Constructor with role node to use
 
Method Summary
 boolean equals(java.lang.Object obj)
          This is added to avoid more than one SODElement that have the same role.
 java.util.List getDeniedRoles()
          List of all denied Roles
 java.lang.String getDeniedRolesString()
          Get List of all defined roles
 java.lang.String getRoleName()
          Role name for the RoleNode
 RoleNode getRoleNode()
          Get Role node
 int hashCode()
          Hashcode for this node
 void setRoleNode(RoleNode roleNode)
          Set a new role node
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.BaseTableElement
getName, setName
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.DataTableElement
getcolor, getColorStyle, isSelected, setSelected
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SODElement

public SODElement()
Default constructor


SODElement

public SODElement(RoleNode node)
Constructor with role node to use

Parameters:
node - RoleNode to use
Method Detail

equals

public boolean equals(java.lang.Object obj)
This is added to avoid more than one SODElement that have the same role. When user new SOD, but select a role node which is already in sodlist, we'll not create a new SODElement, but modify the old sod instead. Refer to SessionState.updateSodRule().

Returns:
true if set, false otherwise

getDeniedRoles

public java.util.List getDeniedRoles()
List of all denied Roles

Returns:
List of denied roles

getDeniedRolesString

public java.lang.String getDeniedRolesString()
Get List of all defined roles

Returns:
comma seperated list

getRoleName

public java.lang.String getRoleName()
Role name for the RoleNode

Returns:

getRoleNode

public RoleNode getRoleNode()
Get Role node

Returns:
reuturn RoleNode set, null otherwise

hashCode

public int hashCode()
Hashcode for this node

Returns:
hashcode for the rolenode

setRoleNode

public void setRoleNode(RoleNode roleNode)
Set a new role node

Parameters:
roleNode - node to set


Copyright © 2007 BEA Systems Inc. All Rights Reserved.