wt.fc
Interface IdentityService

All Known Implementing Classes:
StandardIdentityService

public interface IdentityService

Remote interface with public identity service methods.

Supported API: true

Extendable: false


Method Summary
 WTCollection changeIdentities(WTKeyedMap identifiedToIdentificationObjectMap)
          Changes the identities of all the Identied objects (the keys) to the ones of the IdentificationObjects (the values).
 Identified changeIdentity(Identified obj, IdentificationObject identity)
          Changes the identity of the object to the one held by the Identification object.
 

Method Detail

changeIdentity

Identified changeIdentity(Identified obj,
                          IdentificationObject identity)
                          throws WTException
Changes the identity of the object to the one held by the Identification object. The identity change is performed after identity constraints have been checked (including uniqueness constraints). The change is performed as a single operation, even if the identity is composed of several attributes.

Supported API: true

Parameters:
obj -
identity -
Returns:
Identified
Throws:
WTException

changeIdentities

WTCollection changeIdentities(WTKeyedMap identifiedToIdentificationObjectMap)
                              throws WTException
Changes the identities of all the Identied objects (the keys) to the ones of the IdentificationObjects (the values). Checks the validity of the changes including uniqueness constraints. If the changes are allowed, performs them and saves the changed objects in the database. Returns the changed objects or throws an exception if the change is not allowed. Posts PRE and POST change identity events.

Supported API: true

Parameters:
identifiedToIdentificationObjectMap -
Returns:
WTCollection
Throws:
WTException