org.identityconnectors.framework.impl.api.local.operations
Class UpdateImpl

java.lang.Object
  extended by org.identityconnectors.framework.impl.api.local.operations.APIOperationRunner
      extended by org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunner
          extended by org.identityconnectors.framework.impl.api.local.operations.UpdateImpl
All Implemented Interfaces:
APIOperation, UpdateApiOp

public class UpdateImpl
extends ConnectorAPIOperationRunner
implements 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
UpdateImpl(ConnectorOperationalContext context, Connector connector)
          Determines which type of update a connector supports and then uses that handler.
 
Method Summary
 Uid addAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToAdd, OperationOptions options)
           
 Set<Attribute> merge(Set<Attribute> updateAttrs, Set<Attribute> baseAttrs, boolean add)
          Merges two connector objects into a single updated object.
 Uid removeAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToRemove, OperationOptions options)
           
 Uid update(ObjectClass objclass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options)
           
static void validateInput(ObjectClass objclass, Uid uid, Set<Attribute> attrs, boolean isDelta)
          Makes things easier if you can trust the input.
 
Methods inherited from class org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunner
getConnector, getNormalizer, getOperationalContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateImpl

public UpdateImpl(ConnectorOperationalContext context,
                  Connector connector)
Determines which type of update a connector supports and then uses that handler.

Method Detail

update

public Uid update(ObjectClass objclass,
                  Uid uid,
                  Set<Attribute> replaceAttributes,
                  OperationOptions options)
Specified by:
update in interface UpdateApiOp

addAttributeValues

public Uid addAttributeValues(ObjectClass objclass,
                              Uid uid,
                              Set<Attribute> valuesToAdd,
                              OperationOptions options)
Specified by:
addAttributeValues in interface UpdateApiOp

removeAttributeValues

public Uid removeAttributeValues(ObjectClass objclass,
                                 Uid uid,
                                 Set<Attribute> valuesToRemove,
                                 OperationOptions options)
Specified by:
removeAttributeValues in interface UpdateApiOp

merge

public Set<Attribute> merge(Set<Attribute> updateAttrs,
                            Set<Attribute> baseAttrs,
                            boolean add)
Merges two connector objects into a single updated object.


validateInput

public static void validateInput(ObjectClass objclass,
                                 Uid uid,
                                 Set<Attribute> attrs,
                                 boolean isDelta)
Makes things easier if you can trust the input.



Copyright © 2011. All Rights Reserved.