Class UserResourceIdentifier
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.UserResourceIdentifier
-
- All Implemented Interfaces:
ResourceIdentifier
public class UserResourceIdentifier extends Object implements ResourceIdentifier
-
-
Constructor Summary
Constructors Constructor Description UserResourceIdentifier(String username)
Deprecated.since 5.2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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
equals(Object o)
UnresolvedUsernameResourceIdentifier
getUnresolvedUsernameResourceIdentifier()
com.atlassian.sal.api.user.UserKey
getUserKey()
String
getUsername()
Deprecated.since 5.2.int
hashCode()
boolean
hasUserKey()
boolean
isCreatedFromUsernameSource()
String
toString()
-
-
-
Constructor Detail
-
UserResourceIdentifier
@Deprecated public UserResourceIdentifier(String username)
Deprecated.since 5.2. Usecreate(UserKey)
orcreateForNonExistentUser(String)
.
-
-
Method Detail
-
getUsername
@Deprecated public String 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
public UnresolvedUsernameResourceIdentifier getUnresolvedUsernameResourceIdentifier()
-
create
public static UserResourceIdentifier create(com.atlassian.sal.api.user.UserKey userKey)
-
createFromUsernameSource
public static UserResourceIdentifier createFromUsernameSource(com.atlassian.sal.api.user.UserKey userKey, String username)
-
createForNonExistentUser
public static UserResourceIdentifier createForNonExistentUser(String userName)
-
-