com.ibm.itim.apps.provisioning

Class Compliance

  • java.lang.Object
    • 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

      Constructors 
      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.
    • 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
      • 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.