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 java.lang.Object
- implements AddressableEntity, NamedEntity
Basic information about a JIRA user
- Since:
- v0.1
|
Field Summary |
static java.net.URI |
INCOMPLETE_URI
This value is used to mark incomplete user URI - when server response with user without selfUri set. |
|
Constructor Summary |
BasicUser(java.net.URI self,
java.lang.String name,
java.lang.String displayName)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
INCOMPLETE_URI
public static java.net.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(java.net.URI self,
java.lang.String name,
java.lang.String displayName)
getName
public java.lang.String getName()
- Specified by:
getName in interface NamedEntity
getDisplayName
public java.lang.String getDisplayName()
getSelf
public java.net.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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.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.