com.esri.core.portal
Class PortalItemComment

java.lang.Object
  extended by com.esri.core.portal.PortalItemComment

public class PortalItemComment
extends Object

Class that holds the content from a comment on a PortalItem such as owner, comment, created date.

Since:
1.0

Method Summary
 boolean equals(Object obj)
          
static PortalItemComment fromJson(org.codehaus.jackson.JsonParser parser)
          Creates PortalItemcomment from the json parser.
 String getComment()
          Returns the text of the comment.
 String getCommentId()
          Returns the id of the comment.
 long getCreated()
          Returns the date of creation of the comment.
 String getOwner()
          Returns the owner of the comment.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

fromJson

public static PortalItemComment fromJson(org.codehaus.jackson.JsonParser parser)
                                  throws Exception
Creates PortalItemcomment from the json parser.

Parameters:
parser - the json to parse
Returns:
new PortalItemComment or null if the json is invalid.
Throws:
Exception - if unable to complete the request.
Since:
1.0

getOwner

public String getOwner()
Returns the owner of the comment.

Returns:
The owner of the comment
Since:
1.0

getCommentId

public String getCommentId()
Returns the id of the comment.

Returns:
The id of the comment
Since:
1.0

getComment

public String getComment()
Returns the text of the comment.

Returns:
The text of the comment
Since:
1.0

getCreated

public long getCreated()
Returns the date of creation of the comment.

Returns:
The date of creation of the comment
Since:
1.0

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.