Interface AccessClientServiceLocal

    • Method Detail

      • canActivateAccessClient

        boolean canActivateAccessClient​(AccessClientPrincipalType type,
                                        User user)
        Returns if the given user can activate an access client of the given type by checking if there are unassigned access clients or if it is possible to create a new one.
      • findByToken

        AccessClient findByToken​(Network network,
                                 String token)
        Finds an access client by token in the given network
      • findForActivation

        AccessClient findForActivation​(User user,
                                       String activationCode)
        Finds an access client for the given user for activation - needs to be in unassigned status
      • isVisible

        boolean isVisible​(AccessClient accessClient)
        Returns whether the given access client is visible to the logged user
      • listVisible

        List<AccessClient> listVisible​(User user,
                                       AccessClientStatus... status)
        Returns all visible access clients, ordered by type and then client names
        Parameters:
        status - If not null filter by those status. Otherwise returns all visible.
      • removeAll

        void removeAll​(User user)
        Removes all access clients of the given user