org.exoplatform.social.client.core.model
Class RestActivityStreamImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.json.simple.JSONObject
              extended by org.exoplatform.social.client.core.model.ModelImpl
                  extended by org.exoplatform.social.client.core.model.RestActivityStreamImpl
All Implemented Interfaces:
Serializable, Cloneable, Map, Model, RestActivityStream, org.json.simple.JSONAware, org.json.simple.JSONStreamAware

public class RestActivityStreamImpl
extends ModelImpl
implements RestActivityStream

Implementation of RestActivityStream.

Since:
Jun 29, 2011
Author:
hoatle (hoatlevan at gmail dot com)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface org.exoplatform.social.client.api.model.RestActivityStream
RestActivityStream.Field
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.exoplatform.social.client.core.model.ModelImpl
propertyChanges
 
Constructor Summary
RestActivityStreamImpl()
          Default constructor
RestActivityStreamImpl(String type, String prettyId, String fullName, String faviconUrl, String title, String permaLink)
          Constructor to set values.
 
Method Summary
 String getFaviconUrl()
          Gets the favicon url of the activity stream.
 String getFullName()
          Gets the full name of activity stream owner.
 String getPermaLink()
          Gets the permanent link for activity stream.
 String getPrettyId()
          Gets the pretty id from the activity stream.
 String getTitle()
          Gets activity stream's title.
 String getType()
          Gets the type of activity stream.
 void setFaviconUrl(String faviconUrl)
          Sets the favicon url for the activity stream.
 void setFullName(String fullName)
          Sets the full name for the activity stream owner.
 void setPermaLink(String permanLink)
          Sets the permanent link for activity stream.
 void setPrettyId(String prettyId)
          Sets the pretty id for the activity stream.
 void setTitle(String title)
          Sets the activity stream title.
 void setType(String type)
          Sets the type of activity stream.
 
Methods inherited from class org.exoplatform.social.client.core.model.ModelImpl
addPropertyChangeListener, addToListField, findPropertyChangeListeners, getField, getFieldAsList, getFieldAsMap, getFieldAsString, getFieldNames, hasField, isFieldMultikeyed, isFieldMultivalued, removePropertyChangeListener, setField
 
Methods inherited from class org.json.simple.JSONObject
escape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONString
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface org.json.simple.JSONAware
toJSONString
 
Methods inherited from interface org.json.simple.JSONStreamAware
writeJSONString
 

Constructor Detail

RestActivityStreamImpl

public RestActivityStreamImpl()
Default constructor


RestActivityStreamImpl

public RestActivityStreamImpl(String type,
                              String prettyId,
                              String fullName,
                              String faviconUrl,
                              String title,
                              String permaLink)
Constructor to set values.

Parameters:
type - the type
prettyId - the pretty id
faviconUrl - the favicon url
title - the title
permaLink - the permalink
Method Detail

getType

public String getType()
Gets the type of activity stream.

Specified by:
getType in interface RestActivityStream
Returns:
the type

setType

public void setType(String type)
Sets the type of activity stream.

Specified by:
setType in interface RestActivityStream
Parameters:
type - the type

getPrettyId

public String getPrettyId()
Gets the pretty id from the activity stream.

Specified by:
getPrettyId in interface RestActivityStream
Returns:
the pretty id

setPrettyId

public void setPrettyId(String prettyId)
Sets the pretty id for the activity stream.

Specified by:
setPrettyId in interface RestActivityStream
Parameters:
prettyId - the pretty id

getFullName

public String getFullName()
Gets the full name of activity stream owner.

Specified by:
getFullName in interface RestActivityStream
Returns:
the fullName of activity stream owner.

setFullName

public void setFullName(String fullName)
Sets the full name for the activity stream owner.

Specified by:
setFullName in interface RestActivityStream
Parameters:
fullName - the full name

getFaviconUrl

public String getFaviconUrl()
Gets the favicon url of the activity stream.

Specified by:
getFaviconUrl in interface RestActivityStream
Returns:
the favicon url

setFaviconUrl

public void setFaviconUrl(String faviconUrl)
Sets the favicon url for the activity stream.

Specified by:
setFaviconUrl in interface RestActivityStream
Parameters:
faviconUrl - the favicon url

getTitle

public String getTitle()
Gets activity stream's title.

Specified by:
getTitle in interface RestActivityStream
Returns:
the activity stream's title

setTitle

public void setTitle(String title)
Sets the activity stream title.

Specified by:
setTitle in interface RestActivityStream
Parameters:
title - the activity stream's title

getPermaLink

public String getPermaLink()
Gets the permanent link for activity stream.

Specified by:
getPermaLink in interface RestActivityStream
Returns:
the permanent link

setPermaLink

public void setPermaLink(String permanLink)
Sets the permanent link for activity stream.

Specified by:
setPermaLink in interface RestActivityStream
Parameters:
permanLink - the permanent link


Copyright © 2011-2012 eXo Platform. All Rights Reserved.