public final class TwitterPhotoStorage extends ContentStorage
| Modifier and Type | Class and Description |
|---|---|
static class |
TwitterPhotoStorage.TwitterEntry
A class that represents a single Twitter content entry.
|
ContentStorage.ContentStorageListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METADATA_TWITTER_ID
media object
MediaObject.MediaObjectType.METADATA name for twitter id |
static java.lang.String |
METADATA_TWITTER_SCREEN_NAME
media object
MediaObject.MediaObjectType.METADATA name for twitter screen name |
static CAContentCore.ServiceType |
SERVICE_TYPE
Service type declaration for this storage
|
| Constructor and Description |
|---|
TwitterPhotoStorage()
Create a Twitter photo storage with default autoschedule options.
|
TwitterPhotoStorage(boolean autoSchedule) |
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<AnalysisBackend.Capability> |
getBackendCapabilities() |
CAContentCore.ServiceType |
getServiceType() |
java.lang.String |
getTargetUrl(AccessDetails details) |
void |
removeMetadata(UserIdentity userId,
java.util.Collection<java.lang.String> guids)
Remove the synchronized content
|
boolean |
synchronizeAccount(UserIdentity userId)
Note: the synchronization is only one-way, from Twitter to front-end,
no information will be transmitted to the other direction.
|
boolean |
synchronizeAccount(UserIdentity userId,
java.util.Collection<java.lang.String> screenNames)
Note: the synchronization is only one-way, from Twitter to front-end,
no information will be transmitted to the other direction.
|
getBackends, getBackends, getContentStorageListener, isAutoSchedule, setBackends, setBackends, setContentStorageListenerpublic static final java.lang.String METADATA_TWITTER_ID
MediaObject.MediaObjectType.METADATA name for twitter idpublic static final java.lang.String METADATA_TWITTER_SCREEN_NAME
MediaObject.MediaObjectType.METADATA name for twitter screen namepublic static final CAContentCore.ServiceType SERVICE_TYPE
public TwitterPhotoStorage()
public TwitterPhotoStorage(boolean autoSchedule)
autoSchedule - public java.util.EnumSet<AnalysisBackend.Capability> getBackendCapabilities()
getBackendCapabilities in class ContentStoragepublic java.lang.String getTargetUrl(AccessDetails details)
getTargetUrl in class ContentStoragepublic void removeMetadata(UserIdentity userId, java.util.Collection<java.lang.String> guids)
ContentStorageremoveMetadata in class ContentStorageuserId - this user's metadata will be removed from the front-endguids - optional list of GUIDs, if null, everything is removedpublic boolean synchronizeAccount(UserIdentity userId)
synchronizeAccount in class ContentStorageuserId - public boolean synchronizeAccount(UserIdentity userId, java.util.Collection<java.lang.String> screenNames)
userId - screenNames - use the given collection of screen names instead of the authenticated user's account for synchronizationpublic CAContentCore.ServiceType getServiceType()
getServiceType in class ContentStorageCopyright © 2015 Tampere University of Technology, Pori Department.