Interface MacSyncHelper


  • 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 MAC
      java.util.Map<java.lang.String,​java.lang.String> getCCUsers​(Resource currentResource)
      Get List of CC Users
      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).
    • 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 resolver
        path - 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 resolver
        macConfiguration - mac configuration
        pid - The pid of the access token provider