com.ibm.itim.apps.provisioning
Class Compliance

java.lang.Object
  extended by com.ibm.itim.apps.provisioning.Compliance
All Implemented Interfaces:
java.io.Serializable

public class Compliance
extends java.lang.Object
implements java.io.Serializable

This class holds the information about the account compliance status, the required attribute changes to make the account compliant, and the attribute properties for the non-compliant attributes.

Since:
IITM 4.6
See Also:
AttributeProperty, Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compliance

public Compliance()
Constructs the default compliance object. By default, the compliance status is set to Account.COMPLIANT.

See Also:
Account.COMPLIANT

Compliance

public 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.

Parameters:
compliance - The account compliance status. It can be Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, OR Account.UNAUTHORIZED
requiredChanges - The AttributeChanges object that would make the account compliant.
See Also:
Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, Account.UNAUTHORIZED, AttributeChanges
Method Detail

getRequiredChanges

public AttributeChanges getRequiredChanges()
Gets the required AttributeChanges that would make the account compliant.

Returns:
Required AttributeChanges to make the account compliant. null will be returned if the account is compliant.
See Also:
AttributeChanges

getCompliance

public int getCompliance()
Gets the complianace status.

Returns:
Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, OR Account.UNAUTHORIZED
See Also:
Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, Account.UNAUTHORIZED

setRequiredChanges

public void setRequiredChanges(AttributeChanges requiredChanges)
Sets the required changes to make the account compliant.

Parameters:
requiredChanges - The AttributeChanges object that would make the account compliant.
See Also:
AttributeChanges

setCompliance

public void setCompliance(int compliance)
Sets the account compliance status.

Parameters:
compliance - The compliance status. It can be Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, OR Account.UNAUTHORIZED
Throws:
java.lang.IllegalArgumentException - if the compliance value is not valid.
See Also:
Account.COMPLIANT, Account.CONSTRAINT_VIOLATION, Account.UNAUTHORIZED

setAttributeProperties

public void setAttributeProperties(java.util.Map attributeProperties)
Sets the map of attribute name and AttributeProperty objects.

Parameters:
attributeProperties -
See Also:
AttributeProperty

getAttributeProperties

public java.util.Map getAttributeProperties()
Gets the map of attribute name and AttributeProperty objects.

Returns:
The Map of attribute name and AttributeProperty objects.
See Also:
AttributeProperty

toString

public java.lang.String toString()
Returns the string representaion of this object.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this object.

requiredChangesToString

public java.lang.String requiredChangesToString(AttributeValues originalAttrVals)
Returns the string representation of the required attribute changes to make the account compliant.

Parameters:
originalAttrVals - The origianl attribute values of the account.
Returns:
The string representation of required values.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.