public final class VideoReferenceCore extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addTask(VideoTaskDetails taskDetails)
This performs a trivial check for the task contents, checking for the presence of a few key values.
|
static void |
addTaskAsyncCallback(VideoTaskDetails details,
VideoList videoList)
Call asynchronously the callback given in the details, returning an example task response
|
static RedirectResponse |
generateTargetUrl(UserIdentity authenticatedUser,
CAContentCore.ServiceType serviceId,
java.lang.String guid) |
static VideoTaskResponse |
generateTaskResponse(Limits limits) |
static Timecode |
generateTimecode() |
static TimecodeList |
generateTimecodeList(Limits limits) |
static Video |
generateVideo(DataGroups dataGroups) |
static VideoList |
generateVideoList(DataGroups dataGroups,
Limits limits,
java.lang.Class<? extends VideoList> cls) |
static VideoParameters |
generateVideoOptions() |
static VideoTaskDetails |
generateVideoTaskDetails(DataGroups dataGroups,
Limits limits,
AsyncTask.TaskType taskType) |
static Response |
getVideos(UserIdentity authenticatedUser,
java.util.List<java.lang.String> guids,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilter) |
static Response |
queryTaskDetails(java.lang.Integer backendId,
java.lang.Long taskId,
DataGroups dataGroups,
Limits limits) |
static Response |
queryTaskStatus(java.lang.Long taskId,
DataGroups dataGroups,
Limits limits) |
static Response |
searchSimilarById(java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes,
java.lang.String guid,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIds)
Back-end API variation of search by GUID
|
static Response |
searchSimilarById(UserIdentity authenticatedUser,
java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes,
java.lang.String guid,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilters)
Client API variation of search by GUID
|
static Response |
similarVideosByObject(UserIdentity authenticatedUser,
MediaObjectList objects,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilters) |
static void |
taskFinished(VideoTaskResponse response)
This performs a trivial check for the task contents, checking for the presence of a few key values.
|
public static RedirectResponse generateTargetUrl(UserIdentity authenticatedUser, CAContentCore.ServiceType serviceId, java.lang.String guid)
authenticatedUser
- serviceId
- guid
- public static Video generateVideo(DataGroups dataGroups)
dataGroups
- public static VideoList generateVideoList(DataGroups dataGroups, Limits limits, java.lang.Class<? extends VideoList> cls)
dataGroups
- limits
- cls
- public static VideoTaskDetails generateVideoTaskDetails(DataGroups dataGroups, Limits limits, AsyncTask.TaskType taskType)
dataGroups
- limits
- taskType
- public static Timecode generateTimecode()
public static TimecodeList generateTimecodeList(Limits limits)
limits
- public static VideoParameters generateVideoOptions()
public static VideoTaskResponse generateTaskResponse(Limits limits)
limits
- public static void taskFinished(VideoTaskResponse response)
response
- public static Response queryTaskDetails(java.lang.Integer backendId, java.lang.Long taskId, DataGroups dataGroups, Limits limits)
backendId
- taskId
- dataGroups
- limits
- public static Response similarVideosByObject(UserIdentity authenticatedUser, MediaObjectList objects, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilters)
authenticatedUser
- objects
- dataGroups
- limits
- serviceTypes
- userIdFilters
- public static Response getVideos(UserIdentity authenticatedUser, java.util.List<java.lang.String> guids, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilter)
authenticatedUser
- guids
- dataGroups
- limits
- serviceTypes
- userIdFilter
- public static void addTask(VideoTaskDetails taskDetails)
taskDetails
- public static Response queryTaskStatus(java.lang.Long taskId, DataGroups dataGroups, Limits limits)
taskId
- dataGroups
- limits
- public static void addTaskAsyncCallback(VideoTaskDetails details, VideoList videoList) throws java.lang.UnsupportedOperationException
details
- videoList
- java.lang.UnsupportedOperationException
- on unsupported task detailsVideoTaskResponse
public static Response searchSimilarById(UserIdentity authenticatedUser, java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes, java.lang.String guid, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilters)
authenticatedUser
- analysisTypes
- guid
- dataGroups
- limits
- serviceTypes
- userIdFilters
- public static Response searchSimilarById(java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes, java.lang.String guid, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIds)
analysisTypes
- serviceTypes
- guid
- userIds
- dataGroups
- limits
- Copyright © 2015 Tampere University of Technology, Pori Department.