Interface ConnectedUserServiceLocal

    • Method Detail

      • 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:
        true if the user is the LoggedUser; false if 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