Interface LoginListener


public interface LoginListener
Allows to perform actions after login or logout on a IUserSession. E.g. to setup roles specific for a usersession depending on some context. c.f. OrgData.addRoleToSession(Role, OrgUnit). Is activated if the configured authorization class implements the LoginListener interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called after a login on an IUserSession has been taken place.
    void
    Called after a login on an IUserSession has been taken place.
  • Method Details

    • afterLogin

      void afterLogin(IUserSession us)
      Called after a login on an IUserSession has been taken place.
      Parameters:
      us - the IUserSession , the id of the IUsersSession is also available via via ThreadContext.getSessionId()
    • afterLogout

      void afterLogout(IUserSession us)
      Called after a login on an IUserSession has been taken place.
      Parameters:
      us - the IUserSession. Can not be reliably accessed via ThreadContext