Interface IMyDataEnvironmentInitializer

All Known Subinterfaces:
IMyDataEnvironmentFullFace

public interface IMyDataEnvironmentInitializer
This interface covers the initialization of a MyDataEnvironment
  • Method Details

    • initializeCloud

      IMyDataEnvironment initializeCloud(SolutionId solutionId, URI cloudPmpUrl, OAuthCredentials authentication) throws InitializationException
      Initialize with cloud mode (cloud Pmp, cloud Pdp)
      Parameters:
      solutionId - the solutionId of the solution this IMyDataEnvironment will be associated with
      cloudPmpUrl - URL to the cloud Pmp
      authentication - authentication
      Returns:
      initialized IMyDataEnvironment instance
      Throws:
      InitializationException - when initialization fails
    • initializeLocalWithCloudSync

      IMyDataEnvironment initializeLocalWithCloudSync(SolutionId solutionId, URI cloudPmpUrl, OAuthCredentials authentication, String timezone, boolean cacheEnabled, String policyCachePath, String timerCachePath, String maxPolicyAge, String syncSchedule, boolean masterClient, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) throws InitializationException
      Initialize local with cloud sync
      Parameters:
      solutionId - the solutionId of the solution this IMyDataEnvironment will be associated with
      cloudPmpUrl - URL to the cloud Pmp
      authentication - authentication
      timezone - Timezone
      cacheEnabled - whether cache should be enabled
      policyCachePath - the path for the policies cache
      timerCachePath - the path for the timers cache
      maxPolicyAge - maxPolicyAge
      syncSchedule - syncSchedule
      masterClient - whether this instance is a master client
      numPdpThreads - numPdpThreads
      whitelistModeEnabled - whether Pdp whitelist mode should be enabled
      eventRepository - An IEventRepository instance if this feature should be enabled
      Returns:
      initialized IMyDataEnvironment instance
      Throws:
      InitializationException - when initialization fails
    • initializeLocalWithFileSync

      IMyDataEnvironment initializeLocalWithFileSync(SolutionId solutionId, String timezone, String fileSyncPath, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) throws InitializationException
      Initialize local with file sync
      Parameters:
      solutionId - the solutionId of the solution this IMyDataEnvironment will be associated with
      timezone - Timezone
      fileSyncPath - path for filesync
      numPdpThreads - numPdpThreads
      whitelistModeEnabled - whether Pdp whitelist mode should be enabled
      eventRepository - An IEventRepository instance if this feature should be enabled
      Returns:
      initialized IMyDataEnvironment instance
      Throws:
      InitializationException - when initialization fails
    • initializeLocal

      IMyDataEnvironment initializeLocal(SolutionId solutionId, String timezone, int numPdpThreads, boolean whitelistModeEnabled, IEventRepository eventRepository) throws InitializationException
      Initialize local
      Parameters:
      solutionId - the solutionId of the solution this IMyDataEnvironment will be associated with
      timezone - Timezone
      numPdpThreads - numPdpThreads
      whitelistModeEnabled - whether Pdp whitelist mode should be enabled
      eventRepository - An IEventRepository instance if this feature should be enabled
      Returns:
      initialized IMyDataEnvironment instance
      Throws:
      InitializationException - when initialization fails