|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.sm.AttributeSchema
The class AttributeSchema
provides methods to
access the schema of a configuration parameter. Also, it
provides methods to set default and choice values.
Inner Class Summary | |
static class |
AttributeSchema.Syntax
The class Syntax defines the syntax of the
schema attributes and provides static constants for
these types. |
static class |
AttributeSchema.Type
The class Type defines the types of
schema attributes and provides static constants for
these types. |
static class |
AttributeSchema.UIType
The class UIType defines the UI types of
schema attributes and provides static constants for
these types. |
Method Summary | |
void |
addChoiceValue(java.lang.String value,
java.lang.String i18nKey)
Adds a choice value and its i18n key to the existing set of choice values. |
void |
addDefaultValue(java.lang.String value)
Adds a default value to the existing set of default values. |
java.lang.String |
getAny()
Method to get service specific attributes. |
java.lang.String |
getChoiceValueI18NKey(java.lang.String cValue)
Returns the I18N key for the given choice value. |
java.lang.String[] |
getChoiceValues()
Returns the possible choice values for the attribute if the attribute type is either SINGLE_CHOICE
or MULTIPLE_CHOICE . |
java.lang.String |
getCosQualifier()
Returns the value of the cosQualifier for this attribute i.e. |
java.util.Set |
getDefaultValues()
Returns the default values of the attribute. |
java.lang.String |
getEndRange()
Returns the end range if the attribute syntax is either NUMBER_RANGE or DECIMAL_RANGE . |
java.lang.String |
getFalseValue()
Returns the string value for BooleanFalseValue. |
java.lang.String |
getFalseValueI18NKey()
Returns the I18N Key for BooleanFalseValue. |
java.lang.String |
getI18NKey()
Returns the I18N key to describe the configuration attribute. |
int |
getMaxValue()
Returns the maximum number of values for the attribute if the attribute is of type MULTIPLE_CHOICE . |
int |
getMinValue()
Returns the minimum number of values for the attribute if the attribute is of type MULTIPLE_CHOICE . |
java.lang.String |
getName()
Returns the name of the attribute. |
java.lang.String |
getPropertiesViewBeanURL()
Returns URL of the view bean for the attribute. |
java.lang.String |
getStartRange()
Returns the start range if the attribute syntax is either NUMBER_RANGE or DECIMAL_RANGE . |
AttributeSchema.Syntax |
getSyntax()
Returns the syntax of the attribute. |
java.lang.String |
getTrueValue()
Returns the string value for BooleanTrueValue. |
java.lang.String |
getTrueValueI18NKey()
Retruns the I18N Key for BooleanTrueValue. |
AttributeSchema.Type |
getType()
Returns the type of the attribute. |
AttributeSchema.UIType |
getUIType()
Returns the UI type of the attribute. |
java.lang.String |
getValidator()
Method to get the validator name for using to validate this service attribute |
boolean |
isOptional()
Checks if the attribute is an optional attribute. |
boolean |
isResourceNameAllowed()
Checks if the attribute allows to have resource name. |
boolean |
isServiceIdentifier()
Chekcs if the attribute is a service identifier (i.e., in the case of LDAP it would be the COS Specifier attribute). |
boolean |
isStatusAttribute()
Checkds if the attribute is a service's status attribute. |
void |
removeChoiceValue(java.lang.String value)
Removes the given value from the set of choice values. |
void |
removeDefaultValue(java.lang.String value)
Removes the given value from the set of default values. |
void |
removeDefaultValues()
Removes the all the default values for the attribute. |
void |
setDefaultValues(java.util.Set values)
Sets the default values of the attribute. |
void |
setI18NKey(java.lang.String i18nKey)
Sets the I18N key to describe the configuration attribute. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getName()
public AttributeSchema.Type getType()
public AttributeSchema.UIType getUIType()
public AttributeSchema.Syntax getSyntax()
public java.lang.String getI18NKey()
public void setI18NKey(java.lang.String i18nKey) throws SMSException, SSOException
i18NKey
- the I18N key to describe the attributeSMSException
- if an error is encountered when trying to
set I18N key to the attribute schemaSSOException
- if the SSO token is invalid or expiredpublic java.lang.String getCosQualifier()
public java.util.Set getDefaultValues()
public void setDefaultValues(java.util.Set values) throws SMSException, SSOException
values
- the set of default valuesSMSException
- public void addDefaultValue(java.lang.String value) throws SMSException, SSOException
value
- the default value to addSMSException
- public void removeDefaultValues() throws SMSException, SSOException
value
- the default value to removeSMSException
- public void removeDefaultValue(java.lang.String value) throws SMSException, SSOException
value
- the default value to removeSMSException
- public java.lang.String[] getChoiceValues()
SINGLE_CHOICE
or MULTIPLE_CHOICE
.public java.lang.String getChoiceValueI18NKey(java.lang.String cValue)
public void addChoiceValue(java.lang.String value, java.lang.String i18nKey) throws SMSException, SSOException
value
- the choice value to addi18nKey
- the I18N key for the choice valueSMSException
- public void removeChoiceValue(java.lang.String value) throws SMSException, SSOException
value
- the choice value to removeSMSException
- public java.lang.String getStartRange()
NUMBER_RANGE
or DECIMAL_RANGE
.public java.lang.String getEndRange()
NUMBER_RANGE
or DECIMAL_RANGE
.public java.lang.String getValidator()
public int getMinValue()
MULTIPLE_CHOICE
.public int getMaxValue()
MULTIPLE_CHOICE
.public java.lang.String getTrueValue()
public java.lang.String getTrueValueI18NKey()
public java.lang.String getFalseValue()
public java.lang.String getFalseValueI18NKey()
public boolean isOptional()
public boolean isServiceIdentifier()
public boolean isResourceNameAllowed()
public boolean isStatusAttribute()
public java.lang.String getAny()
public java.lang.String getPropertiesViewBeanURL()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |