Class ConnObjectUtils

java.lang.Object
org.apache.syncope.core.provisioning.java.utils.ConnObjectUtils

public class ConnObjectUtils extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • toSyncToken

      public static SyncToken toSyncToken(String syncToken)
    • toString

      public static String toString(SyncToken syncToken)
    • 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, InboundTask<?> inboundTask, 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
      inboundTask - inbound 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
    • getRealmTO

      public RealmTO getRealmTO(ConnectorObject obj, OrgUnit orgUnit)
    • getAnyUR

      @Transactional(readOnly=true) public <U extends AnyUR> U getAnyUR(String key, ConnectorObject obj, AnyTO original, InboundTask<?> inboundTask, 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
      inboundTask - inbound task
      anyTypeKind - any type kind
      provision - provision information
      Returns:
      modifications for the any object to be updated
    • getAnyTOFromConnObject

      protected <T extends AnyTO> T getAnyTOFromConnObject(ConnectorObject obj, InboundTask<?> inboundTask, AnyTypeKind anyTypeKind, Provision provision)