Interface UserUpdate

    • Method Detail

      • setProjectsOrder

        void setProjectsOrder​(long userId,
                              List<String> projectsOrder)
                       throws UserNotFoundException
        Sets order of the projects.
        Parameters:
        userId - id of a user
        projectsOrder - identificators of all projects in the order specified by user. The order will be reset to default (system) if null or empty.
        Throws:
        UserNotFoundException - if specified user no longer exists
      • setVisibleProjects

        void setVisibleProjects​(long userId,
                                Collection<String> visibleProjects)
                         throws UserNotFoundException
        Sets projects visible for specified user
        Parameters:
        userId - id of a user
        visibleProjects - collection of identifiers of visible projects
        Throws:
        UserNotFoundException - if specified user no longer exists
      • setProjectsVisibility

        void setProjectsVisibility​(long userId,
                                   @NotNull
                                   Collection<String> projectIds,
                                   boolean isVisible)
        Set visibility state for selected projects. Doesn't affect other projects nor project order.
        Parameters:
        userId -
        projectIds -
        isVisible -
      • persistLastLoginTimestamp

        void persistLastLoginTimestamp​(long userId,
                                       Date timestamp)
                                throws UserNotFoundException
        Note: login timestamp will be persisted with some delay.
        Parameters:
        userId - user id
        timestamp - timestamp
        Throws:
        UserNotFoundException
      • notifyUserChanged

        void notifyUserChanged​(@NotNull
                               SUser user)
      • notifyUserPropertyChanged

        void notifyUserPropertyChanged​(@NotNull
                                       SUser user,
                                       @NotNull
                                       PropertyKey propertyKey)
      • notifyUserRolesChanged

        void notifyUserRolesChanged​(@NotNull
                                    SUser user)
      • notifyUserPermissionsMayHaveChanged

        void notifyUserPermissionsMayHaveChanged​(@NotNull
                                                 SUser user)
      • blockStateChanged

        void blockStateChanged​(@NotNull
                               SUser user)