wt.fc
Interface IdentityService

All Known Implementing Classes:
IdentityServiceFwd, 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.
 Master changeMasterIdentity(Master master, String name, String number, WTOrganization org)
          Change the Mastered object identity with the new name, number and organization.
 

Method Detail

changeIdentity

public 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

public 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

changeMasterIdentity

public Master changeMasterIdentity(Master master,
                                   String name,
                                   String number,
                                   WTOrganization org)
                            throws WTPropertyVetoException,
                                   UniquenessException,
                                   WTException
Change the Mastered object identity with the new name, number and organization.

Supported API: false

Parameters:
master -
name -
number -
org -
Returns:
Master
Throws:
WTPropertyVetoException
UniquenessException
WTException