|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.fc.StandardIdentityService
Standard implementation of the identity service. Provides means to change the identity of an Identified object as well identity checks for the creation of these objects.
Use the newStandardIdentityService
static factory method(s),
not the StandardIdentityService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private static String |
SEMANTIC_KEY_UNIQUELY_IDENTIFIED_REF
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardIdentityService()
|
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. |
protected void |
deleteSemanticKeys(WTCollection uniquelyIdentifieds)
|
private void |
dispatchVetoableMultiObjectEvent(IdentityServiceEvent event)
|
String |
getConceptualClassname()
Deprecated. |
static StandardIdentityService |
newStandardIdentityService()
Default factory for the class. |
protected void |
performStartupProcess()
Identity service startup process which consists of subscription to the creation/deletion persistence manager events. |
void |
registerEvents(ManagerService managerService)
Register PRE-/POST_CHANGE_IDENTITY. |
protected void |
storeSemanticKeys(WTCollection uniquelyIdentifieds)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String SEMANTIC_KEY_UNIQUELY_IDENTIFIED_REF
Constructor Detail |
public StandardIdentityService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
managerService
- the ManagerService with which to register events.public static StandardIdentityService newStandardIdentityService() throws WTException
WTException
public Identified changeIdentity(Identified obj, IdentificationObject identity) throws WTException
changeIdentity
in interface IdentityService
obj
- identity
-
WTException
public WTCollection changeIdentities(WTKeyedMap identifiedToIdentificationObjectMap) throws WTException
changeIdentities
in interface IdentityService
identifiedToIdentificationObjectMap
-
WTException
public Master changeMasterIdentity(Master master, String name, String number, WTOrganization org) throws WTPropertyVetoException, UniquenessException, WTException
changeMasterIdentity
in interface IdentityService
master
- name
- number
- org
-
WTPropertyVetoException
UniquenessException
WTException
protected void storeSemanticKeys(WTCollection uniquelyIdentifieds) throws WTException
WTException
protected void deleteSemanticKeys(WTCollection uniquelyIdentifieds) throws WTException
WTException
private void dispatchVetoableMultiObjectEvent(IdentityServiceEvent event) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |