Package com.adobe.cq.dam.mac.sync.helper
Interface MacSyncHelper
Mac Sync Helper, provides utility methods
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanSync(ResourceResolver resourceResolver, String path) Returns whether the current user can sync a folder with MACgetCCUsers(Resource currentResource) Get List of CC UsersvoidupdateReplicationAgentProviderPid(SyncAgent macSyncAgent, ResourceResolver rr, MACTenantConfiguration macConfiguration, String pid) Each replication agent which uses OAuth server to server authentication should be bound to a specific access token provider.
-
Method Details
-
getCCUsers
Get List of CC Users- Parameters:
currentResource- current resource- Returns:
- Map of CC users, email to full user name
-
canSync
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, 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
-