public interface ActivityServer
Modifier and Type | Method and Description |
---|---|
List<ActivityType> |
getActivityTypes(Context context)
This method retrieves a set of activity events associated
with the supplied context value.
|
List<ActivityType> |
getActivityTypes(Context context,
long from,
long to)
This method retrieves a set of activity events associated
with the supplied context value and time range.
|
ActivityUnit |
getActivityUnit(String id)
This method queries the server for an activity unit
with the supplied id.
|
List<ActivityType> |
query(QuerySpec query)
Deprecated.
No longer supported as it introduces a dependency between clients and the ActivityStore implementation
|
void |
store(List<ActivityUnit> activities)
This method stores the supplied activity events.
|
void store(List<ActivityUnit> activities) throws Exception
activities
- The activity eventsException
- Failed to store the activitiesActivityUnit getActivityUnit(String id) throws Exception
id
- The activity unit idException
- Failed to get the activity unitList<ActivityType> getActivityTypes(Context context) throws Exception
context
- The context valueException
- Failed to retrieve the activitiesList<ActivityType> getActivityTypes(Context context, long from, long to) throws Exception
context
- The context valuefrom
- The 'from' timestampto
- The 'to' timestamp, where 0 represents current timeException
- Failed to retrieve the activitiesList<ActivityType> query(QuerySpec query) throws Exception
query
- The queryException
- Failed to query the activitiesCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.