@Deprecated public final class ContentAnalysisTestUtils extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_GROUPS_HREF
Deprecated.
data group for including href elements
|
static java.lang.String |
DATA_GROUPS_IMG
Deprecated.
data group for including img elements
|
static java.lang.String |
DATA_GROUPS_VIDEO
Deprecated.
data group for including video elements
|
Modifier and Type | Method and Description |
---|---|
static boolean |
analyzePage(UserIdentity authenticatedUser,
int[] backendIds,
DataGroups dataGroups,
java.lang.String url)
Deprecated.
|
static java.lang.Integer |
createAnalysisBackend(java.util.List<java.lang.String> capabilityString,
java.lang.String description,
java.lang.Boolean enabled,
DataGroups taskDatagroups,
java.lang.String url)
Deprecated.
|
static void |
enableBackend(java.lang.Integer backendId,
java.lang.Boolean enabled)
Deprecated.
|
static FacebookProfile |
extractFacebookProfile(DataGroups dataGroups,
UserIdentity userId)
Deprecated.
|
static TwitterProfile |
extractTwitterProfile(DataGroups dataGroups,
UserIdentity userId)
Deprecated.
|
static java.util.EnumSet<AnalysisBackend.Capability> |
fromCapabilityString(java.lang.String s)
Deprecated.
|
static java.lang.String |
fuzzyFile(java.io.InputStream file)
Deprecated.
|
static java.lang.String |
fuzzyUrl(java.lang.String url)
Deprecated.
|
static PicasaAlbumList |
getPicasaAlbums(UserIdentity authenticatedUser,
java.util.List<java.lang.String> albumIds,
boolean includeGUIDs,
boolean resolveNames)
Deprecated.
|
static java.lang.String |
getPicasaUri(UserIdentity authenticatedUser,
java.lang.String guid)
Deprecated.
|
static java.lang.String |
hasAccess(java.lang.String guid,
UserIdentity userId)
Deprecated.
|
static BackendDetails |
listAnalysisBackends(int[] backendId)
Deprecated.
|
static void |
modifyAnalysisBackend(java.lang.Integer backendId,
java.util.List<java.lang.String> capabilityString,
java.lang.String description,
java.lang.Boolean enabled,
DataGroups taskDatagroups,
java.lang.String url)
Deprecated.
|
static void |
removeAnalysisBackend(java.lang.Integer backendId)
Deprecated.
|
static void |
reschedulePhotoTask(int[] backendId,
java.lang.Long taskId)
Deprecated.
|
static void |
rescheduleVideoTask(int[] backendId,
java.lang.Long taskId)
Deprecated.
|
public static final java.lang.String DATA_GROUPS_HREF
public static final java.lang.String DATA_GROUPS_IMG
public static final java.lang.String DATA_GROUPS_VIDEO
public static java.util.EnumSet<AnalysisBackend.Capability> fromCapabilityString(java.lang.String s) throws java.lang.IllegalArgumentException
s
- can be a single capability or a list of capabilities separated by commajava.lang.IllegalArgumentException
public static java.lang.Integer createAnalysisBackend(java.util.List<java.lang.String> capabilityString, java.lang.String description, java.lang.Boolean enabled, DataGroups taskDatagroups, java.lang.String url)
capabilityString
- description
- enabled
- taskDatagroups
- url
- public static void modifyAnalysisBackend(java.lang.Integer backendId, java.util.List<java.lang.String> capabilityString, java.lang.String description, java.lang.Boolean enabled, DataGroups taskDatagroups, java.lang.String url)
backendId
- capabilityString
- description
- enabled
- taskDatagroups
- url
- public static void removeAnalysisBackend(java.lang.Integer backendId)
backendId
- public static java.lang.String hasAccess(java.lang.String guid, UserIdentity userId)
guid
- userId
- public static BackendDetails listAnalysisBackends(int[] backendId)
backendId
- public static FacebookProfile extractFacebookProfile(DataGroups dataGroups, UserIdentity userId) throws java.lang.IllegalArgumentException
dataGroups
- userId
- java.lang.IllegalArgumentException
public static TwitterProfile extractTwitterProfile(DataGroups dataGroups, UserIdentity userId) throws java.lang.IllegalArgumentException
dataGroups
- userId
- java.lang.IllegalArgumentException
public static void reschedulePhotoTask(int[] backendId, java.lang.Long taskId) throws java.lang.IllegalArgumentException
backendId
- taskId
- java.lang.IllegalArgumentException
public static void rescheduleVideoTask(int[] backendId, java.lang.Long taskId) throws java.lang.IllegalArgumentException
backendId
- taskId
- java.lang.IllegalArgumentException
public static void enableBackend(java.lang.Integer backendId, java.lang.Boolean enabled) throws java.lang.IllegalArgumentException
backendId
- enabled
- java.lang.IllegalArgumentException
public static java.lang.String getPicasaUri(UserIdentity authenticatedUser, java.lang.String guid) throws java.lang.IllegalArgumentException
authenticatedUser
- guid
- java.lang.IllegalArgumentException
- on bad valuespublic static PicasaAlbumList getPicasaAlbums(UserIdentity authenticatedUser, java.util.List<java.lang.String> albumIds, boolean includeGUIDs, boolean resolveNames) throws java.lang.IllegalArgumentException
authenticatedUser
- albumIds
- includeGUIDs
- resolveNames
- if true Picasa service is used to resolve album namesjava.lang.IllegalArgumentException
- on bad datapublic static boolean analyzePage(UserIdentity authenticatedUser, int[] backendIds, DataGroups dataGroups, java.lang.String url)
public static java.lang.String fuzzyFile(java.io.InputStream file)
file
- public static java.lang.String fuzzyUrl(java.lang.String url)
url
- Copyright © 2015 Tampere University of Technology, Pori Department.