|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T -public interface AttributeEntry<T extends DataType>
The class stands for attribute defined in the system. Users can create Attribute in three ways. 1. Create an in-memory attribute object and then assign the object to a principal/resource/role For example:
AttributeEntry<OpssString> attr = new BasicAttributeEntry<OpssString>("name", new OpssString("John"));
resouce.addAttribute(attr);
2. Create an attribute by ExtensionManager.createAttribute() For example:
AttributeEntry<OpssString> attr = ExtensionManager.createAttribute("name", "display name", "description", OpssString.class, AttributeCategory.DYNAMIC, true);
3. Set attribute value
AttributeEntry<OpssString> attr = ExtensionManager.createAttribute("name", "display name", "description", OpssString.class, AttributeCategory.DYNAMIC, true);
attr.setValue(new OpssString("John"));
| Nested Class Summary | |
|---|---|
static class |
AttributeEntry.AttributeCategoryattribute category |
| Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent |
|---|
ExpressionComponent.Type |
| Method Summary | |
|---|---|
AttributeEntry.AttributeCategory |
getAttributeCategory()Return category of the attribute |
java.lang.Class<? extends DataType> |
getAttributeType()Return data type of the attribute |
java.lang.String |
getDescription()Get the description of the entity. |
java.lang.String |
getDisplayName()Returns the Display name. |
java.util.List<T> |
getMultipleValue()Get the value of this attribute, if the attribute contains multiple values. |
java.lang.String |
getName()Name of the entry. |
T |
getValue()Get the value of this attribute, if the attribute contains single value. |
boolean |
isBuiltInAttribute()if it is a built-in attribute, return true, else, return false |
boolean |
isSingleValue()Check the attribute supports single value or multiple value |
void |
setDescription(java.lang.String description)Set the description of this entry. |
void |
setDisplayName(java.lang.String displayName)Set the display name of this entry. |
void |
setMultipleValue(java.util.List<T> values)Set the multiple values for this attribute |
void |
setValue(T value)Set the value for this attribute |
| Methods inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent |
|---|
getComponentType |
| Method Detail |
|---|
boolean isSingleValue()
T getValue()
throws PolicyStoreOperationNotAllowedException
PolicyStoreOperationNotAllowedException - if the attribute contains multiple values.
java.util.List<T> getMultipleValue()
throws PolicyStoreOperationNotAllowedException
PolicyStoreOperationNotAllowedException - if the attribute contains single value.
void setValue(T value)
throws PolicyStoreOperationNotAllowedException
value - the attribute valuePolicyStoreOperationNotAllowedException - if the attribute contains multiple values.
void setMultipleValue(java.util.List<T> values)
throws PolicyStoreOperationNotAllowedException
values - A list of attribute valuePolicyStoreOperationNotAllowedException - if the attribute contains single value.java.lang.Class<? extends DataType> getAttributeType()
AttributeEntry.AttributeCategory getAttributeCategory()
boolean isBuiltInAttribute()
java.lang.String getDescription()
java.lang.String getDisplayName()
void setDescription(java.lang.String description)
description -void setDisplayName(java.lang.String displayName)
displayName -java.lang.String getName()
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||