Package org.cyclos.impl.users
Interface ConnectedUserServiceLocal
-
- All Superinterfaces:
ConnectedUserService,Service
public interface ConnectedUserServiceLocal extends ConnectedUserService
Local interface forConnectedUserService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Map<Role,Integer>countConnectedUsers(Set<Role> roles, boolean forSessionData)Counts the connected users.intcountConnectedUsers(Role role)Deprecated.usecountConnectedUsers(Set, boolean)insteadintdisconnectUserAndOperators(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
@Deprecated int countConnectedUsers(Role role)
Deprecated.usecountConnectedUsers(Set, boolean)insteadCounts visible connected users with the given role
-
countConnectedUsers
Map<Role,Integer> countConnectedUsers(Set<Role> roles, boolean forSessionData)
Counts the connected users. Only accept basic roles, as perRole.isBasic(). If roles is empty or null, returns for all basic roles. if forSessionData is true, applies the visibility constraints of the logged user. Guarantees that the returned map contains an entry for each requested 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
-
-