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 |
|---|---|
void |
deleteApplicationVersion(String packageName,
String packageVersion,
String packageTimestamp)
Deletes the specified application version from the repository.
|
PackageArchive |
getApplicationArchive(String packageName,
String packageVersion,
String packageTimestamp)
Returns a
PackageArchive for the specified application. |
List<PackageWrapper> |
getApplications()
Returns all applications found in the repository.
|
Certification |
getCertification()
Returns the
Certification for the cached repository, if any |
PackageWrapper |
getPublishedApplicationWrapper(String name)
Returns the
PackageWrapper for the mentioned application. |
protected Repository |
getRepository() |
List<PackageInfo> |
getVersions(String name)
Returns all available versions of a application.
|
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 Certification getCertification() throws BusinessException
RepositoryCacheCertification for the cached repository, if anyCertificationBusinessException - if an error occurred while building the certificationpublic PackageArchive getApplicationArchive(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
RepositoryCachePackageArchive for the specified application.packageName - The application name.packageVersion - The application version.packageTimestamp - The application timestamp.PackageArchive.BusinessException - if the archive was not found or is invalidpublic void deleteApplicationVersion(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
RepositoryCachepackageName - The application name.packageVersion - The application version.packageTimestamp - The application timestamp.BusinessException - if such a application does not existpublic void reload()
throws BusinessException
RepositoryCachereload in interface RepositoryCacheBusinessExceptionpublic List<PackageWrapper> getApplications() throws BusinessException
RepositoryCachegetApplications in interface RepositoryCacheBusinessExceptionpublic List<PackageInfo> getVersions(String name) throws BusinessException
RepositoryCachegetVersions in interface RepositoryCachename - The name of the application.ApplicationInfos.BusinessException - if such a application does not existpublic PackageWrapper getPublishedApplicationWrapper(String name)
RepositoryCachePackageWrapper for the mentioned application.getPublishedApplicationWrapper in interface RepositoryCachename - The name of the application.PackageWrapperprotected Repository getRepository()
Copyright © 2011–2018 aiticon GmbH. All rights reserved.