public final class FBJContentCore extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FBJContentCore.TagRemovalJob
A job for removing all tags of a single user, generated by the Facebook Jazz service.
|
static class |
FBJContentCore.WeightModifierRemovalJob
Job for removing content for the user designated by data key JOB_KEY_USER_ID for services designated by data key JOB_KEY_SERVICE_TYPES
|
Modifier and Type | Field and Description |
---|---|
static java.util.EnumSet<AnalysisBackend.Capability> |
DEFAULT_CAPABILITIES
default capabilities for Facebook tasks
|
Modifier and Type | Method and Description |
---|---|
static MediaObjectList |
parseRankStrings(java.util.List<java.lang.String> ranks)
Parses the ranks into a
MediaObjectList . |
static MediaObjectList |
retrieveTagsForUser(UserIdentity authenticatedUser,
DataGroups dataGroups,
Limits limits,
SortOptions sortOptions) |
static WeightModifierList |
retrieveTagWeights(UserIdentity authenticatedUser,
java.lang.Long userId) |
static java.lang.Long |
scheduleTask(FBFeedbackTaskDetails details) |
static void |
setRanks(UserIdentity authenticatedUser,
MediaObjectList rankedObjects) |
static void |
setTagWeights(UserIdentity userIdentity,
WeightModifierList weightModifierList) |
static java.lang.Long |
summarize(FBSummarizationTaskDetails details)
Create and schedule facebook summarization task with the given details.
|
static void |
taskFinished(FBTaskResponse response) |
public static final java.util.EnumSet<AnalysisBackend.Capability> DEFAULT_CAPABILITIES
public static MediaObjectList retrieveTagsForUser(UserIdentity authenticatedUser, DataGroups dataGroups, Limits limits, SortOptions sortOptions)
authenticatedUser
- dataGroups
- limits
- sortOptions
- public static MediaObjectList parseRankStrings(java.util.List<java.lang.String> ranks) throws java.lang.IllegalArgumentException
MediaObjectList
. Non-existing media object ids will be ignored.ranks
- list of rank strings with ; as separator between media object id and rank valuejava.lang.IllegalArgumentException
- on invalid rank stringpublic static void setRanks(UserIdentity authenticatedUser, MediaObjectList rankedObjects) throws java.lang.NumberFormatException, java.lang.IllegalArgumentException
authenticatedUser
- rankedObjects
- java.lang.NumberFormatException
java.lang.IllegalArgumentException
public static java.lang.Long scheduleTask(FBFeedbackTaskDetails details) throws java.lang.UnsupportedOperationException
details
- java.lang.UnsupportedOperationException
- on unsupported task typejava.lang.IllegalArgumentException
- on failed schedulepublic static java.lang.Long summarize(FBSummarizationTaskDetails details)
DEFAULT_CAPABILITIES
details
- details of the task, if profile object is given, it will be ignored.public static WeightModifierList retrieveTagWeights(UserIdentity authenticatedUser, java.lang.Long userId)
authenticatedUser
- userId
- public static void setTagWeights(UserIdentity userIdentity, WeightModifierList weightModifierList)
userIdentity
- weightModifierList
- public static void taskFinished(FBTaskResponse response) throws java.lang.IllegalArgumentException
response
- java.lang.IllegalArgumentException
Copyright © 2015 Tampere University of Technology, Pori Department.