Class UpdateImpl

  • All Implemented Interfaces:
    org.identityconnectors.framework.api.operations.APIOperation, org.identityconnectors.framework.api.operations.UpdateApiOp

    public class UpdateImpl
    extends ConnectorAPIOperationRunner
    implements org.identityconnectors.framework.api.operations.UpdateApiOp
    Handles both version of update this include simple replace and the advance update.
    • Field Summary

      • Fields inherited from interface org.identityconnectors.framework.api.operations.APIOperation

        NO_TIMEOUT
    • Constructor Summary

      Constructors 
      Constructor Description
      UpdateImpl​(ConnectorOperationalContext context, org.identityconnectors.framework.spi.Connector connector)
      Determines which type of update a connector supports and then uses that handler.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.identityconnectors.framework.common.objects.Uid addAttributeValues​(org.identityconnectors.framework.common.objects.ObjectClass objclass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> valuesToAdd, org.identityconnectors.framework.common.objects.OperationOptions options)  
      Set<org.identityconnectors.framework.common.objects.Attribute> merge​(Set<org.identityconnectors.framework.common.objects.Attribute> updateAttrs, Set<org.identityconnectors.framework.common.objects.Attribute> baseAttrs, boolean add)
      Merges two connector objects into a single updated object.
      org.identityconnectors.framework.common.objects.Uid removeAttributeValues​(org.identityconnectors.framework.common.objects.ObjectClass objclass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> valuesToRemove, org.identityconnectors.framework.common.objects.OperationOptions options)  
      org.identityconnectors.framework.common.objects.Uid update​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> replaceAttributes, org.identityconnectors.framework.common.objects.OperationOptions options)  
      static void validateInput​(org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.Uid uid, Set<org.identityconnectors.framework.common.objects.Attribute> replaceAttributes, boolean isDelta)
      Makes things easier if you can trust the input.
    • Constructor Detail

      • UpdateImpl

        public UpdateImpl​(ConnectorOperationalContext context,
                          org.identityconnectors.framework.spi.Connector connector)
        Determines which type of update a connector supports and then uses that handler.
    • Method Detail

      • update

        public org.identityconnectors.framework.common.objects.Uid update​(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                                                          org.identityconnectors.framework.common.objects.Uid uid,
                                                                          Set<org.identityconnectors.framework.common.objects.Attribute> replaceAttributes,
                                                                          org.identityconnectors.framework.common.objects.OperationOptions options)
        Specified by:
        update in interface org.identityconnectors.framework.api.operations.UpdateApiOp
      • addAttributeValues

        public org.identityconnectors.framework.common.objects.Uid addAttributeValues​(org.identityconnectors.framework.common.objects.ObjectClass objclass,
                                                                                      org.identityconnectors.framework.common.objects.Uid uid,
                                                                                      Set<org.identityconnectors.framework.common.objects.Attribute> valuesToAdd,
                                                                                      org.identityconnectors.framework.common.objects.OperationOptions options)
        Specified by:
        addAttributeValues in interface org.identityconnectors.framework.api.operations.UpdateApiOp
      • removeAttributeValues

        public org.identityconnectors.framework.common.objects.Uid removeAttributeValues​(org.identityconnectors.framework.common.objects.ObjectClass objclass,
                                                                                         org.identityconnectors.framework.common.objects.Uid uid,
                                                                                         Set<org.identityconnectors.framework.common.objects.Attribute> valuesToRemove,
                                                                                         org.identityconnectors.framework.common.objects.OperationOptions options)
        Specified by:
        removeAttributeValues in interface org.identityconnectors.framework.api.operations.UpdateApiOp
      • merge

        public Set<org.identityconnectors.framework.common.objects.Attribute> merge​(Set<org.identityconnectors.framework.common.objects.Attribute> updateAttrs,
                                                                                    Set<org.identityconnectors.framework.common.objects.Attribute> baseAttrs,
                                                                                    boolean add)
        Merges two connector objects into a single updated object.
      • validateInput

        public static void validateInput​(org.identityconnectors.framework.common.objects.ObjectClass objectClass,
                                         org.identityconnectors.framework.common.objects.Uid uid,
                                         Set<org.identityconnectors.framework.common.objects.Attribute> replaceAttributes,
                                         boolean isDelta)
        Makes things easier if you can trust the input.