You are here

Login/LogoutListener

interface: com.activiti.api.security.LoginListener and com.activiti.api.security.LogoutListener

Maven module: activiti-app-logic

An implementation of this class will get a callback when a user logs in or logs out.

Example:

package com.activiti.extension.bean;

@Component
public class MyLoginListener implements LoginListener {

        private static final Logger logger = LoggerFactory.getLogger(GfkLoginListener.class);

        public void onLogin(User user) {

                logger.info("User " + user.getFullName() + " has logged in");

        }

}

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.