public class AlertsXMLObjectCreator extends java.lang.Object
Constructor and Description |
---|
AlertsXMLObjectCreator(java.lang.Long seed) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createGUID() |
Alert |
generateAlert(long[] alertGroupId,
java.util.Collection<java.lang.String> alertType,
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,
Location location,
java.lang.Double range) |
AlertList |
generateAlertList(long[] alertGroupId,
java.util.Collection<java.lang.String> alertType,
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,
Location location,
java.lang.Double range) |
java.util.Date |
generateCreatedTimestamp(java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter) |
FileDetails |
generateFileDetails() |
FileDetailsList |
generateFileDetailsList(core.tut.pori.http.parameters.Limits limits) |
Location |
generateLocation(Location source,
java.lang.Double range) |
java.util.Date |
generateValidUntil() |
java.util.Random |
getRandom() |
public AlertsXMLObjectCreator(java.lang.Long seed)
seed
- for random generator, or null to use default (system time in nanoseconds)public java.util.Random getRandom()
public AlertList generateAlertList(long[] alertGroupId, java.util.Collection<java.lang.String> alertType, 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, Location location, java.lang.Double range)
alertGroupId
- alertType
- createdFilter
- dataGroups
- limits
- location
- range
- public Alert generateAlert(long[] alertGroupId, java.util.Collection<java.lang.String> alertType, 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, Location location, java.lang.Double range)
alertGroupId
- alertType
- createdFilter
- dataGroups
- limits
- location
- range
- public Location generateLocation(Location source, java.lang.Double range)
source
- if null, random location is returnedrange
- public FileDetailsList generateFileDetailsList(core.tut.pori.http.parameters.Limits limits)
limits
- public FileDetails generateFileDetails()
public java.util.Date generateCreatedTimestamp(java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter)
createdFilter
- If multiple values are given, the interval will be selected randomly from the given values. If null, a random time between unix epoch and the current time is selectedpublic java.util.Date generateValidUntil()
public java.lang.String createGUID()
Copyright © 2015-2018 Tampere University of Technology, Pori Department.