Interface IMyDataEnvironmentInitializer

  • All Known Subinterfaces:
    IMyDataEnvironmentFullFace

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      IMyDataEnvironment initializeCloud​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, URI cloudPmpUrl, de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication)
      Initialize with cloud mode (cloud Pmp, cloud Pdp)
      IMyDataEnvironment initializeLocal​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, String timezone, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
      Initialize local
      IMyDataEnvironment initializeLocalWithCloudSync​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, URI cloudPmpUrl, de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication, String timezone, boolean cacheEnabled, String policyCachePath, String timerCachePath, String maxPolicyAge, String syncSchedule, boolean masterClient, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
      Initialize local with cloud sync
      IMyDataEnvironment initializeLocalWithFileSync​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId, String timezone, String fileSyncPath, int numPdpThreads, boolean whitelistModeEnabled, de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
      Initialize local with file sync
    • Method Detail

      • initializeCloud

        IMyDataEnvironment initializeCloud​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId,
                                           URI cloudPmpUrl,
                                           de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication)
                                    throws de.fraunhofer.iese.mydata.exception.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:
        de.fraunhofer.iese.mydata.exception.InitializationException - when initialization fails
      • initializeLocalWithCloudSync

        IMyDataEnvironment initializeLocalWithCloudSync​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId,
                                                        URI cloudPmpUrl,
                                                        de.fraunhofer.iese.mydata.component.connector.OAuthCredentials authentication,
                                                        String timezone,
                                                        boolean cacheEnabled,
                                                        String policyCachePath,
                                                        String timerCachePath,
                                                        String maxPolicyAge,
                                                        String syncSchedule,
                                                        boolean masterClient,
                                                        int numPdpThreads,
                                                        boolean whitelistModeEnabled,
                                                        de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
                                                 throws de.fraunhofer.iese.mydata.exception.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:
        de.fraunhofer.iese.mydata.exception.InitializationException - when initialization fails
      • initializeLocalWithFileSync

        IMyDataEnvironment initializeLocalWithFileSync​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId,
                                                       String timezone,
                                                       String fileSyncPath,
                                                       int numPdpThreads,
                                                       boolean whitelistModeEnabled,
                                                       de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
                                                throws de.fraunhofer.iese.mydata.exception.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:
        de.fraunhofer.iese.mydata.exception.InitializationException - when initialization fails
      • initializeLocal

        IMyDataEnvironment initializeLocal​(de.fraunhofer.iese.mydata.solution.SolutionId solutionId,
                                           String timezone,
                                           int numPdpThreads,
                                           boolean whitelistModeEnabled,
                                           de.fraunhofer.iese.mydata.pdp.interfaces.IEventRepository eventRepository)
                                    throws de.fraunhofer.iese.mydata.exception.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:
        de.fraunhofer.iese.mydata.exception.InitializationException - when initialization fails