Class BTAnonymizeUser
java.lang.Object
overit.geocall.bl.BusinessTask<AnonymizeUserEvent>
overit.geocall.basic.bl.user.task.BTAnonymizeUser
- All Implemented Interfaces:
Serializable,Tool
@Event(AnonymizeUserEvent.class)
@Permission("foundation.base.user.edit")
public class BTAnonymizeUser
extends BusinessTask<AnonymizeUserEvent>
Task that listen the
Can raise a DAException if there is some connection problem with the database.
AnonymizeUserEvent and anonymize the user information saved into the database.
Can raise a DAException if there is some connection problem with the database.
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanonymizeUserData(HashGetter userData, DAOUsers dao, PoolKit pk) protected voidbody(AnonymizeUserEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidclearUserChanges(PoolKit pk, HashGetter userData) protected voidsaveUserChanges(HashGetter user, PoolKit poolKit) protected voidupdateAnonymizedUser(HashGetter userData, DAOUsers dao, PoolKit pk) protected voidupdateUser(DAOUsers dao, HashGetter user, PoolKit pk) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTAnonymizeUser
public BTAnonymizeUser()
-
-
Method Details
-
body
Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<AnonymizeUserEvent>- Parameters:
event- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
anonymizeUserData
protected void anonymizeUserData(HashGetter userData, DAOUsers dao, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateAnonymizedUser
protected void updateAnonymizedUser(HashGetter userData, DAOUsers dao, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
clearUserChanges
protected void clearUserChanges(PoolKit pk, HashGetter userData) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateUser
protected void updateUser(DAOUsers dao, HashGetter user, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
saveUserChanges
-