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, setContentStorageListener
public 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 ContentStorage
public java.lang.String getTargetUrl(AccessDetails details)
getTargetUrl
in class ContentStorage
public void removeMetadata(UserIdentity userId, java.util.Collection<java.lang.String> guids)
ContentStorage
removeMetadata
in class ContentStorage
userId
- 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 ContentStorage
userId
- 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 ContentStorage
Copyright © 2015 Tampere University of Technology, Pori Department.