Class ConnObjectUtils


  • public class ConnObjectUtils
    extends Object
    • Method Detail

      • getPassword

        public static String getPassword​(Object pwd)
        Extract password value from passed value (if instance of GuardedString or GuardedByteArray).
        Parameters:
        pwd - received from the underlying connector
        Returns:
        password value
      • getConnObjectTO

        public static ConnObject getConnObjectTO​(String fiql,
                                                 Set<Attribute> attrs)
        Builds ConnObject out of a collection of Attribute instances.
        Parameters:
        fiql - FIQL expression to uniquely identify the given Connector Object
        attrs - attributes
        Returns:
        transfer object
      • getAnyCR

        @Transactional(readOnly=true)
        public <C extends AnyCR> C getAnyCR​(ConnectorObject obj,
                                            PullTask pullTask,
                                            AnyTypeKind anyTypeKind,
                                            Provision provision,
                                            boolean generatePassword)
        Build a UserCR / GroupCR / AnyObjectCR out of connector object attributes and schema mapping.
        Type Parameters:
        C - create request type
        Parameters:
        obj - connector object
        pullTask - pull task
        anyTypeKind - any type kind
        provision - provision information
        generatePassword - whether password value shall be generated, in case not found from connector object
        Returns:
        create request
      • getAnyUR

        @Transactional(readOnly=true)
        public <U extends AnyUR> U getAnyUR​(String key,
                                            ConnectorObject obj,
                                            AnyTO original,
                                            PullTask pullTask,
                                            AnyTypeKind anyTypeKind,
                                            Provision provision)
        Build AnyUR out of connector object attributes and schema mapping.
        Type Parameters:
        U - any object
        Parameters:
        key - any object to be updated
        obj - connector object
        original - any object to get diff from
        pullTask - pull task
        anyTypeKind - any type kind
        provision - provision information
        Returns:
        modifications for the any object to be updated