public final class SensorsCore extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FileDetails |
createFile(core.tut.pori.users.UserIdentity authenticatedUser,
java.lang.Long backendId,
java.io.InputStream file) |
static java.lang.String |
createTask(core.tut.pori.users.UserIdentity authenticatedUser,
SensorTask task)
Status information for back ends (if given) is ignored and set to
TaskBackend.Status.NOT_STARTED
Task identifier, if given is ignored and a new identifier is generated. |
static MeasurementList |
getMeasurements(core.tut.pori.users.UserIdentity authenticatedUser,
long[] backendIdFilter,
java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter,
core.tut.pori.http.parameters.DataGroups dataGroups,
core.tut.pori.http.parameters.Limits limits,
java.util.List<java.lang.String> measurementIdFilter,
java.util.List<java.lang.String> taskIds) |
static java.lang.String |
modifyTask(core.tut.pori.users.UserIdentity authenticatedUser,
SensorTask task)
Task identifier, if given is ignored and a new identifier is generated.
|
static void |
taskFinished(core.tut.pori.users.UserIdentity authenticatedUser,
SensorTask task) |
public static void taskFinished(core.tut.pori.users.UserIdentity authenticatedUser, SensorTask task) throws java.lang.IllegalArgumentException
authenticatedUser
- task
- java.lang.IllegalArgumentException
- on invalid taskpublic static java.lang.String createTask(core.tut.pori.users.UserIdentity authenticatedUser, SensorTask task) throws java.lang.IllegalArgumentException
TaskBackend.Status.NOT_STARTED
Task identifier, if given is ignored and a new identifier is generated.authenticatedUser
- task
- java.lang.IllegalArgumentException
- on invalid taskpublic static java.lang.String modifyTask(core.tut.pori.users.UserIdentity authenticatedUser, SensorTask task) throws java.lang.IllegalArgumentException
authenticatedUser
- task
- java.lang.IllegalArgumentException
- on invalid taskpublic static FileDetails createFile(core.tut.pori.users.UserIdentity authenticatedUser, java.lang.Long backendId, java.io.InputStream file) throws java.lang.IllegalArgumentException
authenticatedUser
- backendId
- file
- java.lang.IllegalArgumentException
- on bad datapublic static MeasurementList getMeasurements(core.tut.pori.users.UserIdentity authenticatedUser, long[] backendIdFilter, java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter, core.tut.pori.http.parameters.DataGroups dataGroups, core.tut.pori.http.parameters.Limits limits, java.util.List<java.lang.String> measurementIdFilter, java.util.List<java.lang.String> taskIds) throws java.lang.IllegalArgumentException
authenticatedUser
- backendIdFilter
- createdFilter
- dataGroups
- valid data groups are: , (only the measurement details are given without data points, this is the default), (data points included in the response)limits
- measurementIdFilter
- taskIds
- java.lang.IllegalArgumentException
- on invalid parametersCopyright © 2015-2018 Tampere University of Technology, Pori Department.