public interface Repository extends Named<Integer>, Versionable<Date>
Application
s for provisioning. In the repository
applications are represented through a InstallablePackage
.Modifier and Type | Method and Description |
---|---|
Certification |
getCertification()
Returns the
Certification |
String |
getDigest()
The digest for this repository, used for local published repositories to grant remote accesss
|
List<InstallablePackage> |
getInstallablePackages(List<Identifier> provisionedPackages)
Returns a list of
InstallablePackage s for the given list of package Identifier s |
PackageArchive |
getPackageArchive(String packageName,
String packageVersion,
String packageTimestamp)
Returns the
PackageArchive with the given name, version and timestamp |
Packages |
getPackages()
|
Packages |
getPackages(String packageName)
|
PackageVersions |
getPackageVersions(String packageName)
Returns the
PackageVersions for the package with the given name, containing a list of PackageInfo
rmations |
String |
getRemoteRepositoryName()
In case the type for this repository is
RepositoryType.REMOTE , returns the name of the referred remote
repository. |
RepositoryMode |
getRepositoryMode()
The mode for this repository,
|
RepositoryType |
getRepositoryType()
The type for this repository.
|
Collection<X509Certificate> |
getTrustedCertChain()
Returns the certificate chain, if this is a remote repository and a certificate chain to be trusted has been
defined
|
URI |
getUri()
The URI for this
Repository , may refer to to local filesystem or a remote address |
boolean |
isActive()
Whether or not
PackageArchive s can be retrieved from this repository |
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
|
boolean |
isStrict()
Whether or not this repository uses strict filename validation when scanning for
PackageArchive s, i.e. |
getDescription, getName
getId
getVersion
RepositoryType getRepositoryType()
RepositoryType
URI getUri()
Repository
, may refer to to local filesystem or a remote addressboolean isActive()
PackageArchive
s can be retrieved from this repositorytrue
if this repository is active, false
otherwiseboolean isStrict()
PackageArchive
s, 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.boolean isPublished()
true
if this repository is published, false
otherwisegetRepositoryType()
String getDigest()
isPublished()
RepositoryMode getRepositoryMode()
RepositoryMode
String getRemoteRepositoryName()
RepositoryType.REMOTE
, returns the name of the referred remote
repository.List<InstallablePackage> getInstallablePackages(List<Identifier> provisionedPackages) throws BusinessException
InstallablePackage
s for the given list of package Identifier
sprovisionedPackages
- the list of package identifiersInstallablePackage
s for the given package identifiersBusinessException
- if an error occurs while retrieving the packagesPackageArchive getPackageArchive(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
PackageArchive
with the given name, version and timestamppackageName
- the name of the archivepackageVersion
- the version of the archivepackageTimestamp
- the timestamp of the archive, only used if isStrict()
returns true
.PackageArchive
BusinessException
- if no such PackageArchive
exists or if this repository is not activeisStrict()
,
isActive()
Packages getPackages() throws BusinessException
Packages
offered by this repositoryBusinessException
- if an error occurs while reading the package informationsPackages getPackages(String packageName) throws BusinessException
packageName
- an optional search-string for the package's name, supporting *
as a placeholderPackages
offered by this repositoryBusinessException
- if an error occurs while reading the package informationsCertification getCertification() throws BusinessException
Certification
BusinessException
PackageVersions getPackageVersions(String packageName) throws BusinessException
PackageVersions
for the package with the given name, containing a list of PackageInfo
rmationspackageName
- the name of the package to get the versions forPackageVersions
BusinessException
- if an error occurs while retrieving the PackageVersions
Collection<X509Certificate> getTrustedCertChain() throws SigningException
null
SigningException
- if an error occurs while reading the certificate chainCopyright © 2011–2020 aiticon GmbH. All rights reserved.