Interface ECPRepositoryManager

    • Method Detail

      • getRepository

        ECPRepository getRepository​(java.lang.Object adaptable)
        This method returns a ECPRepository from an adaptable.
        Parameters:
        adaptable - the adaptable to adapt
        Returns:
        ECPRepository or null if the adaptable could not be adapted
      • getRepository

        ECPRepository getRepository​(java.lang.String name)
        This method returns a repository by its name.
        Parameters:
        name - the name of the repository
        Returns:
        the ECPRepository or null if no repository with such name exists.
      • getRepositories

        java.util.Collection<ECPRepository> getRepositories()
        Returns all known repositories.
        Returns:
        an array of all known ECPRepositories
      • addRepository

        ECPRepository addRepository​(ECPProvider provider,
                                    java.lang.String name,
                                    java.lang.String label,
                                    java.lang.String description,
                                    ECPProperties properties)
        This method allows the user to create a repository. If ECPProvider.hasCreateRepositorySupport() returns false an UnsupportedOperationException is thrown.
        Parameters:
        provider - the ECPProvider of this repository
        name - the name of the new repository
        label - the label of the new repository
        description - the description of the new repository
        properties - the ECPProperties of this repository
        Returns:
        the created ECPRepository