|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.policy.ServiceAttributeParameter
public class ServiceAttributeParameter
This class is used to store a service attribute parameter enforceable through a provisioning policy.
ProvisioningParameters
,
Serialized FormField Summary | |
---|---|
static int |
ALLOWED
Constant which represents an optional attribute enforcement. |
static int |
DEFAULT
Constant which represents an default attribute enforcement. |
static int |
EXCLUDED
Constant which represents an excluded attribute enforcement. |
static int |
EXPRESSION_TYPE_REGULAR
|
static int |
EXPRESSION_TYPE_SCRIPT
|
static int |
MANDATORY
Constant which represents an mandatory attribute enforcement. |
static int |
OPTIONAL
Deprecated. This enforcement now behaves like DEFAULT. To specify optional attribute enforcement, use ALLOWED instead. |
Constructor Summary | |
---|---|
ServiceAttributeParameter(java.lang.String parameterName,
java.util.List parameterValues,
int[] enforcements)
Constructor for single or multi valued attributes |
|
ServiceAttributeParameter(java.lang.String parameterName,
java.util.List parameterValues,
int[] enforcements,
int[] expressionTypes)
Constructor for single or mainly multi valued attributes |
|
ServiceAttributeParameter(java.lang.String parameterName,
java.lang.Object parameterValue,
int enforcement)
Constructor only for single valued attributes where the value is a constant or contains a script expression or program. |
Method Summary | |
---|---|
AttributeValue |
getAttributeValueObject()
Returns the AttributeValue object of a single valued parameter. |
int |
getEnforcement()
Returns enforcement of the only value of a single valued parameter. |
int[] |
getEnforcements()
Returns array of enforcements order of which corresponds to the order of individual values in this provisioning parameter. |
int |
getExpressionType()
Returns expressionType of the only value of a single valued parameter. |
int[] |
getExpressionTypes()
Returns array of expression types order of which corresponds to the order of individual values in this provisioning parameter. |
java.lang.String |
getParameterName()
Returns name of the provisioning parameter |
java.lang.Object |
getParameterValue()
Returns single value of the prosivioning parameter. |
java.util.List |
getParameterValues()
Return collection of all individual parameter values. |
void |
setEnforcement(int enforcement)
Sets the enforcement of the only value of this provisioning parameter. |
void |
setEnforcements(int[] enforcements)
Sets the enforcements for each value in this provisioning parameter. |
void |
setExpressionType(int expressionType)
Sets the expression type of the only value of this provisioning parameter. |
void |
setExpressionTypes(int[] expressionTypes)
Sets the expression types for each value in this provisioning parameter. |
void |
setParameterValue(java.lang.Object parameterValue)
Stores value of a single value parameter |
void |
setParameterValues(java.util.List parameterValues)
Stores the collection of all individual values that this parameter contains. |
java.lang.String |
toString()
This method will return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OPTIONAL
public static final int EXCLUDED
public static final int ALLOWED
public static final int DEFAULT
public static final int MANDATORY
public static final int EXPRESSION_TYPE_SCRIPT
public static final int EXPRESSION_TYPE_REGULAR
Constructor Detail |
---|
public ServiceAttributeParameter(java.lang.String parameterName, java.lang.Object parameterValue, int enforcement)
parameterName
- Name of the provisioning parameter, the account
attribute nameparameterValue
- Value of the attribute this parameter represents
where the value is a constant or a script
or regular expression. A constant value must include
the surrounding double quotes. Example:
String value = "\"my value\"";
A javascript value should be without the surrounding
curly braces, "{".enforcement
- Defines the enforcement option correspond to the value
stored in the parameterValue argument. Possible values
are EXCLUDED, ALLOWED, DEFAULT (OPTIONAL), or MANDATORY.public ServiceAttributeParameter(java.lang.String parameterName, java.util.List parameterValues, int[] enforcements)
parameterName
- name of the provisioning parameter, the account
attribute nameparameterValues
- List of values of the attribute this parameter
represents, where each individual value is a
constant or a script or regular expression.
A constant value must include the surrounding
double quotes. Example:
String value = "\"my value\"";
A javascript value should be without the surrounding
curly braces, "{".enforcements
- Defines array with enforcement options ordered to
correspond to values stored in the parameterValues
argument. Note: enforcement type of ALLOWED and EXCLUDED
are not supported for single-valued attribute.public ServiceAttributeParameter(java.lang.String parameterName, java.util.List parameterValues, int[] enforcements, int[] expressionTypes)
parameterName
- Name of the provisioning parameter, the account
attribute nameparameterValues
- List of values of the attribute this parameter
represents, where each individual value is a
constant or a script or regular expression.
A constant value must include the surrounding
double quotes. Example:
String value = "\"my value\"";
A javascript value should be without the surrounding
curly braces, "{".enforcements
- Defines array with enforcement options ordered to
correspond to values.
Note: enforcement type of ALLOWED and EXCLUDED are not
supported for single-valued attribute.expressionTypes
- Defines array with expression type options ordered
to correspond to values stored in the
parameterValues argument. options maybe one of
the following:
EXPRESSION_TYPE_SCRIPT
EXPRESSION_TYPE_REGULARMethod Detail |
---|
public java.lang.String getParameterName()
public AttributeValue getAttributeValueObject()
public java.lang.Object getParameterValue()
public void setParameterValue(java.lang.Object parameterValue)
parameterValue
- Value of the attribute this parameter represents
where the value is a constant or a script
or regular expression. A constant value must include
the surrounding double quotes. Example:
String value = "\"my value\"";
A javascript value should be without the surrounding
curly braces, "{".public java.util.List getParameterValues()
public void setParameterValues(java.util.List parameterValues)
parameterValues
- List of values of the attribute this parameter
represents, where each individual value is a
constant or a script or regular expression.
A constant value must include the surrounding
double quotes. Example:
String value = "\"my value\"";
A javascript value should be without the surrounding
curly braces, "{".public int getEnforcement()
public void setEnforcement(int enforcement)
enforcement
- int representing the only value of this provisioning parameter.
Note: enforcement type of ALLOWED and EXCLUDED are not
supported for single-valued attribute.public int[] getEnforcements()
public void setEnforcements(int[] enforcements)
enforcements
- int[] of enforcements.
Order corresponds to order of individual values stored by this
provisioning parameter. Note: enforcement type of ALLOWED and EXCLUDED are not
supported for single-valued attribute.public int getExpressionType()
public void setExpressionType(int expressionType)
expressionType
- int representing the only value of this
provisioning parameter.public int[] getExpressionTypes()
public void setExpressionTypes(int[] expressionTypes)
expressionTypes
- int[] of expression types. Order corresponds to order of
individual values stored by this provisioning parameter.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |