public class VideoXMLObjectCreator extends java.lang.Object
Constructor and Description |
---|
VideoXMLObjectCreator(java.lang.Long seed) |
Modifier and Type | Method and Description |
---|---|
DeletedVideoList |
createDeletedVideoList(Limits limits) |
MediaObjectList |
createMediaObjectList(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes)
Create media object list using
MediaObject } class. |
VideoList |
createSearchResults(java.lang.String guid,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIds,
MediaObjectList mediaObjects)
Create example search results, making sure that one of the given userIds, mediaObjects and serviceTypes is
set for the videos, if userIds, mediaObjects or serviceTypes is null or empty, a random value will be generated.
|
VideoTaskResponse |
createTaskResponse(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes,
DataGroups dataGroups,
Limits limits,
java.lang.Long taskId,
AsyncTask.TaskType taskType) |
Timecode |
createTimecode(java.lang.Double previousEnd) |
TimecodeList |
createTimecodeList(Limits limits,
boolean sequential) |
Video |
createVideo(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
UserIdentity userIdentity) |
VideoList |
createVideoList(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
UserIdentity userIdentity) |
MediaObject |
createVideoMediaObject(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes) |
VideoParameters |
createVideoOptions()
Create video options for an analysis task.
|
CAContentCore.ServiceType |
createVideoServiceType() |
VideoTaskDetails |
createVideoTaskDetails(java.lang.Integer backendId,
DataGroups dataGroups,
Limits limits,
java.lang.Long taskId,
AsyncTask.TaskType taskType) |
AsyncTask.TaskType |
createVideoTaskDetailsType() |
java.lang.String |
generateFinishedCallbackUri() |
java.lang.String |
generateRedirectUrl(java.lang.String guid,
CAContentCore.ServiceType type) |
java.util.Random |
getRandom() |
VideoParameters.SequenceType |
getSequenceType() |
public VideoXMLObjectCreator(java.lang.Long seed)
seed
- for random generator, or null to use default (system time in nanoseconds)public Video createVideo(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, UserIdentity userIdentity)
analysisTypes
- dataGroups
- limits
- serviceTypes
- userIdentity
- public MediaObjectList createMediaObjectList(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes)
MediaObject
} class.
Note that regardless of the given analysis types, this will only return objects of type MediaUrlValidator.MediaType.VIDEO
or MediaUrlValidator.MediaType.AUDIO
analysisTypes
- dataGroups
- limits
- serviceTypes
- public java.lang.String generateRedirectUrl(java.lang.String guid, CAContentCore.ServiceType type)
guid
- type
- public CAContentCore.ServiceType createVideoServiceType()
public MediaObject createVideoMediaObject(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes)
analysisTypes
- dataGroups
- limits
- serviceTypes
- public Timecode createTimecode(java.lang.Double previousEnd)
previousEnd
- if not null, the start time will be after this timepublic TimecodeList createTimecodeList(Limits limits, boolean sequential)
limits
- sequential
- if true the timecodes will appear in sequential order, otherwise they are random and may cover duplicate time periodspublic VideoList createVideoList(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, UserIdentity userIdentity)
analysisTypes
- dataGroups
- limits
- serviceTypes
- userIdentity
- public DeletedVideoList createDeletedVideoList(Limits limits)
limits
- public VideoParameters createVideoOptions()
public VideoParameters.SequenceType getSequenceType()
public VideoTaskResponse createTaskResponse(java.util.Collection<PhotoParameters.AnalysisType> analysisTypes, DataGroups dataGroups, Limits limits, java.lang.Long taskId, AsyncTask.TaskType taskType)
analysisTypes
- dataGroups
- limits
- taskId
- if null, value is randomly generatedtaskType
- if null, value is randomly generatedpublic VideoTaskDetails createVideoTaskDetails(java.lang.Integer backendId, DataGroups dataGroups, Limits limits, java.lang.Long taskId, AsyncTask.TaskType taskType)
backendId
- if null, the value is randomly generateddataGroups
- limits
- taskId
- if null, the value is randomly generatedtaskType
- ANALYSIS or FEEDBACK, if null, type is chosen randomlyjava.lang.UnsupportedOperationException
- on bad typepublic java.lang.String generateFinishedCallbackUri()
public AsyncTask.TaskType createVideoTaskDetailsType()
public VideoList createSearchResults(java.lang.String guid, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIds, MediaObjectList mediaObjects)
guid
- dataGroups
- limits
- serviceTypes
- userIds
- mediaObjects
- public java.util.Random getRandom()
CAXMLObjectCreator.getRandom()
Copyright © 2015 Tampere University of Technology, Pori Department.