public final class ContentStorageCore extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ContentStorageCore.MetadataRemovalJob
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
|
static class |
ContentStorageCore.MetadataSynchronizationJob
A schedulable task used for synchronizing metadata
|
static class |
ContentStorageCore.SynchronizationTaskDetails
Implementation of AbstractTaskDetails used internally for scheduling synchronization tasks.
|
Modifier and Type | Method and Description |
---|---|
static MediaList |
addUrls(UserIdentity authenticatedUser,
int[] backendIds,
java.util.List<java.lang.String> urls) |
static RedirectResponse |
generateTargetUrl(UserIdentity authenticatedUser,
CAContentCore.ServiceType serviceType,
java.lang.String guid)
resolves dynamic /rest/r? redirection URL to static access URL
|
static ContentStorage |
getContentStorage(boolean autoScheduleEnabled,
CAContentCore.ServiceType serviceType) |
static void |
removeMetadata(UserIdentity authenticatedUser,
java.util.Collection<java.lang.String> guids,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes)
Removes all (photo) metadata associated with the given user.
|
static java.lang.Long |
synchronize(UserIdentity authenticatedUser,
int[] backendIds,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes) |
public static java.lang.Long synchronize(UserIdentity authenticatedUser, int[] backendIds, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes)
authenticatedUser
- backendIds
- serviceTypes
- public static RedirectResponse generateTargetUrl(UserIdentity authenticatedUser, CAContentCore.ServiceType serviceType, java.lang.String guid)
authenticatedUser
- serviceType
- guid
- public static final ContentStorage getContentStorage(boolean autoScheduleEnabled, CAContentCore.ServiceType serviceType) throws java.lang.UnsupportedOperationException
autoScheduleEnabled
- serviceType
- java.lang.UnsupportedOperationException
public static void removeMetadata(UserIdentity authenticatedUser, java.util.Collection<java.lang.String> guids, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes)
authenticatedUser
- guids
- optional filterserviceTypes
- public static MediaList addUrls(UserIdentity authenticatedUser, int[] backendIds, java.util.List<java.lang.String> urls)
authenticatedUser
- backendIds
- urls
- Copyright © 2015 Tampere University of Technology, Pori Department.