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 UserResourceIdentifier
create
(com.atlassian.sal.api.user.UserKey userKey) static UserResourceIdentifier
createForNonExistentUser
(String userName) static UserResourceIdentifier
createFromUsernameSource
(com.atlassian.sal.api.user.UserKey userKey, String username) boolean
com.atlassian.sal.api.user.UserKey
Deprecated.since 5.2.int
hashCode()
boolean
boolean
toString()
-
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
-