com.day.cq.activitystreams.api
Interface Activity


Deprecated. Use Activity instead.

public interface Activity

Activity represents a user activity object.


Method Summary
 Activity addObject(ActivityObject obj)
          Deprecated. Adds an ActivityObject
 Activity addTarget(ActivityTarget obj)
          Deprecated. Adds an ActivityTarget
 String getContent()
          Deprecated. Gets the content
 Long getCreated()
          Deprecated. Gets the created
 String getCreatedBy()
          Deprecated. Gets the createdBy
 String getDescription()
          Deprecated. Gets the description
 String getLink()
          Deprecated. Gets the link
 String getNoCache()
          Deprecated. Gets the noCache
 Collection<ActivityObject> getObjects()
          Deprecated. Gets the ActivityObject of the activity
 String getPath()
          Deprecated. Gets the path
 String getProperty(String name)
          Deprecated. Gets the property value based on a property name (generic getter).
 String getResourceType()
          Deprecated. Gets the resource type
 String getStreamName()
          Deprecated. Gets the streamName
 Collection<ActivityTarget> getTargets()
          Deprecated. Gets the ActivityTarget of the activity
 String getTitle()
          Deprecated. Gets the title
 String getVerb()
          Deprecated. Gets the verb
 Activity setContent(String content)
          Deprecated. Sets the content
 Activity setCreated(Long created)
          Deprecated. Sets the created
 Activity setCreatedBy(String createdBy)
          Deprecated. Sets the createdBy
 Activity setDescription(String description)
          Deprecated. Sets the description
 Activity setLink(String link)
          Deprecated. Sets the link
 Activity setNoCache(String noCache)
          Deprecated. Sets the noCache
 Activity setProperty(String name, String value)
          Deprecated. Sets the property value based on a property name (generic setter).
 Activity setStreamName(String streamName)
          Deprecated. Sets the streamName
 Activity setTitle(String title)
          Deprecated. Sets the title
 Activity setVerb(String verb)
          Deprecated. Sets the verb
 JSONObject toJSON()
          Deprecated. Gets the JSONObject representing the activity.
 

Method Detail

getTitle

String getTitle()
Deprecated. 
Gets the title

Returns:
The title

setTitle

Activity setTitle(String title)
Deprecated. 
Sets the title

Parameters:
title - The new title
Returns:
The updated Activity

getDescription

String getDescription()
Deprecated. 
Gets the description

Returns:
The description

setDescription

Activity setDescription(String description)
Deprecated. 
Sets the description

Parameters:
description - The new description
Returns:
The updated Activity

getContent

String getContent()
Deprecated. 
Gets the content

Returns:
The content

setContent

Activity setContent(String content)
Deprecated. 
Sets the content

Parameters:
content - The new content
Returns:
The updated Activity

getVerb

String getVerb()
Deprecated. 
Gets the verb

Returns:
The verb

setVerb

Activity setVerb(String verb)
Deprecated. 
Sets the verb

Parameters:
verb - The new verb
Returns:
The updated Activity

getLink

String getLink()
Deprecated. 
Gets the link

Returns:
The link

setLink

Activity setLink(String link)
Deprecated. 
Sets the link

Parameters:
link - The new link
Returns:
The updated Activity

getStreamName

String getStreamName()
Deprecated. 
Gets the streamName

Returns:
The streamName

setStreamName

Activity setStreamName(String streamName)
Deprecated. 
Sets the streamName

Parameters:
streamName - The new streamName
Returns:
The updated Activity

getNoCache

String getNoCache()
Deprecated. 
Gets the noCache

Returns:
The noCache

setNoCache

Activity setNoCache(String noCache)
Deprecated. 
Sets the noCache

Parameters:
noCache - The new noCache
Returns:
The updated Activity

getCreated

Long getCreated()
Deprecated. 
Gets the created

Returns:
The created

setCreated

Activity setCreated(Long created)
Deprecated. 
Sets the created

Parameters:
created - The new created
Returns:
The updated Activity

getCreatedBy

String getCreatedBy()
Deprecated. 
Gets the createdBy

Returns:
The createdBy

setCreatedBy

Activity setCreatedBy(String createdBy)
Deprecated. 
Sets the createdBy

Parameters:
createdBy - The new createdBy
Returns:
The updated Activity

getObjects

Collection<ActivityObject> getObjects()
Deprecated. 
Gets the ActivityObject of the activity

Returns:
The objects

addObject

Activity addObject(ActivityObject obj)
Deprecated. 
Adds an ActivityObject

Parameters:
obj - The ActivityObject to add
Returns:
The updated Activity

getTargets

Collection<ActivityTarget> getTargets()
Deprecated. 
Gets the ActivityTarget of the activity

Returns:
The objects

addTarget

Activity addTarget(ActivityTarget obj)
Deprecated. 
Adds an ActivityTarget

Parameters:
obj - The ActivityTarget to add
Returns:
The updated Activity

getProperty

String getProperty(String name)
Deprecated. 
Gets the property value based on a property name (generic getter).

Parameters:
name - The name of the property
Returns:
The property value. Null if property does not exist.

setProperty

Activity setProperty(String name,
                     String value)
Deprecated. 
Sets the property value based on a property name (generic setter).

Parameters:
name - The name of the property
value - The value of the property
Returns:
The updated Activity

getPath

String getPath()
Deprecated. 
Gets the path

Returns:
The path

getResourceType

String getResourceType()
Deprecated. 
Gets the resource type

Returns:
The resource type

toJSON

JSONObject toJSON()
                  throws JSONException
Deprecated. 
Gets the JSONObject representing the activity.

Returns:
The JSON object
Throws:
JSONException


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.