Interface MacSyncHelper


  • @ProviderType
    public interface MacSyncHelper
    Mac Sync Helper, provides utility methods
    • 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 resolver
        path - 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 Agent
        rr - Resource resolver
        macConfiguration - mac configuration
        pid - The pid of the access token provider