com.ibm.itim.dataservices.model

Class ComplexAttributeHandler

  • java.lang.Object
    • com.ibm.itim.dataservices.model.ComplexAttributeHandler


  • public class ComplexAttributeHandler
    extends java.lang.Object
    This defines a generic interface to handle complex attribute
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.String attrName, java.lang.String value1, java.lang.String value2)
      Compares the two attribute values for a complex attribute and see if the values are equal or not
      com.ibm.isim.util.complexattribute.ComplexAttributeValue getAttributeValue(java.lang.String attrName, java.util.List<com.ibm.isim.common.BasicAttributeValue> subAttributes)
      Constructs the ComplexAttributeValue object given the name and string representation of the attribute value assuming that the string format can be understood by the specific attribute handler
      com.ibm.isim.util.complexattribute.ComplexAttributeValue getAttributeValue(java.lang.String attrName, java.lang.String attributeValueAsString)
      Constructs the ComplexAttributeValue object given the name and string representation of the attribute value assuming that the string format can be understood by the specific attribute handler
      java.lang.String getString(java.lang.String attrName, com.ibm.isim.util.complexattribute.ComplexAttributeValue value)
      Returns the string representation of the complex attribute using pre-defined format by the specific attribute handler.
      java.util.List<com.ibm.isim.common.BasicAttributeValue> getSubAttributeDefaults(java.lang.String attrName)
      Constructs set of sub-attributes for a complex attribute value The implementation of the handler will determine where the defaults are specified or how it is being generated.
      boolean hasValue(java.lang.String attrName, java.util.Collection<java.lang.Object> values, java.lang.String valueToCheck) 
      boolean isValid(java.lang.String attrName, java.lang.String attrValueString) 
      java.lang.String normalize(java.lang.String attrName, java.lang.String attributeValueAsString) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComplexAttributeHandler

        public ComplexAttributeHandler(ServiceProfile svcProfile)
      • ComplexAttributeHandler

        public ComplexAttributeHandler(DistinguishedName tenantDN,
                                       java.lang.String serviceProfileName)
    • Method Detail

      • getAttributeValue

        public com.ibm.isim.util.complexattribute.ComplexAttributeValue getAttributeValue(java.lang.String attrName,
                                                                                          java.lang.String attributeValueAsString)
        Constructs the ComplexAttributeValue object given the name and string representation of the attribute value assuming that the string format can be understood by the specific attribute handler
        Parameters:
        attrName - The name of the attribute
        attributeValueAsString - A string representation of a attribute value.
        Returns:
        ComplexAttributeValue that represents the attribute value
      • getAttributeValue

        public com.ibm.isim.util.complexattribute.ComplexAttributeValue getAttributeValue(java.lang.String attrName,
                                                                                          java.util.List<com.ibm.isim.common.BasicAttributeValue> subAttributes)
        Constructs the ComplexAttributeValue object given the name and string representation of the attribute value assuming that the string format can be understood by the specific attribute handler
        Parameters:
        attrName - The name of the attribute
        attributeValueAsString - A string representation of a attribute value.
        Returns:
        ComplexAttributeValue that represents the attribute value
      • getString

        public java.lang.String getString(java.lang.String attrName,
                                          com.ibm.isim.util.complexattribute.ComplexAttributeValue value)
        Returns the string representation of the complex attribute using pre-defined format by the specific attribute handler.
        Parameters:
        attrName - The name of the attribute
        value - The value of a complex attribute. A complex attribute can be either single or multi valued
        Returns:
        String to represent the complex attribute value
      • getSubAttributeDefaults

        public java.util.List<com.ibm.isim.common.BasicAttributeValue> getSubAttributeDefaults(java.lang.String attrName)
        Constructs set of sub-attributes for a complex attribute value The implementation of the handler will determine where the defaults are specified or how it is being generated.
        Parameters:
        attrName - The name of the attribute
        Returns:
        AttributeValues that contains the set of default values for the sub-attributes, The default for each sub-attribute is specified in one AttributeValue object which could be either single or multi valued, the name of the AttributeValue object is the name of the sub-attribute
      • equals

        public boolean equals(java.lang.String attrName,
                              java.lang.String value1,
                              java.lang.String value2)
        Compares the two attribute values for a complex attribute and see if the values are equal or not
        Parameters:
        attrName - The name of the attribute
        value1 - The value of a complex attribute
        value2 - The value of a complex attribute
        Returns:
        boolean true if the two given values are the same and false otherwise
      • isValid

        public boolean isValid(java.lang.String attrName,
                               java.lang.String attrValueString)
      • hasValue

        public boolean hasValue(java.lang.String attrName,
                                java.util.Collection<java.lang.Object> values,
                                java.lang.String valueToCheck)
      • normalize

        public java.lang.String normalize(java.lang.String attrName,
                                          java.lang.String attributeValueAsString)