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

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

public class Comment
extends java.lang.Object
implements AddressableEntity

A JIRA comment

Since:
v0.1

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

Constructor Detail

Comment

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

valueOf

public static Comment valueOf(java.lang.String body)

createWithRoleLevel

public static Comment createWithRoleLevel(java.lang.String body,
                                          java.lang.String roleLevel)

createWithGroupLevel

public static Comment createWithGroupLevel(java.lang.String body,
                                           java.lang.String groupLevel)

wasUpdated

public boolean wasUpdated()

getBody

public java.lang.String getBody()

getId

@Nullable
public java.lang.Long getId()

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

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 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


Copyright © 2013 Atlassian. All Rights Reserved.