Package com.adobe.cq.dam.mac.sync.helper
Interface MacSyncHelper
-
@ProviderType public interface MacSyncHelper
Mac Sync Helper, provides utility methods
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canSync(ResourceResolver resourceResolver, java.lang.String path)
Returns whether the current user can sync a folder with MACjava.util.Map<java.lang.String,java.lang.String>
getCCUsers(Resource currentResource)
Get List of CC Usersvoid
updateReplicationAgentProviderPid(SyncAgent macSyncAgent, ResourceResolver rr, MACTenantConfiguration macConfiguration, java.lang.String pid)
Each replication agent which uses OAuth server to server authentication should be bound to a specific access token provider.
-
-
-
Method Detail
-
getCCUsers
java.util.Map<java.lang.String,java.lang.String> getCCUsers(Resource currentResource)
Get List of CC Users- Parameters:
currentResource
- current resource- Returns:
- Map of CC users, email to full user name
-
canSync
boolean canSync(ResourceResolver resourceResolver, java.lang.String path)
Returns whether the current user can sync a folder with MAC- Parameters:
resourceResolver
- user resource resolverpath
- the path of resource- Returns:
- whether the current user can sync a folder with MAC
-
updateReplicationAgentProviderPid
void updateReplicationAgentProviderPid(SyncAgent macSyncAgent, ResourceResolver rr, MACTenantConfiguration macConfiguration, java.lang.String pid)
Each replication agent which uses OAuth server to server authentication should be bound to a specific access token provider. This method sets the access token provider pid as a property on the replication agent.- Parameters:
macSyncAgent
- the DAM Sync Agentrr
- Resource resolvermacConfiguration
- mac configurationpid
- The pid of the access token provider
-
-