org.exoplatform.social.client.api.model
Enum RestActivity.Field

java.lang.Object
  extended by java.lang.Enum<RestActivity.Field>
      extended by org.exoplatform.social.client.api.model.RestActivity.Field
All Implemented Interfaces:
Serializable, Comparable<RestActivity.Field>
Enclosing interface:
RestActivity

public static enum RestActivity.Field
extends Enum<RestActivity.Field>

The fields that represent the activity object in json form.


Enum Constant Summary
ACTIVITY_STREAM
          the json field for activityStream
APP_ID
          the json field for appId.
BODY
          the json field for body.
COMMENTS
          the json field for Comments
CREATED_AT
          the json field for createdAt.
ID
          the json field for id.
IDENTITY_ID
          the json field for identityId.
LIKED
          the json field for liked.
LIKED_BY_IDENTITIES
          the json field for likedByIdentities
POSTED_TIME
          the json field for postedTime.
POSTER_IDENTITY
          the json field for posterIdentity.
PRIORITY
          the json field for priority.
TEMPLATE_PARAMS
          the json field for templateParams.
TITLE
          the json field for title.
TITLE_ID
          the json field for titleId.
TOTAL_NUMBER_OF_COMMENTS
          the json field for numberOfCommens
TOTAL_NUMBER_OF_LIKES
          the json field for numberOfLikes
TYPE
          the json field for type.
 
Method Summary
 String toString()
          emit the field as a json element.
static RestActivity.Field valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RestActivity.Field[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ID

public static final RestActivity.Field ID
the json field for id.


TITLE

public static final RestActivity.Field TITLE
the json field for title.


BODY

public static final RestActivity.Field BODY
the json field for body.


APP_ID

public static final RestActivity.Field APP_ID
the json field for appId.


TYPE

public static final RestActivity.Field TYPE
the json field for type.


POSTED_TIME

public static final RestActivity.Field POSTED_TIME
the json field for postedTime.


POSTER_IDENTITY

public static final RestActivity.Field POSTER_IDENTITY
the json field for posterIdentity.


CREATED_AT

public static final RestActivity.Field CREATED_AT
the json field for createdAt.


PRIORITY

public static final RestActivity.Field PRIORITY
the json field for priority.


TEMPLATE_PARAMS

public static final RestActivity.Field TEMPLATE_PARAMS
the json field for templateParams.


TITLE_ID

public static final RestActivity.Field TITLE_ID
the json field for titleId.


IDENTITY_ID

public static final RestActivity.Field IDENTITY_ID
the json field for identityId.


LIKED

public static final RestActivity.Field LIKED
the json field for liked.


LIKED_BY_IDENTITIES

public static final RestActivity.Field LIKED_BY_IDENTITIES
the json field for likedByIdentities


COMMENTS

public static final RestActivity.Field COMMENTS
the json field for Comments


TOTAL_NUMBER_OF_COMMENTS

public static final RestActivity.Field TOTAL_NUMBER_OF_COMMENTS
the json field for numberOfCommens


TOTAL_NUMBER_OF_LIKES

public static final RestActivity.Field TOTAL_NUMBER_OF_LIKES
the json field for numberOfLikes


ACTIVITY_STREAM

public static final RestActivity.Field ACTIVITY_STREAM
the json field for activityStream

Method Detail

values

public static RestActivity.Field[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RestActivity.Field c : RestActivity.Field.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RestActivity.Field valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
emit the field as a json element.

Overrides:
toString in class Enum<RestActivity.Field>
Returns:
the field name


Copyright © 2011 eXo Platform. All Rights Reserved.