com.atlassian.jira.rest.client.domain
Class BasicUser
java.lang.Object
com.atlassian.jira.rest.client.domain.BasicUser
- All Implemented Interfaces:
- AddressableEntity, NamedEntity
- Direct Known Subclasses:
- User
public class BasicUser
- extends Object
- implements AddressableEntity, NamedEntity
Basic information about a JIRA user
- Since:
- v0.1
|
Field Summary |
static URI |
INCOMPLETE_URI
This value is used to mark incomplete user URI - when server response with user without selfUri set. |
INCOMPLETE_URI
public static URI INCOMPLETE_URI
- This value is used to mark incomplete user URI - when server response with user without selfUri set.
This may happen due to bug in JIRA REST API - for example in JRA-30263 bug, JIRA REST API will return
user without selfUri for deleted author of worklog entry.
BasicUser
public BasicUser(URI self,
String name,
String displayName)
getName
public String getName()
- Specified by:
getName in interface NamedEntity
getDisplayName
public String getDisplayName()
getSelf
public URI getSelf()
- Specified by:
getSelf in interface AddressableEntity
- Returns:
- URI to this resource or (usually) its complete version - when partial representation
is embedded in other resources
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
isSelfUriIncomplete
public boolean isSelfUriIncomplete()
- Returns:
- true when URI returned from server was incomplete. See
INCOMPLETE_URI for more detail.
Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.