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

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.AttributeElement
All Implemented Interfaces:
java.io.Serializable

public class AttributeElement
extends BaseTableElement

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
AttributeElement(java.lang.String name, java.lang.String value)
          Constructor to create a new Attribute value pair
AttributeElement(java.lang.String name, java.lang.String value, com.bea.ales.rbac.AttributeElement rbacElement)
          Constructor to create a new Attribute Element
AttributeElement(java.lang.String name, java.lang.String type, boolean isList, java.lang.String value)
          Constructor to create a new Attribute Element
 
Method Summary
 java.lang.String addValueToList()
          Add new value to attribute list value
 java.util.List getAvailableTypes()
          Get all available attribute types for new attribute
 java.util.List getCurrentListValue()
          Get attribute list value
 java.lang.String getNewValue()
          Get new attribute value for attribute modification
 com.bea.ales.rbac.AttributeElement getRbacElement()
          Return the wrapped RBAC Element if available, null otherwise
 java.util.List getSelectedListValue()
          Get selected list value for attribute value modification
 java.lang.String getType()
          Get current attribute type
 java.lang.String getValue()
          Gets value for the attribute to set
 boolean isList()
          Get status of isList
 boolean isValueNotSet()
          determine if attribute value is set
 java.lang.String removeSelectedFromList()
          Action to remove selected values from attribute list value
 void setList(boolean isList)
          Reset the status of isList
 void setNewValue(java.lang.String newValue)
          Set new attribute value for attribute value modification
 void setRbacElement(com.bea.ales.rbac.AttributeElement rbacElement)
          Set a new RBAC Element attribute - not admin Attribute Element
 void setSelectedListValue(java.util.List selectedItems)
          Set selected list value for attribute value modification
 void setType(java.lang.String type)
          Set current attribute type
 void setValue(java.lang.String value)
          Set Value for attribute
 
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

AttributeElement

public AttributeElement(java.lang.String name,
                        java.lang.String value)
Constructor to create a new Attribute value pair

Parameters:
name - Name to set
value - Value to set

AttributeElement

public AttributeElement(java.lang.String name,
                        java.lang.String value,
                        com.bea.ales.rbac.AttributeElement rbacElement)
Constructor to create a new Attribute Element

Parameters:
name - Name to set
value - Value to set
rbacElement - Value of the RBAC Attribute Element to wrap

AttributeElement

public AttributeElement(java.lang.String name,
                        java.lang.String type,
                        boolean isList,
                        java.lang.String value)
Constructor to create a new Attribute Element

Parameters:
name - Name to set
type - Type to set
value - Value to set
Method Detail

addValueToList

public java.lang.String addValueToList()
Add new value to attribute list value

Returns:
null mostly

getAvailableTypes

public java.util.List getAvailableTypes()
Get all available attribute types for new attribute

Returns:

getCurrentListValue

public java.util.List getCurrentListValue()
Get attribute list value

Returns:
list value

getNewValue

public java.lang.String getNewValue()
Get new attribute value for attribute modification

Returns:
new attribute value

getRbacElement

public com.bea.ales.rbac.AttributeElement getRbacElement()
Return the wrapped RBAC Element if available, null otherwise

Returns:
Returns the rbacElement.

getSelectedListValue

public java.util.List getSelectedListValue()
Get selected list value for attribute value modification

Returns:
list of selected attribute list value

getType

public java.lang.String getType()
Get current attribute type

Returns:
attribute type

getValue

public java.lang.String getValue()
Gets value for the attribute to set

Returns:
String value of the attribute

isList

public boolean isList()
Get status of isList

Returns:
true if the attribute value is list type

isValueNotSet

public boolean isValueNotSet()
determine if attribute value is set

Returns:
true if not set

removeSelectedFromList

public java.lang.String removeSelectedFromList()
Action to remove selected values from attribute list value

Returns:
null mostly

setList

public void setList(boolean isList)
Reset the status of isList

Parameters:
isList - True if set the attribute value to list type

setNewValue

public void setNewValue(java.lang.String newValue)
Set new attribute value for attribute value modification

Parameters:
newValue - new attribute value

setRbacElement

public void setRbacElement(com.bea.ales.rbac.AttributeElement rbacElement)
Set a new RBAC Element attribute - not admin Attribute Element

Parameters:
rbacElement - The rbacElement to set.

setSelectedListValue

public void setSelectedListValue(java.util.List selectedItems)
Set selected list value for attribute value modification

Parameters:
selectedItems - list of selected attribute list value to set

setType

public void setType(java.lang.String type)
Set current attribute type

Parameters:
type - attribute type

setValue

public void setValue(java.lang.String value)
Set Value for attribute

Parameters:
value - new value to set


Copyright © 2007 BEA Systems Inc. All Rights Reserved.