@ApplicationScoped public class RESTActivityServer extends Object
Constructor and Description |
---|
RESTActivityServer()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
ActivityServer |
getActivityServer()
This method returns the activity server.
|
javax.ws.rs.core.Response |
getActivityTypes(String type,
String value,
long from,
long to)
This method returns a list of ActivityType (activity event) objects associated with
the optional context type and value and optional time range.
|
javax.ws.rs.core.Response |
getActivityUnit(String id)
This method handles queries for activity events.
|
void |
init()
This method initializes the activity server REST service.
|
javax.ws.rs.core.Response |
query(String qspec)
Deprecated.
No longer supported as it introduces a dependency between clients and the ActivityStore implementation
|
void |
setActivityServer(ActivityServer as)
This method sets the activity server.
|
javax.ws.rs.core.Response |
store(String acts)
This method stores the supplied list of ActivityUnit objects.
|
@PostConstruct public void init()
public void setActivityServer(ActivityServer as)
as
- The activity serverpublic ActivityServer getActivityServer()
public javax.ws.rs.core.Response getActivityUnit(String id) throws Exception
id
- The idException
- Failed to query activity eventspublic javax.ws.rs.core.Response getActivityTypes(String type, String value, long from, long to) throws Exception
type
- The optional typevalue
- The optional valuefrom
- The optional 'from' timestampto
- The optional 'to' timestampException
- Failed to obtain activity typespublic javax.ws.rs.core.Response query(String qspec) throws Exception
qspec
- The query specException
- Failed to query activity eventsCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.