Interface RepositoryStorage<T>

    • Method Detail

      • synchronizeServices

        List<RepoData> synchronizeServices​(List<RepoData> currentServices)
        Responsible for synchronizing internal state of the storage with currently available services in the repository. This is the "default" set of services which will differ between releases and thus must be kept in sync with the storage.
        Parameters:
        currentServices - set of services that the repository comes with
        Returns:
        complete set of services in the storage
      • loadServices

        List<RepoData> loadServices​(int start,
                                    int offset)
        Loads available services with pagination.
        Parameters:
        start - start position to get the services from
        offset - number of services to retrieve
        Returns:
        list of found services
      • loadServices

        List<RepoData> loadServices​(Predicate<RepoData> predicate,
                                    int start,
                                    int offset)
        Loads available services with pagination and filter
        Parameters:
        predicate - filter criteria to load services
        start - start position to get the services from
        offset - number of services to retrieve
        Returns:
        list of found services
      • onAdded

        void onAdded​(RepoData service)
        Performs processing of newly added service
        Parameters:
        service - service that was added
      • onEnabled

        void onEnabled​(RepoData service)
        Performs processing of enabled service
        Parameters:
        service - service that was enabled
      • onDisabled

        void onDisabled​(RepoData service)
        Performs processing of disabled service
        Parameters:
        service - service that was disabled
      • onInstalled

        void onInstalled​(RepoData service,
                         String target)
        Performs processing of installed service
        Parameters:
        service - service that was installed
        target - component which the service was installed to
      • onUninstalled

        void onUninstalled​(RepoData service,
                           String target)
        Performs processing of uninstalled service
        Parameters:
        service - service that was uninstalled
        target - component which the service was uninstalled from
      • loadConfiguration

        T loadConfiguration()
        Loads service repository configuration of custom type
        Returns:
        returns loaded configuration
      • storeConfiguration

        void storeConfiguration​(T configuration)
        Stores repository configuration of custom type
        Parameters:
        configuration - configuration to be stored