public interface RepositoryCache
Modifier and Type | Method and Description |
---|---|
boolean |
add(PackageArchive packagearchive)
Adds a single
PackageArchive |
void |
deletePackageVersion(String packageName,
String packageVersion,
String packageTimestamp)
Deletes the specified application version from the repository.
|
List<PackageWrapper> |
getApplications()
Returns all packages found in the repository.
|
List<PackageWrapper> |
getApplications(String packageName)
Returns all packages that match the given name in the repository.
|
Certification |
getCertification()
Returns the
Certification for the cached repository, if any |
PackageArchive |
getPackageArchive(String packageName,
String packageVersion,
String packageTimestamp)
Returns a
PackageArchive for the specified package. |
PackageWrapper |
getPackageWrapper(String name)
Returns the
PackageWrapper for the a package. |
List<PackageInfo> |
getVersions(String name)
Returns all available versions of a package.
|
void |
reload()
Reloads the repository contents by clearing and updating the cache.
|
void reload() throws BusinessException
BusinessException
boolean add(PackageArchive packagearchive) throws BusinessException
PackageArchive
packagearchive
- the archive to addBusinessException
List<PackageWrapper> getApplications() throws BusinessException
BusinessException
List<PackageWrapper> getApplications(String packageName) throws BusinessException
packageName
- an optional search-string for the package's name, supporting *
as a placeholderBusinessException
PackageWrapper getPackageWrapper(String name)
PackageWrapper
for the a package.name
- The name of the package.PackageWrapper
List<PackageInfo> getVersions(String name) throws BusinessException
name
- The name of the application.PackageInfo
s.BusinessException
- if such a package does not existvoid deletePackageVersion(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
packageName
- The package name.packageVersion
- The package version.packageTimestamp
- The package timestamp.BusinessException
- if such a package does not existPackageArchive getPackageArchive(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
PackageArchive
for the specified package.packageName
- The package name.packageVersion
- The package version.packageTimestamp
- The package timestamp.PackageArchive
.BusinessException
- if the archive was not found or is invalidCertification getCertification() throws BusinessException
Certification
for the cached repository, if anyCertification
BusinessException
- if an error occurred while building the certificationCopyright © 2011–2021 aiticon GmbH. All rights reserved.