Package com.sun.identity.policy
Class ActionSchema
- java.lang.Object
-
- com.sun.identity.sm.AttributeSchemaImpl
-
- com.sun.identity.policy.ActionSchema
-
public class ActionSchema extends AttributeSchemaImpl
The classActionSchemaprovides interfaces to obtain meta information about service action values. For example, information about the syntax of the action values, defaults values, choice values, etc.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringACTION_SCHEMAprotected static StringACTION_VALUEprotected static StringI18N_KEYprotected static StringRESOURCE_NAMEprotected static StringVALUE
-
Constructor Summary
Constructors Modifier Constructor Description protectedActionSchema(Node node)Constructor with the action schema node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionValueI18NKey(String actionValue)Returns the I18N key for the action value.SetgetActionValues()Returns aSetof possible action values if the action schema is of choice type ieSINGLE_CHOICEorMULTIPLE_CHOICEin the service schema definition.StringgetResourceNameI18NKey(String actionValue)Returns the I18N key for displaying resource names associated with the action value.SetgetResourceNames(String actionValue)Returns the default resource names associated with the action value.booleanrequiresResourceName()Returnstrueif the action requires a resource name.-
Methods inherited from class com.sun.identity.sm.AttributeSchemaImpl
getAny, getAttributeSchemaNode, getChoiceValueI18NKey, getChoiceValues, getChoiceValues, getChoiceValuesMap, getChoiceValuesMap, getChoiceValuesSet, getChoiceValuesSet, getCosQualifier, getDefaultValues, getDefaultValues, getEndRange, getExampleValues, getFalseValue, getFalseValueI18NKey, getI18NKey, getListOrder, getMaxValue, getMinValue, getName, getOrder, getPropertiesViewBeanURL, getResourceName, getStartRange, getSyntax, getTrueValue, getTrueValueI18NKey, getType, getUIType, getValidator, getValues, isOptional, isResourceNameAllowed, isSearchable, isServiceIdentifier, isStatusAttribute, toString
-
-
-
-
Field Detail
-
ACTION_SCHEMA
protected static final String ACTION_SCHEMA
- See Also:
- Constant Field Values
-
ACTION_VALUE
protected static final String ACTION_VALUE
- See Also:
- Constant Field Values
-
VALUE
protected static final String VALUE
- See Also:
- Constant Field Values
-
I18N_KEY
protected static final String I18N_KEY
- See Also:
- Constant Field Values
-
RESOURCE_NAME
protected static final String RESOURCE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActionSchema
protected ActionSchema(Node node)
Constructor with the action schema node- Parameters:
node-Noderepresenting w3c DOM representation of the object.
-
-
Method Detail
-
getActionValues
public Set getActionValues()
Returns aSetof possible action values if the action schema is of choice type ieSINGLE_CHOICEorMULTIPLE_CHOICEin the service schema definition. The choice values are sorted alphabetically in the ascending order. If the action values are not of choice type, this method return an emptySetand notnull.- Returns:
- choice values for action values
-
getActionValueI18NKey
public String getActionValueI18NKey(String actionValue)
Returns the I18N key for the action value. This method can be used only when the action schema is of typeSINGLE_CHOICEorMULTIPLE_CHOICE. Also each action value must have defined itsi18nKeyin the XML.- Returns:
- i18n key for the action value if present in the
service XML;
nullotherwise
-
requiresResourceName
public boolean requiresResourceName()
Returnstrueif the action requires a resource name. An action can have a resource name only if its type is eitherSINGLE_CHOICEorMULTIPLE_CHOICE, or if itssyntaxis boolean.- Returns:
trueif the action name requires a resource name;falseotherwise
-
getResourceNames
public Set getResourceNames(String actionValue)
Returns the default resource names associated with the action value. If it is not configured, it returns an emptySet.- Returns:
- default resource names associated with the action value
-
-