Class SystemIdentityRegistry
java.lang.Object
overit.geocall.basic.bl.auth.registry.SystemIdentityRegistry
Class used to create a new
Identity, if it's missing, using the event SystemUserIdentificationEvent and store it
on a WeakRegistry-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIdentity(Company company, String username) Try to retrieve aIdentityfrom theWeakRegistry, if it's missing create a new one and store it
-
Constructor Details
-
SystemIdentityRegistry
public SystemIdentityRegistry()
-
-
Method Details
-
getIdentity
public Identity getIdentity(Company company, String username) throws DAException, DAValidateException Try to retrieve aIdentityfrom theWeakRegistry, if it's missing create a new one and store it- Parameters:
company- company used to create a newIdentityusername- username to retrieve theIdentityor to create a new one- Returns:
- identity required
- Throws:
DAValidateException- in case of database validation errorDAException- in case of database error
-