Interface UserListener
public interface UserListener
This interface defines hooks called before and after a particular event
occurs on the specified user.
Each methods has access to a dictionary map that can be used through the execution pipeline in order to carry needed informations among all listeners.
- Since:
- 5.1
- Author:
- Matteo Caruso - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterStore
(User user, UserHistory transaction, Map<String, Object> dictionary) Called after a user is stored in the databasevoid
beforeStore
(User user, UserHistory transaction, Map<String, Object> dictionary) Called before a user is stored in the database
-
Method Details
-
beforeStore
void beforeStore(User user, UserHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionCalled before a user is stored in the database- Parameters:
user
- The user to be storedtransaction
- Transaction informationsdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raises if some kind of error happens during execution
-
afterStore
void afterStore(User user, UserHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionCalled after a user is stored in the database- Parameters:
user
- The user to be storedtransaction
- Transaction informationsdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raises if some kind of error happens during execution
-