com.atlassian.jira.rest.client.api.domain
Class BasicUser

java.lang.Object
  extended by com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
      extended by com.atlassian.jira.rest.client.api.domain.BasicUser
All Implemented Interfaces:
AddressableEntity, NamedEntity
Direct Known Subclasses:
User

public class BasicUser
extends AddressableNamedEntity

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.
 
Fields inherited from class com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
name, self
 
Constructor Summary
BasicUser(java.net.URI self, java.lang.String name, java.lang.String displayName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDisplayName()
           
protected  com.google.common.base.Objects.ToStringHelper getToStringHelper()
           
 int hashCode()
           
 boolean isSelfUriIncomplete()
           
 
Methods inherited from class com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
getName, getSelf, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

BasicUser

public BasicUser(java.net.URI self,
                 java.lang.String name,
                 java.lang.String displayName)
Method Detail

getDisplayName

public java.lang.String getDisplayName()

getToStringHelper

protected com.google.common.base.Objects.ToStringHelper getToStringHelper()
Overrides:
getToStringHelper in class AddressableNamedEntity

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AddressableNamedEntity

hashCode

public int hashCode()
Overrides:
hashCode in class AddressableNamedEntity

isSelfUriIncomplete

public boolean isSelfUriIncomplete()
Returns:
true when URI returned from server was incomplete. See INCOMPLETE_URI for more detail.


Copyright © 2013 Atlassian. All Rights Reserved.