Package com.adobe.cq.dam.mac.sync.api
Interface DAMSyncService
-
public interface DAMSyncService
Provides an interface to setup synchronization of DAM Folder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMACSharedResource(java.lang.String resourcePath)
Checks if resource is shared across system.void
publishResourcesToMP(java.util.List<java.lang.String> resourcePaths, ResourceResolver resolver)
Replicates resources from this instance to media portal instancevoid
registerDAMFolder(java.lang.String folderPath, ResourceResolver resolver)
Registers a new DAM folder from this instance to be synced with Adobe Marketing Cloud.void
unpublishResourcesFromMP(java.util.List<java.lang.String> resourcePaths, ResourceResolver resolver)
Unpublish resources from media portal instancevoid
unregisterDAMFolder(java.lang.String folderPath, ResourceResolver resolver)
Unregisters a DAM folder from this instance in order to cancel its synchronisation with Adobe Marketing Cloud.
-
-
-
Method Detail
-
registerDAMFolder
void registerDAMFolder(java.lang.String folderPath, ResourceResolver resolver)
Registers a new DAM folder from this instance to be synced with Adobe Marketing Cloud.- Parameters:
folderPath
- the folder pathresolver
- Resource Resolver instance
-
publishResourcesToMP
void publishResourcesToMP(java.util.List<java.lang.String> resourcePaths, ResourceResolver resolver)
Replicates resources from this instance to media portal instance- Parameters:
resourcePaths
-resolver
-
-
unpublishResourcesFromMP
void unpublishResourcesFromMP(java.util.List<java.lang.String> resourcePaths, ResourceResolver resolver)
Unpublish resources from media portal instance- Parameters:
resourcePaths
-resolver
-
-
unregisterDAMFolder
void unregisterDAMFolder(java.lang.String folderPath, ResourceResolver resolver)
Unregisters a DAM folder from this instance in order to cancel its synchronisation with Adobe Marketing Cloud.- Parameters:
folderPath
- the folder pathresolver
- Resource Resolver instance
-
isMACSharedResource
boolean isMACSharedResource(java.lang.String resourcePath)
Checks if resource is shared across system.- Parameters:
resourcePath
- the resource at path to be checked- Returns:
- true, if asset is shared
-
-