Interface Repository

    • Method Detail

      • getUri

        URI getUri()
        The URI for this Repository, may refer to to local filesystem or a remote address
        Returns:
        the URI
      • isActive

        boolean isActive()
        Whether or not PackageArchives can be retrieved from this repository
        Returns:
        true if this repository is active, false otherwise
      • isStrict

        boolean isStrict()
        Whether or not this repository uses strict filename validation when scanning for PackageArchives, i.e. the naming pattern must be <name>-<version>-<timestamp>.zip. If this method returns false, the more lax naming pattern <name>-<version>.zip is used, omitting the <timestamp> part.
        Returns:
        if this repository uses strict filename validation
      • isPublished

        boolean isPublished()
        Whether or not this repository is being published via the SOAP interface, so other repositories can refer to it as an remote repository
        Returns:
        true if this repository is published, false otherwise
        See Also:
        getRepositoryType()
      • getDigest

        String getDigest()
        The digest for this repository, used for local published repositories to grant remote accesss
        Returns:
        the digest
        See Also:
        isPublished()
      • getRemoteRepositoryName

        String getRemoteRepositoryName()
        In case the type for this repository is RepositoryType.REMOTE, returns the name of the referred remote repository.
        Returns:
        the name of the referred remote repository
      • getPackages

        Packages getPackages​(String packageName)
                      throws BusinessException
        Returns the Packages offered by this repository, containing a list of all available Packages
        Parameters:
        packageName - an optional search-string for the package's name, supporting * as a placeholder
        Returns:
        the Packages offered by this repository
        Throws:
        BusinessException - if an error occurs while reading the package informations
      • getTrustedCertChain

        Collection<X509Certificate> getTrustedCertChain()
                                                 throws SigningException
        Returns the certificate chain, if this is a remote repository and a certificate chain to be trusted has been defined
        Returns:
        the immutable certificate chain, or null
        Throws:
        SigningException - if an error occurs while reading the certificate chain