Oracle® Fusion Middleware .NET API Reference for Identity Connector Framework  E57662-01
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | List of all members
Org.IdentityConnectors.Framework.Api.Operations.UpdateApiOp Interface Reference

Updates a ConnectorObject. More...

Inherits Org.IdentityConnectors.Framework.Api.Operations.APIOperation.

Inherited by Org.IdentityConnectors.Framework.Api.ConnectorFacade.

Public Member Functions

Uid Update (ObjectClass objclass, Uid uid, ICollection< ConnectorAttribute > replaceAttributes, OperationOptions options)
 Update the object specified by the ObjectClass and Uid, replacing the current values of each attribute with the values provided. More...
 
Uid AddAttributeValues (ObjectClass objclass, Uid uid, ICollection< ConnectorAttribute > valuesToAdd, OperationOptions options)
 Update the object specified by the ObjectClass and Uid, adding to the current values of each attribute the values provided. More...
 
Uid RemoveAttributeValues (ObjectClass objclass, Uid uid, ICollection< ConnectorAttribute > valuesToRemove, OperationOptions options)
 Update the object specified by the ObjectClass and Uid, removing from the current values of each attribute the values provided. More...
 

Detailed Description

Updates a ConnectorObject.

This operation is supported for those connectors that implement either Org.IdentityConnectors.Framework.Spi.Operations.UpdateOp or the more advanced Org.IdentityConnectors.Framework.Spi.Operations.UpdateAttributeValuesOp.

Member Function Documentation

Uid Org.IdentityConnectors.Framework.Api.Operations.UpdateApiOp.AddAttributeValues ( ObjectClass  objclass,
Uid  uid,
ICollection< ConnectorAttribute valuesToAdd,
OperationOptions  options 
)

Update the object specified by the ObjectClass and Uid, adding to the current values of each attribute the values provided.

For each attribute that the input set contains, add to the current values of that attribute in the target object all of the values of that attribute in the input set.

NOTE that this does not specify how to handle duplicate values. The general assumption for an attribute of a

ConnectorObject

is that the values for an attribute may contain duplicates. Therefore, in general simply append the provided values to the current value for each attribute.

IMPLEMENTATION NOTE: for connectors that merely implement Org.IdentityConnectors.Framework.Spi.Operations.UpdateOp and not Org.IdentityConnectors.Framework.Spi.Operations.UpdateAttributeValuesOp this method will be simulated by fetching, merging, and calling Org.IdentityConnectors.Framework.Spi.Operations.UpdateOp.Update(ObjectClass, Uid, ICollection{ConnectorAttribute}, OperationOptions). Therefore, connector implementations are encourage to implement Org.IdentityConnectors.Framework.Spi.Operations.UpdateAttributeValuesOp from a performance and atomicity standpoint.

Parameters
objclassthe type of object to modify. Must not be null.
uidthe uid of the object to modify. Must not be null.
valuesToAddset of ConnectorAttribute deltas. The values for the attributes in this set represent the values to add to attributes in the object. merged. This set must not include OperationalAttributes. Must not be null.
optionsadditional options that impact the way this operation is run. May be null.
Returns
the Uid of the updated object in case the update changes the formation of the unique identifier.
Exceptions
Org.IdentityConnectors.Framework.Common.Exceptions.UnknownUidExceptioniff the Uid does not exist on the resource.
Uid Org.IdentityConnectors.Framework.Api.Operations.UpdateApiOp.RemoveAttributeValues ( ObjectClass  objclass,
Uid  uid,
ICollection< ConnectorAttribute valuesToRemove,
OperationOptions  options 
)

Update the object specified by the ObjectClass and Uid, removing from the current values of each attribute the values provided.

For each attribute that the input set contains, remove from the current values of that attribute in the target object any value that matches one of the values of the attribute from the input set.

NOTE that this does not specify how to handle unmatched values. The general assumption for an attribute of a

ConnectorObject

is that the values for an attribute are merely representational state. Therefore, the implementer should simply ignore any provided value that does not match a current value of that attribute in the target object. Deleting an unmatched value should always succeed.

IMPLEMENTATION NOTE: for connectors that merely implement Org.IdentityConnectors.Framework.Spi.Operations.UpdateOp and not Org.IdentityConnectors.Framework.Spi.Operations.UpdateAttributeValuesOp this method will be simulated by fetching, merging, and calling Org.IdentityConnectors.Framework.Spi.Operations.UpdateOp.Update(ObjectClass, Uid, ICollection{ConnectorAttribute}, OperationOptions). Therefore, connector implementations are encourage to implement Org.IdentityConnectors.Framework.Spi.Operations.UpdateAttributeValuesOp from a performance and atomicity standpoint.

Parameters
objclassthe type of object to modify. Must not be null.
uidthe uid of the object to modify. Must not be null.
valuesToRemoveset of ConnectorAttribute deltas. The values for the attributes in this set represent the values to remove from attributes in the object. merged. This set must not include OperationalAttributes. Must not be null.
optionsadditional options that impact the way this operation is run. May be null.
Returns
the Uid of the updated object in case the update changes the formation of the unique identifier.
Exceptions
Org.IdentityConnectors.Framework.Common.Exceptions.UnknownUidExceptioniff the Uid does not exist on the resource.
Uid Org.IdentityConnectors.Framework.Api.Operations.UpdateApiOp.Update ( ObjectClass  objclass,
Uid  uid,
ICollection< ConnectorAttribute replaceAttributes,
OperationOptions  options 
)

Update the object specified by the ObjectClass and Uid, replacing the current values of each attribute with the values provided.

For each input attribute, replace all of the current values of that attribute in the target object with the values of that attribute.

If the target object does not currently contain an attribute that the input set contains, then add this attribute (along with the provided values) to the target object.

If the value of an attribute in the input set is

null

, then do one of the following, depending on which is most appropriate for the target:

  • If possible, remove that attribute from the target object entirely.
  • Otherwise, replace all of the current values of that attribute in the target object with a single value of
    null
    .
Parameters
objclassthe type of object to modify. Must not be null.
uidthe uid of the object to modify. Must not be null.
replaceAttributesset of new ConnectorAttribute. the values in this set represent the new, merged values to be applied to the object. This set may also include OperationalAttributes. Must not be null.
optionsadditional options that impact the way this operation is run. May be null.
Returns
the Uid of the updated object in case the update changes the formation of the unique identifier.
Exceptions
Org.IdentityConnectors.Framework.Common.Exceptions.UnknownUidExceptioniff the Uid does not exist on the resource.

The documentation for this interface was generated from the following file: