public class RepositoryCacheSoap extends Object
RepositoryCache that retrieves the packages from a remote repository.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,PackageWrapper> |
applicationWrapperMap |
protected byte[] |
cert |
protected Repository |
repository |
protected SignatureWrapper |
signatureWrapper |
| 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. |
protected Repository |
getRepository() |
List<PackageInfo> |
getVersions(String packageName)
Returns all available versions of a package.
|
void |
reload()
Reloads the repository contents by clearing and updating the cache.
|
protected final Map<String,PackageWrapper> applicationWrapperMap
protected final Repository repository
protected byte[] cert
protected SignatureWrapper signatureWrapper
public List<PackageInfo> getVersions(String packageName) throws BusinessException
RepositoryCachegetVersions in interface RepositoryCachepackageName - The name of the application.PackageInfos.BusinessException - if such a package does not existpublic Certification getCertification() throws BusinessException
RepositoryCacheCertification for the cached repository, if anyCertificationBusinessException - if an error occurred while building the certificationpublic PackageArchive getPackageArchive(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
RepositoryCachePackageArchive 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 invalidpublic void deletePackageVersion(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
RepositoryCachepackageName - The package name.packageVersion - The package version.packageTimestamp - The package timestamp.BusinessException - if such a package does not existpublic boolean add(PackageArchive packagearchive) throws BusinessException
RepositoryCachePackageArchivepackagearchive - the archive to addBusinessExceptionpublic void reload()
throws BusinessException
RepositoryCachereload in interface RepositoryCacheBusinessExceptionpublic List<PackageWrapper> getApplications() throws BusinessException
RepositoryCachegetApplications in interface RepositoryCacheBusinessExceptionpublic List<PackageWrapper> getApplications(String packageName) throws BusinessException
RepositoryCachegetApplications in interface RepositoryCachepackageName - an optional search-string for the package's name, supporting * as a placeholderBusinessExceptionpublic PackageWrapper getPackageWrapper(String name)
RepositoryCachePackageWrapper for the a package.getPackageWrapper in interface RepositoryCachename - The name of the package.PackageWrapperprotected Repository getRepository()
Copyright © 2011–2020 aiticon GmbH. All rights reserved.