public abstract class ContentStorage extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ContentStorage.ContentStorageListener
A listener interface, which can be used in combination with ContentStorage, either with or without task auto schedule.
|
Constructor and Description |
---|
ContentStorage()
Create new storage with autoschedule set to true
|
ContentStorage(boolean autoSchedule) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.EnumSet<AnalysisBackend.Capability> |
getBackendCapabilities() |
BackendStatusList |
getBackends() |
BackendStatusList |
getBackends(java.util.EnumSet<AnalysisBackend.Capability> allOf) |
ContentStorage.ContentStorageListener |
getContentStorageListener() |
abstract CAContentCore.ServiceType |
getServiceType() |
abstract java.lang.String |
getTargetUrl(AccessDetails details) |
boolean |
isAutoSchedule() |
abstract void |
removeMetadata(UserIdentity userId,
java.util.Collection<java.lang.String> guids)
Remove the synchronized content
|
void |
setBackends(BackendStatusList backends) |
void |
setBackends(java.util.List<AnalysisBackend> backends) |
void |
setContentStorageListener(ContentStorage.ContentStorageListener listener) |
abstract boolean |
synchronizeAccount(UserIdentity userId) |
public ContentStorage(boolean autoSchedule)
autoSchedule
- public ContentStorage()
public BackendStatusList getBackends()
public BackendStatusList getBackends(java.util.EnumSet<AnalysisBackend.Capability> allOf)
allOf
- public void setBackends(BackendStatusList backends)
backends
- the backends to setpublic void setBackends(java.util.List<AnalysisBackend> backends)
backends
- all backends will be added with status NOT_STARTEDpublic boolean isAutoSchedule()
public ContentStorage.ContentStorageListener getContentStorageListener()
public void setContentStorageListener(ContentStorage.ContentStorageListener listener)
listener
- the listener to setpublic abstract CAContentCore.ServiceType getServiceType()
public abstract java.lang.String getTargetUrl(AccessDetails details)
details
- public abstract void removeMetadata(UserIdentity userId, java.util.Collection<java.lang.String> guids)
userId
- this user's metadata will be removed from the front-endguids
- optional list of GUIDs, if null, everything is removedpublic abstract boolean synchronizeAccount(UserIdentity userId)
userId
- public abstract java.util.EnumSet<AnalysisBackend.Capability> getBackendCapabilities()
Copyright © 2015 Tampere University of Technology, Pori Department.