Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


oracle.security.jps.service.policystore.info
Class BasicAttributeEntry<T extends DataType>

java.lang.Object
  extended by oracle.security.jps.service.policystore.info.BasicAttributeEntry<T>

Type Parameters:
T -
All Implemented Interfaces:
AttributeEntry<T>, ExpressionComponent

public class BasicAttributeEntry<T extends DataType>
extends java.lang.Object
implements AttributeEntry<T>

A class to hold an in-memory attribute object. For example,

 AttributeEntry<OpssString> attr = new BasicAttributeEntry<OpssString>("nick_name", new OpssString("Big"));
 

Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.AttributeEntry
AttributeEntry.AttributeCategory

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent
ExpressionComponent.Type

 

Constructor Summary
BasicAttributeEntry(java.lang.String name, java.lang.Class<T> type)
          Constructor
BasicAttributeEntry(java.lang.String name, java.util.List<T> values)
          Constructor
BasicAttributeEntry(java.lang.String name, T value)
          Constructor

 

Method Summary
 AttributeEntry.AttributeCategory getAttributeCategory()
          Gets the attribute category
 java.lang.Class<? extends DataType> getAttributeType()
          Gets attribute data type
 ExpressionComponent.Type getComponentType()
          Returns type of the component.
 java.lang.String getDescription()
          Gets description of the attribute
 java.lang.String getDisplayName()
          Gets display name of the attribute
 java.lang.String getIssuer()
           
 java.util.List<T> getMultipleValue()
          Gets all values of the attribute if it has more than one
 java.lang.String getName()
          Gets name of the attribute
 T getValue()
          Gets the value of the attribute if it has a single value
 boolean isBuiltInAttribute()
          if it is a built-in attribute, return true, else, return false
 boolean isSingleValue()
          Checks if the attribute is single value
 boolean isValid()
           
 void setAttributeCategory(AttributeEntry.AttributeCategory category)
          Sets the category of attribute
 void setDescription(java.lang.String description)
          Sets description to the attribute
 void setDisplayName(java.lang.String displayName)
          Sets display name to the attribute
 void setIssuer(java.lang.String issuer)
           
 void setMultipleValue(java.util.List<T> values)
          Set the multiple values to this attribute
 void setValue(T value)
          Sets a single value to the attribute

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

BasicAttributeEntry

public BasicAttributeEntry(java.lang.String name,
                           T value)
Constructor
Parameters:
name - the name of attribtue
value - the value of attribtue

BasicAttributeEntry

public BasicAttributeEntry(java.lang.String name,
                           java.util.List<T> values)
Constructor
Parameters:
name - the name of attribute
values - the value of attribute

BasicAttributeEntry

public BasicAttributeEntry(java.lang.String name,
                           java.lang.Class<T> type)
Constructor
Parameters:
name -
type -

Method Detail

isBuiltInAttribute

public boolean isBuiltInAttribute()
Description copied from interface: AttributeEntry
if it is a built-in attribute, return true, else, return false
Specified by:
isBuiltInAttribute in interface AttributeEntry<T extends DataType>
Returns:
true if thi is a built in attribute. False otherwise

getName

public java.lang.String getName()
Gets name of the attribute
Specified by:
getName in interface AttributeEntry<T extends DataType>
Returns:
the name of the entry.

getAttributeCategory

public AttributeEntry.AttributeCategory getAttributeCategory()
Gets the attribute category
Specified by:
getAttributeCategory in interface AttributeEntry<T extends DataType>

setAttributeCategory

public void setAttributeCategory(AttributeEntry.AttributeCategory category)
Sets the category of attribute
Parameters:
category - the category of attribute

isSingleValue

public boolean isSingleValue()
Checks if the attribute is single value
Specified by:
isSingleValue in interface AttributeEntry<T extends DataType>
Returns:
true if this is a single valued attribute. False otherwise.

getValue

public T getValue()
                            throws PolicyStoreOperationNotAllowedException
Gets the value of the attribute if it has a single value
Specified by:
getValue in interface AttributeEntry<T extends DataType>
Returns:
the value of attribute. If there is no value, return null.
Throws:
PolicyStoreOperationNotAllowedException - if the attribute contains multiple values.

getMultipleValue

public java.util.List<T> getMultipleValue()
                                                    throws PolicyStoreOperationNotAllowedException
Gets all values of the attribute if it has more than one
Specified by:
getMultipleValue in interface AttributeEntry<T extends DataType>
Returns:
a List of values. If there are no values, an empty list will be returned.
Throws:
PolicyStoreOperationNotAllowedException - if the attribute contains single value.

setValue

public void setValue(T value)
              throws PolicyStoreOperationNotAllowedException
Sets a single value to the attribute
Specified by:
setValue in interface AttributeEntry<T extends DataType>
Parameters:
value - the attribute value
Throws:
PolicyStoreOperationNotAllowedException - if the attribute contains multiple values.

setMultipleValue

public void setMultipleValue(java.util.List<T> values)
                      throws PolicyStoreOperationNotAllowedException
Set the multiple values to this attribute
Specified by:
setMultipleValue in interface AttributeEntry<T extends DataType>
Parameters:
values - A list of attribute value
Throws:
PolicyStoreOperationNotAllowedException - if the attribute contains single value.

getAttributeType

public java.lang.Class<? extends DataType> getAttributeType()
Gets attribute data type
Specified by:
getAttributeType in interface AttributeEntry<T extends DataType>
Returns:
get data type the attribute.

getDescription

public java.lang.String getDescription()
Gets description of the attribute
Specified by:
getDescription in interface AttributeEntry<T extends DataType>
Returns:
the description of the entity.

getDisplayName

public java.lang.String getDisplayName()
Gets display name of the attribute
Specified by:
getDisplayName in interface AttributeEntry<T extends DataType>
Returns:
the display name.

setDescription

public void setDescription(java.lang.String description)
Sets description to the attribute
Specified by:
setDescription in interface AttributeEntry<T extends DataType>

setDisplayName

public void setDisplayName(java.lang.String displayName)
Sets display name to the attribute
Specified by:
setDisplayName in interface AttributeEntry<T extends DataType>

getComponentType

public ExpressionComponent.Type getComponentType()
Description copied from interface: ExpressionComponent
Returns type of the component.
Specified by:
getComponentType in interface ExpressionComponent
Returns:

isValid

public boolean isValid()

getIssuer

public java.lang.String getIssuer()

setIssuer

public void setIssuer(java.lang.String issuer)
               throws PolicyStoreException
Throws:
PolicyStoreException

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Copyright © 2011,2012, Oracle and/or its affiliates. All rights reserved.