Package wt.fc
Interface IdentityService
- All Known Implementing Classes:
StandardIdentityService
Remote interface with public identity service methods.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionchangeIdentities(WTKeyedMap identifiedToIdentificationObjectMap) Changes the identities of all the Identied objects (the keys) to the ones of the IdentificationObjects (the values).changeIdentity(Identified obj, IdentificationObject identity) Changes the identity of the object to the one held by the Identification object.
-
Method Details
-
changeIdentity
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
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
-