Package org.cyclos.impl.users
Interface ConnectedUserServiceLocal
-
- All Superinterfaces:
ConnectedUserService,Service
- All Known Implementing Classes:
ConnectedUserServiceImpl
public interface ConnectedUserServiceLocal extends ConnectedUserService
Local interface forConnectedUserService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountConnectedUsers(Role role)Counts visible connected users with the given roleintdisconnectUserAndOperators(User user)Disconnects a user and all his operatorsbooleanisOnline(BasicUser user)checks if this user is online.voidnotifySessionsOfPermissionChange(ProductOwner productOwner)Notify each session belonging to the given user or group that the permissions have changed-
Methods inherited from interface org.cyclos.services.users.ConnectedUserService
disconnect, disconnectBySessionTokens, getSearchData, search
-
-
-
-
Method Detail
-
countConnectedUsers
int countConnectedUsers(Role role)
Counts visible connected users with the given role
-
disconnectUserAndOperators
int disconnectUserAndOperators(User user)
Disconnects a user and all his operators
-
isOnline
boolean isOnline(BasicUser user)
checks if this user is online.- Returns:
trueif the user is the LoggedUser;falseif the loggedUser has no permission to view who's online; for other users it returns true if the requested user has a session which is not yet expired.
-
notifySessionsOfPermissionChange
void notifySessionsOfPermissionChange(ProductOwner productOwner)
Notify each session belonging to the given user or group that the permissions have changed
-
-