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
RepositoryCache
Certification
for the cached repository, if anyCertification
BusinessException
- if an error occurred while building the certificationpublic PackageArchive getApplicationArchive(String packageName, String packageVersion, String packageTimestamp) throws BusinessException
RepositoryCache
PackageArchive
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
RepositoryCache
packageName
- The application name.packageVersion
- The application version.packageTimestamp
- The application timestamp.BusinessException
- if such a application does not existpublic void reload() throws BusinessException
RepositoryCache
reload
in interface RepositoryCache
BusinessException
public List<PackageWrapper> getApplications() throws BusinessException
RepositoryCache
getApplications
in interface RepositoryCache
BusinessException
public List<PackageInfo> getVersions(String name) throws BusinessException
RepositoryCache
getVersions
in interface RepositoryCache
name
- The name of the application.ApplicationInfo
s.BusinessException
- if such a application does not existpublic PackageWrapper getPublishedApplicationWrapper(String name)
RepositoryCache
PackageWrapper
for the mentioned application.getPublishedApplicationWrapper
in interface RepositoryCache
name
- The name of the application.PackageWrapper
protected Repository getRepository()
Copyright © 2011–2017 aiticon GmbH. All rights reserved.