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

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.AttributableEntitlementElement
              extended bycom.bea.security.entitlements.admin.rbac.PermissionElement
All Implemented Interfaces:
java.io.Serializable

public class PermissionElement
extends AttributableEntitlementElement

The attribute element class represents an attribute. It's likely that this class could be replaced by the rbac api version directly, but it will need to be wrapped with the DataTableElement object to allow for row selection

See Also:
Serialized Form

Constructor Summary
PermissionElement()
          Default constructor
PermissionElement(com.bea.ales.rbac.RBAC_Permission permission)
          Construtor to create a new Permission Element object
PermissionElement(java.lang.String name)
          Constructor to create a new Permission element
PermissionElement(java.lang.String permName, com.bea.ales.rbac.RBAC_Permission permission)
          Construtor to create a new Permission Element object
 
Method Summary
 java.util.List getAttributes()
          Get direct Attributes associated to this Permission element.
 java.lang.String getOperation()
          Get operation element set to permission element
 com.bea.ales.rbac.RBAC_Permission getPermission()
          Get RBAC_Permission set to this current Permission element
 java.lang.String getResource()
          Get resource associated to this permission element
 void setOperation(java.lang.String action)
          SEt a new operation to this element
 void setPermission(com.bea.ales.rbac.RBAC_Permission permission)
          Set a new RBAC permission object to this permission element
 void setResource(java.lang.String resource)
          Set a new resource to this permission element
 
Methods inherited from class com.bea.security.entitlements.admin.rbac.AttributableEntitlementElement
addAttribute, setAttributes
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionElement

public PermissionElement()
Default constructor


PermissionElement

public PermissionElement(com.bea.ales.rbac.RBAC_Permission permission)
Construtor to create a new Permission Element object

Parameters:
permission - - permission object to set, name would be permission.getName()

PermissionElement

public PermissionElement(java.lang.String name)
Constructor to create a new Permission element

Parameters:
name - Name of the Permission element

PermissionElement

public PermissionElement(java.lang.String permName,
                         com.bea.ales.rbac.RBAC_Permission permission)
Construtor to create a new Permission Element object

Parameters:
permName - - Permission Name to create
permission - - permission object to use
Method Detail

getAttributes

public java.util.List getAttributes()
Get direct Attributes associated to this Permission element.

Overrides:
getAttributes in class AttributableEntitlementElement
Returns:
Array List of Attribute Elements

getOperation

public java.lang.String getOperation()
Get operation element set to permission element

Returns:
operation element

getPermission

public com.bea.ales.rbac.RBAC_Permission getPermission()
Get RBAC_Permission set to this current Permission element

Returns:
RBAC_Permission object assiciate to this Permission Element

getResource

public java.lang.String getResource()
Get resource associated to this permission element

Returns:
resource for this permission element

setOperation

public void setOperation(java.lang.String action)
SEt a new operation to this element

Parameters:
action -

setPermission

public void setPermission(com.bea.ales.rbac.RBAC_Permission permission)
Set a new RBAC permission object to this permission element

Parameters:
permission - new RBAC_Permission to set

setResource

public void setResource(java.lang.String resource)
Set a new resource to this permission element

Parameters:
resource - new resource to set


Copyright © 2007 BEA Systems Inc. All Rights Reserved.