Interface MultipleRepository

  • All Superinterfaces:
    Repository

    public interface MultipleRepository
    extends Repository
    Interface extending Repository to allow transparent access to internal multiple repositories based on credentials given by the caller.
    Version:
    $Id$
    • Method Detail

      • addRepository

        void addRepository​(Credentials credentials,
                           Repository repository)
        Adds an internal repository with a credentials as key
        Parameters:
        credentials -
        repository -
      • removeRepository

        boolean removeRepository​(Credentials credentials)
        Removes an internal repository with a credentials as key
        Parameters:
        credentials -
        Returns:
        removed
      • containsRepositoryByCredentials

        boolean containsRepositoryByCredentials​(Credentials credentials)
        Checks if it contains the internal repository which has the specified credentials.
        Parameters:
        credentials -
      • getRepositoryByCredentials

        Repository getRepositoryByCredentials​(Credentials credentials)
        Returns the internal repository which has the specified credentials as its default credentials.
        Parameters:
        credentials -