org.alfresco.mobile.android.api.model.impl
Class ActivityEntryImpl

java.lang.Object
  extended by org.alfresco.mobile.android.api.model.impl.ActivityEntryImpl
All Implemented Interfaces:
ActivityEntry

public class ActivityEntryImpl
extends Object
implements ActivityEntry

ActivityEntry :

Author:
Jean Marie Pascal

Constructor Summary
ActivityEntryImpl()
           
 
Method Summary
 GregorianCalendar getCreatedAt()
          Returns the timestamp in the session’s locale when the activity entry was created.
 String getCreatedBy()
          Returns the username of the person who posted the activity entry.
 Map<String,String> getData()
          Returns a map of all extra data specific to a certain type of activity entry.
 String getData(String key)
          Returns the value of a specific key available in the extra data.
 String getIdentifier()
          Returns the identifier of this specific activity entry.
 String getSiteShortName()
          Returns the identifier of this specific activity.
 String getType()
          Returns the type of the activity entry e.g.
static ActivityEntryImpl parseJson(Map<String,Object> jo)
          Parse Json Response from Alfresco REST API to create an ActivityEntry.
static ActivityEntryImpl parsePublicAPIJson(Map<String,Object> jo)
          Parse Json Response from Alfresco Public API to create an ActivityEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityEntryImpl

public ActivityEntryImpl()
Method Detail

parseJson

public static ActivityEntryImpl parseJson(Map<String,Object> jo)
Parse Json Response from Alfresco REST API to create an ActivityEntry.

Parameters:
jo - : json response that contains data from the repository
Returns:
ActivityEntry that contains informations about the activity.

parsePublicAPIJson

public static ActivityEntryImpl parsePublicAPIJson(Map<String,Object> jo)
Parse Json Response from Alfresco Public API to create an ActivityEntry.

Parameters:
jo - : json response that contains data from the repository
Returns:
ActivityEntry that contains informations about the activity.

getData

public Map<String,String> getData()
Returns a map of all extra data specific to a certain type of activity entry.

Specified by:
getData in interface ActivityEntry
Returns:
a map of extra data.

getData

public String getData(String key)
Returns the value of a specific key available in the extra data.

Specified by:
getData in interface ActivityEntry
Parameters:
key - key associated to a specific extra value
Returns:
the data

getIdentifier

public String getIdentifier()
Returns the identifier of this specific activity entry.

Specified by:
getIdentifier in interface ActivityEntry
Returns:
the activity entry identifier.

getSiteShortName

public String getSiteShortName()
Returns the identifier of this specific activity.

Specified by:
getSiteShortName in interface ActivityEntry
Returns:
the site short name associated to this activity entry.

getCreatedBy

public String getCreatedBy()
Returns the username of the person who posted the activity entry.

Specified by:
getCreatedBy in interface ActivityEntry
Returns:
the created by value

getCreatedAt

public GregorianCalendar getCreatedAt()
Returns the timestamp in the session’s locale when the activity entry was created.

Specified by:
getCreatedAt in interface ActivityEntry
Returns:
the created at value

getType

public String getType()
Returns the type of the activity entry e.g. “file-added”.

Specified by:
getType in interface ActivityEntry
Returns:
the type of the activity entry.


Copyright © 2012 Alfresco Software. All Rights Reserved.