Class UserResourceIdentifier
java.lang.Object
com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.UserResourceIdentifier
- All Implemented Interfaces:
ResourceIdentifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserResourceIdentifiercreate(com.atlassian.sal.api.user.UserKey userKey) static UserResourceIdentifiercreateForNonExistentUser(String userName) static UserResourceIdentifiercreateFromUsernameSource(com.atlassian.sal.api.user.UserKey userKey, String username) booleancom.atlassian.sal.api.user.UserKeyDeprecated.since 5.2.inthashCode()booleanbooleantoString()
-
Constructor Details
-
UserResourceIdentifier
Deprecated.since 5.2. Usecreate(UserKey)orcreateForNonExistentUser(String).
-
-
Method Details
-
getUsername
Deprecated.since 5.2. UsegetUserKey()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() -
getUnresolvedUsernameResourceIdentifier
-
toString
-
equals
-
hashCode
public int hashCode() -
create
-
createFromUsernameSource
public static UserResourceIdentifier createFromUsernameSource(com.atlassian.sal.api.user.UserKey userKey, String username) -
createForNonExistentUser
-