Class UserResourceIdentifier

    • Method Detail

      • getUsername

        @Deprecated
        public String getUsername()
        Deprecated.
        since 5.2. Use getUserKey()
        Return the username if available, or look it up from the UserKey if required
      • isCreatedFromUsernameSource

        public boolean isCreatedFromUsernameSource()
        Returns:
        true if this identifier was created from a source that specified the user as a username (rather than a userkey), false otherwise
      • hasUserKey

        public boolean hasUserKey()
      • getUserKey

        public com.atlassian.sal.api.user.UserKey getUserKey()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • createFromUsernameSource

        public static UserResourceIdentifier createFromUsernameSource​(com.atlassian.sal.api.user.UserKey userKey,
                                                                      String username)