Interface IMyDataEnvironmentInitializer

  • All Known Subinterfaces:
    IMyDataEnvironmentFullFace

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

      • initializeLocalWithCloudSync

        IMyDataEnvironment initializeLocalWithCloudSync​(SolutionId solutionId,
                                                        java.net.URI cloudPmpUrl,
                                                        OAuthCredentials authentication,
                                                        java.lang.String timezone,
                                                        boolean cacheEnabled,
                                                        java.lang.String policyCachePath,
                                                        java.lang.String timerCachePath,
                                                        java.lang.String maxPolicyAge,
                                                        java.lang.String syncSchedule,
                                                        boolean masterClient,
                                                        int numPdpThreads,
                                                        boolean whitelistModeEnabled,
                                                        de.fraunhofer.iese.mydata.pdp.interfaces.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,
                                                       java.lang.String timezone,
                                                       java.lang.String fileSyncPath,
                                                       int numPdpThreads,
                                                       boolean whitelistModeEnabled,
                                                       de.fraunhofer.iese.mydata.pdp.interfaces.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,
                                           java.lang.String timezone,
                                           int numPdpThreads,
                                           boolean whitelistModeEnabled,
                                           de.fraunhofer.iese.mydata.pdp.interfaces.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