Package com.adobe.cq.dam.mac.sync.helper
Interface MacSyncHelper
- 
public interface MacSyncHelperMac Sync Helper, provides utility methods 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanSync(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 UsersvoidupdateReplicationAgentProviderPid(SyncAgent macSyncAgent, ResourceResolver rr, com.adobe.cq.dam.mac.sync.helper.impl.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 (GRANITE-9611). 
 - 
 
- 
- 
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 containing email and full username.
 
 
- 
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, com.adobe.cq.dam.mac.sync.helper.impl.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 (GRANITE-9611). This method sets the access token provider pid as a property on the replication agent.- Parameters:
 macSyncAgent-rr- Resource resolvermacConfiguration- mac configurationpid- The pid of the access token provider
 
 - 
 
 -