Interface UserEx

    • Method Detail

      • updatePermissions

        void updatePermissions()
        Forces this user to recompute its permissions.
      • isHasHiddenProjects

        boolean isHasHiddenProjects()
        Returns whether the user has any hidden (i.e. configured to be not-visible) projects.
        Returns:
        true if the user has any hidden projects
      • isConfiguredVisibleProjects

        boolean isConfiguredVisibleProjects()
        Returns whether the user has configured visible projects.
        Returns:
        true if the user has configured visible projects
      • getFilteredVisibleBuildTypes

        @NotNull
        SortedMap<SProject,​List<SBuildType>> getFilteredVisibleBuildTypes​(@Nullable
                                                                                BuildTypeFilter filter)
        Returns sorted map of build configurations per project. The build configurations are sorted according to user settings.
        Parameters:
        filter - filter of build configurations, can be null
        Returns:
        sorted map of build types per project
        Since:
        5.1
      • resetBuildTypesOrder

        void resetBuildTypesOrder​(@NotNull
                                  SProject project)
        Resets the build types order settings to defaults.
        Parameters:
        project - the project
        Since:
        6.0
      • hasPassword

        boolean hasPassword()
        Returns true if user has password, false otherwise (e.g. if it was created by NT domain or LDAP login module)
        Returns:
      • isPseudoUser

        boolean isPseudoUser()
      • setEmailIsVerified

        boolean setEmailIsVerified​(@NotNull
                                   String email)
        Mark user`s email as verified if it's equal to email passed in parameter.
        Returns:
        true if verified email was set, false otherwise
      • getVerifiedEmail

        @Nullable
        String getVerifiedEmail()
        Returns null if user doesn't have email specified or his email is not verified.
      • setCreationInProgress

        void setCreationInProgress​(boolean inProgress)
      • init

        void init​(@NotNull
                  String username,
                  String name,
                  String email,
                  Long lastLogin,
                  boolean hasPassword)
      • resetBlocks

        void resetBlocks()
        Reset cached blocks
      • resetCachedProperties

        void resetCachedProperties()
        Reset cached blocks
      • resetCachedVcsUsernames

        void resetCachedVcsUsernames()
        Reset cached blocks
      • setAttribute

        void setAttribute​(@NotNull
                          String attributeKey,
                          @NotNull
                          String attributeValue)
        Set user attribute
      • getAttribute

        @Nullable
        String getAttribute​(@NotNull
                            String attributeKey)
        Get user attribute
        Returns:
        user attribute or null if there is no attribute with such key
      • getAttributes

        @NotNull
        Map<String,​String> getAttributes()
        Get all user attributes
        Returns:
        user attributes or an empty map
      • deleteAttribute

        void deleteAttribute​(@NotNull
                             String attributeKey)
        Delete user attribute
      • resetCachedAttributes

        void resetCachedAttributes()
        Reset cached user attributes