public final class VideoContentCore extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.util.EnumSet<AnalysisBackend.Capability> | DEFAULT_CAPABILITIESdefault capabilities for video tasks | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | generateRedirectUrl(java.lang.String guid,
                   CAContentCore.ServiceType type) | 
| static RedirectResponse | generateTargetUrl(UserIdentity authenticatedUser,
                 CAContentCore.ServiceType serviceType,
                 java.lang.String guid)resolves dynamic /rest/r? redirection URL to static access URL | 
| static VideoList | getVideos(UserIdentity authenticatedUser,
         java.util.List<java.lang.String> guids,
         DataGroups dataGroups,
         Limits limits,
         java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
         long[] userIdFilters) | 
| static VideoTaskDetails | queryTaskDetails(java.lang.Integer backendId,
                java.lang.Long taskId,
                DataGroups dataGroups,
                Limits limits)This method is called by back-ends to retrieve a list of videos to be analyzed. | 
| static void | scheduleBackendFeedback(java.lang.Integer backendId,
                       VideoList videos,
                       java.lang.Long taskId)Create and schedule the task for all capable back-ends included in the task designated by the task Id. | 
| static java.lang.Long | scheduleTask(VideoTaskDetails details)Note: if the details already contain a taskId, the task will NOT be re-added to the database, but simply re-scheduled. | 
| static void | taskFinished(VideoTaskResponse response) | 
public static final java.util.EnumSet<AnalysisBackend.Capability> DEFAULT_CAPABILITIES
public static java.lang.String generateRedirectUrl(java.lang.String guid, CAContentCore.ServiceType type)
guid - type - public static RedirectResponse generateTargetUrl(UserIdentity authenticatedUser, CAContentCore.ServiceType serviceType, java.lang.String guid)
authenticatedUser - serviceType - guid - public static VideoTaskDetails queryTaskDetails(java.lang.Integer backendId, java.lang.Long taskId, DataGroups dataGroups, Limits limits)
backendId - taskId - dataGroups - limits - public static void taskFinished(VideoTaskResponse response) throws java.lang.IllegalArgumentException
response - java.lang.IllegalArgumentExceptionpublic static VideoList getVideos(UserIdentity authenticatedUser, java.util.List<java.lang.String> guids, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilters)
authenticatedUser - guids - dataGroups - limits - serviceTypes - userIdFilters - public static java.lang.Long scheduleTask(VideoTaskDetails details)
DEFAULT_CAPABILITIESdetails - public static void scheduleBackendFeedback(java.lang.Integer backendId, VideoList videos, java.lang.Long taskId)
backendId - the back-end that send the task finished call, this back-end is automatically omitted from the list of target back-endsvideos - videos returned in task finished calltaskId - the id of the finished analysis taskCopyright © 2015 Tampere University of Technology, Pori Department.