public class

PortalItemComment

extends Object
java.lang.Object
   ↳ com.esri.core.portal.PortalItemComment

Class Overview

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

Summary

Public Methods
boolean equals(Object obj)
static PortalItemComment fromJson(JsonParser parser)
Creates a PortalItemComment from a 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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static PortalItemComment fromJson (JsonParser parser)

Creates a PortalItemComment from a JSON parser.

Parameters
parser JsonParser: contains the JSON to parse
Returns
PortalItemComment new PortalItemComment or null if the JSON is invalid
Throws
Exception if unable to complete the request

public String getComment ()

Returns the text of the comment.

Returns
String text of the comment

public String getCommentId ()

Returns the ID of the comment.

Returns
String ID of the comment

public long getCreated ()

Returns the date of creation of the comment.

Returns
long date of creation of the comment

public String getOwner ()

Returns the owner of the comment.

Returns
String owner of the comment

public int hashCode ()

Returns
int

public String toString ()

Returns
String