com.atlassian.jira.rest.client.domain
Class Comment

java.lang.Object
  extended by com.atlassian.jira.rest.client.domain.Comment
All Implemented Interfaces:
AddressableEntity

public class Comment
extends Object
implements AddressableEntity

A JIRA comment

Since:
v0.1

Constructor Summary
Comment(URI self, String body, BasicUser author, BasicUser updateAuthor, org.joda.time.DateTime creationDate, org.joda.time.DateTime updateDate, Visibility visibility)
           
 
Method Summary
static Comment createWithGroupLevel(String body, String groupLevel)
           
static Comment createWithRoleLevel(String body, String roleLevel)
           
 boolean equals(Object obj)
           
 BasicUser getAuthor()
           
 String getBody()
           
 org.joda.time.DateTime getCreationDate()
           
 URI getSelf()
           
 BasicUser getUpdateAuthor()
           
 org.joda.time.DateTime getUpdateDate()
           
 Visibility getVisibility()
           
 int hashCode()
           
 String toString()
           
static Comment valueOf(String body)
           
 boolean wasUpdated()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment(URI self,
               String body,
               @Nullable
               BasicUser author,
               @Nullable
               BasicUser updateAuthor,
               org.joda.time.DateTime creationDate,
               org.joda.time.DateTime updateDate,
               Visibility visibility)
Method Detail

valueOf

public static Comment valueOf(String body)

createWithRoleLevel

public static Comment createWithRoleLevel(String body,
                                          String roleLevel)

createWithGroupLevel

public static Comment createWithGroupLevel(String body,
                                           String groupLevel)

wasUpdated

public boolean wasUpdated()

getBody

public String getBody()

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

getAuthor

@Nullable
public BasicUser getAuthor()

getUpdateAuthor

@Nullable
public BasicUser getUpdateAuthor()

getCreationDate

public org.joda.time.DateTime getCreationDate()

getUpdateDate

public org.joda.time.DateTime getUpdateDate()

getVisibility

@Nullable
public Visibility getVisibility()

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


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.