org.apache.shindig.extras.as.core.model
Class ActivityObjectImpl

java.lang.Object
  extended by org.apache.shindig.extras.as.core.model.ActivityObjectImpl
All Implemented Interfaces:
ActivityObject

public class ActivityObjectImpl
extends Object
implements ActivityObject

ActivityObjectImpl class.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.extras.as.opensocial.model.ActivityObject
ActivityObject.Field
 
Constructor Summary
ActivityObjectImpl()
          A simple implementation of an ActivtyObject
 
Method Summary
 ActionLink getAction()
          Returns an ActionLink for this object
 List<ActivityObject> getAttached()
          Gets the list of Attached Activities for this entry
 List<String> getDownstreamDuplicateId()
          Get the list of downstream duplicate Ids
 String getId()
          Gets the absolute URI that uniquely identifies the object
 ActivityObject getInReplyTo()
          Get the Activity this item is a response to
 MediaLink getMedia()
          Get the link to a media item
 String getName()
          
 String getPermalink()
          Get the permanent link
 List<ActivityObject> getReaction()
          Gets the list of reaction Activities for this entry
 List<ActivityObject> getReply()
          Gets the list of reply Activities for this entry
 String getStandardLink()
          Return a standard link string
 String getSummary()
          Gets the human-readable summary for this object.
 List<String> getType()
          Returns a list of Type strings
 List<String> getUpstreamDuplicateId()
          Get the list of upstream duplicate Ids
 void setAction(ActionLink action)
          Sets the ActionLink for this object
 void setAttached(List<ActivityObject> attached)
          Sets the list of Attached Activities for this entry
 void setDownstreamDuplicateId(List<String> downstreamDuplicateId)
          Set the list of downstream duplicate Ids
 void setId(String id)
          Set the absolute URI that uniquely identifies the object
 void setInReplyTo(ActivityObject inReplyTo)
          Set the Activity this item is a response to
 void setMedia(MediaLink media)
          Set the link to a media item
 void setName(String name)
          Sets the name
 void setPermalink(String permalink)
          Set the permanent link
 void setReaction(List<ActivityObject> reaction)
          Sets the list of reaction Activities for this entry
 void setReply(List<ActivityObject> reply)
          Sets the list of reply Activities for this entry
 void setStandardLink(String standardLink)
          Set the standard link string
 void setSummary(String summary)
          Sets the human-readable summary for this object.
 void setType(List<String> type)
          set the list of Type strings
 void setUpstreamDuplicateId(List<String> upstreamDuplicateId)
          Set the list of upstream duplicate Ids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityObjectImpl

public ActivityObjectImpl()
A simple implementation of an ActivtyObject

Method Detail

getId

public String getId()
Gets the absolute URI that uniquely identifies the object

Specified by:
getId in interface ActivityObject
Returns:
a non-null string

setId

public void setId(String id)
Set the absolute URI that uniquely identifies the object

Specified by:
setId in interface ActivityObject
Parameters:
id - a non-null string

getName

public String getName()

Specified by:
getName in interface ActivityObject
Returns:
the human-readable name fo the object

setName

public void setName(String name)
Sets the name

Specified by:
setName in interface ActivityObject
Parameters:
name - a human-readable name

getSummary

public String getSummary()
Gets the human-readable summary for this object.

Specified by:
getSummary in interface ActivityObject
Returns:
the summary

setSummary

public void setSummary(String summary)
Sets the human-readable summary for this object.

Specified by:
setSummary in interface ActivityObject
Parameters:
summary - a summary

getMedia

public MediaLink getMedia()
Get the link to a media item

Specified by:
getMedia in interface ActivityObject
Returns:
a MediaLink object.

setMedia

public void setMedia(MediaLink media)
Set the link to a media item

Specified by:
setMedia in interface ActivityObject
Parameters:
media - a MediaLink object.

getPermalink

public String getPermalink()
Get the permanent link

Specified by:
getPermalink in interface ActivityObject
Returns:
a permalink string, possibly null

setPermalink

public void setPermalink(String permalink)
Set the permanent link

Specified by:
setPermalink in interface ActivityObject
Parameters:
permalink - a permalink string, possibly null

getType

public List<String> getType()
Returns a list of Type strings

Specified by:
getType in interface ActivityObject
Returns:
a list of Type strings

setType

public void setType(List<String> type)
set the list of Type strings

Specified by:
setType in interface ActivityObject
Parameters:
type - a list of Type strings

getInReplyTo

public ActivityObject getInReplyTo()
Get the Activity this item is a response to

Specified by:
getInReplyTo in interface ActivityObject
Returns:
a ActivityObject

setInReplyTo

public void setInReplyTo(ActivityObject inReplyTo)
Set the Activity this item is a response to

Specified by:
setInReplyTo in interface ActivityObject
Parameters:
inReplyTo - a ActivityObject object.

getAttached

public List<ActivityObject> getAttached()
Gets the list of Attached Activities for this entry

Specified by:
getAttached in interface ActivityObject
Returns:
a list of ActivityObjects

setAttached

public void setAttached(List<ActivityObject> attached)
Sets the list of Attached Activities for this entry

Specified by:
setAttached in interface ActivityObject
Parameters:
attached - a list of ActivityObjects

getReply

public List<ActivityObject> getReply()
Gets the list of reply Activities for this entry

Specified by:
getReply in interface ActivityObject
Returns:
a list of ActivityObjects

setReply

public void setReply(List<ActivityObject> reply)
Sets the list of reply Activities for this entry

Specified by:
setReply in interface ActivityObject
Parameters:
reply - a list of ActivityObjects

getReaction

public List<ActivityObject> getReaction()
Gets the list of reaction Activities for this entry

Specified by:
getReaction in interface ActivityObject
Returns:
a list of ActivityObjects

setReaction

public void setReaction(List<ActivityObject> reaction)
Sets the list of reaction Activities for this entry

Specified by:
setReaction in interface ActivityObject
Parameters:
reaction - a list of ActivityObjects

getAction

public ActionLink getAction()
Returns an ActionLink for this object

Specified by:
getAction in interface ActivityObject
Returns:
a ActionLink object.

setAction

public void setAction(ActionLink action)
Sets the ActionLink for this object

Specified by:
setAction in interface ActivityObject
Parameters:
action - a ActionLink object.

getUpstreamDuplicateId

public List<String> getUpstreamDuplicateId()
Get the list of upstream duplicate Ids

Specified by:
getUpstreamDuplicateId in interface ActivityObject
Returns:
a list of strings

setUpstreamDuplicateId

public void setUpstreamDuplicateId(List<String> upstreamDuplicateId)
Set the list of upstream duplicate Ids

Specified by:
setUpstreamDuplicateId in interface ActivityObject
Parameters:
upstreamDuplicateId - a list of strings containing duplicate Ids

getDownstreamDuplicateId

public List<String> getDownstreamDuplicateId()
Get the list of downstream duplicate Ids

Specified by:
getDownstreamDuplicateId in interface ActivityObject
Returns:
a list of strings

setDownstreamDuplicateId

public void setDownstreamDuplicateId(List<String> downstreamDuplicateId)
Set the list of downstream duplicate Ids

Specified by:
setDownstreamDuplicateId in interface ActivityObject
Parameters:
downstreamDuplicateId - a list of strings containing duplicate Ids

getStandardLink

public String getStandardLink()
Return a standard link string

Specified by:
getStandardLink in interface ActivityObject
Returns:
the standard link

setStandardLink

public void setStandardLink(String standardLink)
Set the standard link string

Specified by:
setStandardLink in interface ActivityObject
Parameters:
standardLink - the standard link


Copyright © 2007-2012. All Rights Reserved.