public final class CAReferenceCore extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addTask(PhotoTaskDetails taskDetails)
This performs a trivial check for the task contents, checking for the presence of a few key values.
|
static void |
addTaskAsyncCallback(PhotoTaskDetails details,
PhotoList photoList)
Call asynchronously the callback given in the details, returning an example task response
|
static void |
deletePhotos(UserIdentity authenticatedUser,
java.util.List<java.lang.String> guids) |
static void |
executeAsyncCallback(org.apache.http.client.methods.HttpPost post) |
static AnalysisBackend |
generateAnalysisBackend() |
static PhotoParameters |
generateAnalysisParameters() |
static BackendStatus |
generateBackendStatus() |
static BackendStatusList |
generateBackendStatusList(Limits limits) |
static PhotoFeedbackList |
generateFeedbackList(Limits limits) |
static MediaObject |
generateMediaObject(DataGroups dataGroups) |
static MediaObjectList |
generateMediaObjectList(DataGroups dataGroups,
Limits limits) |
static Photo |
generatePhoto(DataGroups dataGroups) |
static PhotoList |
generatePhotoList(DataGroups dataGroups,
Limits limits,
java.lang.Class<? extends PhotoList> cls) |
static PhotoTaskDetails |
generatePhotoTaskDetails(DataGroups dataGroups,
Limits limits,
AsyncTask.TaskType taskType) |
static ResultInfo |
generateResultInfo() |
static RedirectResponse |
generateTargetUrl(UserIdentity authenticatedUser,
CAContentCore.ServiceType serviceId,
java.lang.String guid) |
static PhotoTaskResponse |
generateTaskResponse(Limits limits) |
static VisualShape |
generateVisualShape() |
static Response |
getMediaObjects(UserIdentity authenticatedUser,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
java.util.List<java.lang.String> mediaObjectIds) |
static Response |
getPhotos(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 |
searchByContent(UserIdentity authenticatedUser,
java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes,
java.lang.String url,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilters)
client API variant
|
static Response |
searchByKeyword(UserIdentity authenticatedUser,
java.util.List<java.lang.String> keywords,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilters) |
static Response |
searchSimilarByContent(java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes,
java.lang.String url,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIds)
back-end API variant
|
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 void |
similarityFeedback(UserIdentity authenticatedUser,
PhotoFeedbackList feedbackList) |
static Response |
similarPhotosByObject(UserIdentity authenticatedUser,
MediaObjectList objects,
DataGroups dataGroups,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilters) |
static void |
taskFinished(PhotoTaskResponse response)
This performs a trivial check for the task contents, checking for the presence of a few key values.
|
static void |
updatePhotos(UserIdentity authenticatedUser,
PhotoList photoList) |
public static void taskFinished(PhotoTaskResponse response)
response
- public static void addTask(PhotoTaskDetails taskDetails)
taskDetails
- public static void addTaskAsyncCallback(PhotoTaskDetails details, PhotoList photoList)
details
- photoList
- PhotoTaskResponse
public static void executeAsyncCallback(org.apache.http.client.methods.HttpPost post)
post
- public static Response queryTaskDetails(java.lang.Integer backendId, java.lang.Long taskId, DataGroups dataGroups, Limits limits)
backendId
- taskId
- dataGroups
- limits
- public static Response queryTaskStatus(java.lang.Long taskId, DataGroups dataGroups, Limits limits)
taskId
- dataGroups
- limits
- public static Response searchSimilarByContent(java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes, java.lang.String url, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIds)
analysisTypes
- serviceTypes
- url
- userIds
- dataGroups
- limits
- 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
- not usedserviceTypes
- guid
- userIds
- dataGroups
- limits
- public static Response searchByKeyword(UserIdentity authenticatedUser, java.util.List<java.lang.String> keywords, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilters)
authenticatedUser
- keywords
- dataGroups
- limits
- serviceTypes
- userIdFilters
- 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 RedirectResponse generateTargetUrl(UserIdentity authenticatedUser, CAContentCore.ServiceType serviceId, java.lang.String guid)
authenticatedUser
- serviceId
- guid
- public static Response similarPhotosByObject(UserIdentity authenticatedUser, MediaObjectList objects, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilters)
authenticatedUser
- objects
- dataGroups
- limits
- serviceTypes
- userIdFilters
- public static void updatePhotos(UserIdentity authenticatedUser, PhotoList photoList)
photoList
- authenticatedUser
- public static Response searchByContent(UserIdentity authenticatedUser, java.util.EnumSet<PhotoParameters.AnalysisType> analysisTypes, java.lang.String url, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilters)
url
- serviceTypes
- authenticatedUser
- analysisTypes
- userIdFilters
- dataGroups
- limits
- public static Response getPhotos(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 similarityFeedback(UserIdentity authenticatedUser, PhotoFeedbackList feedbackList)
authenticatedUser
- feedbackList
- public static Response getMediaObjects(UserIdentity authenticatedUser, DataGroups dataGroups, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, java.util.List<java.lang.String> mediaObjectIds)
authenticatedUser
- dataGroups
- limits
- serviceTypes
- mediaObjectIds
- public static void deletePhotos(UserIdentity authenticatedUser, java.util.List<java.lang.String> guids)
authenticatedUser
- guids
- public static PhotoFeedbackList generateFeedbackList(Limits limits)
limits
- public static PhotoList generatePhotoList(DataGroups dataGroups, Limits limits, java.lang.Class<? extends PhotoList> cls) throws java.lang.IllegalArgumentException
dataGroups
- has only effect for photo list, if null or empty, data groups alllimits
- cls
- java.lang.IllegalArgumentException
public static MediaObjectList generateMediaObjectList(DataGroups dataGroups, Limits limits)
dataGroups
- has only effect for photo list, if null or empty, data groups alllimits
- public static PhotoTaskResponse generateTaskResponse(Limits limits)
limits
- public static PhotoTaskDetails generatePhotoTaskDetails(DataGroups dataGroups, Limits limits, AsyncTask.TaskType taskType) throws java.lang.IllegalArgumentException
dataGroups
- has only effect for photo list, if null or empty, data groups alllimits
- taskType
- java.lang.IllegalArgumentException
public static BackendStatusList generateBackendStatusList(Limits limits)
limits
- public static Photo generatePhoto(DataGroups dataGroups)
dataGroups
- has only effect for photo list, if null or empty, data groups allpublic static BackendStatus generateBackendStatus()
public static ResultInfo generateResultInfo()
public static MediaObject generateMediaObject(DataGroups dataGroups)
dataGroups
- has only effect for photo list, if null or empty, data groups allpublic static VisualShape generateVisualShape()
public static AnalysisBackend generateAnalysisBackend()
public static PhotoParameters generateAnalysisParameters()
Copyright © 2015 Tampere University of Technology, Pori Department.