Package com.groiss.org
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 TypeMethodDescriptionvoid
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
Called after a login on an IUserSession has been taken place.- Parameters:
us
- the IUserSession , the id of the IUsersSession is also available via viaThreadContext.getSessionId()
-
afterLogout
Called after a login on an IUserSession has been taken place.- Parameters:
us
- the IUserSession. Can not be reliably accessed via ThreadContext
-