Class AuditUser

  • All Implemented Interfaces:
    com.logicaldoc.core.security.UserListener

    public class AuditUser
    extends Object
    implements com.logicaldoc.core.security.UserListener
    • Constructor Detail

      • AuditUser

        public AuditUser()
    • Method Detail

      • beforeStore

        public void beforeStore​(com.logicaldoc.core.security.User user,
                                com.logicaldoc.core.security.UserHistory transaction,
                                Map<String,​Object> dictionary)
                         throws Exception
        This 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 interface com.logicaldoc.core.security.UserListener
        Throws:
        Exception
      • afterStore

        public void afterStore​(com.logicaldoc.core.security.User user,
                               com.logicaldoc.core.security.UserHistory transaction,
                               Map<String,​Object> dictionary)
                        throws Exception
        If the user is stored into the database,checks if some user must be notified of this creation.
        Specified by:
        afterStore in interface com.logicaldoc.core.security.UserListener
        Throws:
        Exception