public class Compliance
extends java.lang.Object
implements java.io.Serializable
AttributeProperty,
Serialized Form| Constructor and Description |
|---|
Compliance()
Constructs the default compliance object.
|
Compliance(int compliance,
AttributeChanges requiredChanges)
Constructs the compliance object with the compliance status
and the required attribute changes information if the account is not
compliant.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
getAttributeProperties()
Gets the map of attribute name and AttributeProperty objects.
|
int |
getCompliance()
Gets the complianace status.
|
AttributeChanges |
getRequiredChanges()
Gets the required AttributeChanges that would make the account
compliant.
|
java.lang.String |
requiredChangesToString(AttributeValues originalAttrVals)
Returns the string representation of the required attribute changes to
make the account compliant.
|
void |
setAttributeProperties(java.util.Map attributeProperties)
Sets the map of attribute name and AttributeProperty objects.
|
void |
setCompliance(int compliance)
Sets the account compliance status.
|
void |
setRequiredChanges(AttributeChanges requiredChanges)
Sets the required changes to make the account compliant.
|
java.lang.String |
toString()
Returns the string representaion of this object.
|
public Compliance()
Account.COMPLIANTpublic Compliance(int compliance,
AttributeChanges requiredChanges)
compliance - The account compliance status. It can be
Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, OR
Account.UNAUTHORIZEDrequiredChanges - The AttributeChanges object that would make
the account compliant.Account.COMPLIANT,
Account.CONSTRAINT_VIOLATION,
Account.UNAUTHORIZED,
AttributeChangespublic AttributeChanges getRequiredChanges()
AttributeChangespublic int getCompliance()
Account.COMPLIANT,
Account.CONSTRAINT_VIOLATION,
Account.UNAUTHORIZEDpublic void setRequiredChanges(AttributeChanges requiredChanges)
requiredChanges - The AttributeChanges object that would make
the account compliant.AttributeChangespublic void setCompliance(int compliance)
compliance - The compliance status. It can be
Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, OR
Account.UNAUTHORIZEDjava.lang.IllegalArgumentException - if the compliance value is not valid.Account.COMPLIANT,
Account.CONSTRAINT_VIOLATION,
Account.UNAUTHORIZEDpublic void setAttributeProperties(java.util.Map attributeProperties)
attributeProperties - AttributePropertypublic java.util.Map getAttributeProperties()
AttributePropertypublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String requiredChangesToString(AttributeValues originalAttrVals)
originalAttrVals - The origianl attribute values of the account.