Package com.logicaldoc.audit
Class AuditUser
java.lang.Object
com.logicaldoc.audit.AuditUser
- All Implemented Interfaces:
com.logicaldoc.core.security.UserListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterStore
(com.logicaldoc.core.security.User user, com.logicaldoc.core.security.UserHistory transaction, Map<String, Object> dictionary) If the user is stored into the database,checks if some user must be notified of this creation.void
beforeStore
(com.logicaldoc.core.security.User user, com.logicaldoc.core.security.UserHistory transaction, Map<String, Object> dictionary) This method verifies if the user is not already stored into the database.
-
Constructor Details
-
AuditUser
public AuditUser()
-
-
Method Details
-
beforeStore
public void beforeStore(com.logicaldoc.core.security.User user, com.logicaldoc.core.security.UserHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceExceptionThis method verifies if the user is not already stored into the database. If so, we put an entry into the dictionary to recognizes the user after the store operation.- Specified by:
beforeStore
in interfacecom.logicaldoc.core.security.UserListener
- Throws:
com.logicaldoc.core.PersistenceException
-
afterStore
public void afterStore(com.logicaldoc.core.security.User user, com.logicaldoc.core.security.UserHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceExceptionIf the user is stored into the database,checks if some user must be notified of this creation.- Specified by:
afterStore
in interfacecom.logicaldoc.core.security.UserListener
- Throws:
com.logicaldoc.core.PersistenceException
-