public class ActivityEntryImpl extends Object implements ActivityEntry
Constructor and Description |
---|
ActivityEntryImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static ActivityEntryImpl parseJson(Map<String,Object> jo)
jo
- : json response that contains data from the repositorypublic static ActivityEntryImpl parsePublicAPIJson(Map<String,Object> jo)
jo
- : json response that contains data from the repositorypublic Map<String,String> getData()
getData
in interface ActivityEntry
public String getData(String key)
getData
in interface ActivityEntry
key
- key associated to a specific extra valuepublic String getIdentifier()
getIdentifier
in interface ActivityEntry
public String getSiteShortName()
getSiteShortName
in interface ActivityEntry
public String getCreatedBy()
getCreatedBy
in interface ActivityEntry
public GregorianCalendar getCreatedAt()
getCreatedAt
in interface ActivityEntry
public String getType()
getType
in interface ActivityEntry
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.