Package org.lockss.ws.content
Class ContentServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.ws.BaseServiceImpl
org.lockss.ws.content.ContentServiceImpl
- All Implemented Interfaces:
LockssConfigurableService,ContentService
The Content SOAP web service implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
BaseSpringApiServiceImpl.MapMessageListener -
Field Summary
Fields inherited from class org.lockss.ws.BaseServiceImpl
connectionTimeout, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, DEFAULT_REPO_NAMESPACE, PARAM_CONNECTION_TIMEOUT, PARAM_READ_TIMEOUT, PARAM_REPO_NAMESPACE, PREFIX, readTimeout, repoNamespace, restTemplateFields inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
DEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.lockss.ws.entities.ContentResultProvides the content defined by a URL and Archival Unit.org.lockss.ws.entities.ContentResultfetchVersionedFile(String url, String auId, Integer version) Provides the content defined by a URL, an Archival Unit and a version.List<org.lockss.ws.entities.FileWsResult>getVersions(String url, String auId) Provides a list of the versions of a URL in an Archival Unit.booleanisUrlCached(String url, String auId) Provides an indication of whether the content defined by a URL and Archival Unit is cached.booleanisUrlVersionCached(String url, String auId, Integer version) Provides an indication of whether the content defined by a URL, an Archival Unit and a version is cached.Methods inherited from class org.lockss.ws.BaseServiceImpl
callRestServiceEndpoint, callRestServiceUri, callRestServiceUri, getAuthHeaders, getConnectionTimeout, getMultipartResponse, getReadTimeout, getRequestorIpAddress, getRestLockssRepository, getServiceBinding, getServiceEndpoint, getSoapRequestAuthorizationHeader, getSoapRequestCredentials, separatedString, setConfigMethods inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
configMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getStateManager, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReady
-
Constructor Details
-
ContentServiceImpl
public ContentServiceImpl()
-
-
Method Details
-
getVersions
public List<org.lockss.ws.entities.FileWsResult> getVersions(String url, String auId) throws org.lockss.ws.entities.LockssWebServicesFault Provides a list of the versions of a URL in an Archival Unit.- Specified by:
getVersionsin interfaceContentService- Parameters:
url- A String with the URL.auId- A String with the identifier (auid) of the archival unit.- Returns:
- a
List<FileWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
isUrlCached
public boolean isUrlCached(String url, String auId) throws org.lockss.ws.entities.LockssWebServicesFault Provides an indication of whether the content defined by a URL and Archival Unit is cached.- Specified by:
isUrlCachedin interfaceContentService- Parameters:
url- A String with the URL.auId- A String with the identifier (auid) of the archival unit.- Returns:
- a boolean with the indication.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
isUrlVersionCached
public boolean isUrlVersionCached(String url, String auId, Integer version) throws org.lockss.ws.entities.LockssWebServicesFault Provides an indication of whether the content defined by a URL, an Archival Unit and a version is cached.- Specified by:
isUrlVersionCachedin interfaceContentService- Parameters:
url- A String with the URL.auId- A String with the identifier (auid) of the archival unit.version- An Integer with the requested version of the content.- Returns:
- a boolean with the indication.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
fetchFile
public org.lockss.ws.entities.ContentResult fetchFile(String url, String auId) throws org.lockss.ws.entities.LockssWebServicesFault Provides the content defined by a URL and Archival Unit.- Specified by:
fetchFilein interfaceContentService- Parameters:
url- A String with the URL.auId- A String with the identifier (auid) of the archival unit.- Returns:
- a ContentResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
fetchVersionedFile
public org.lockss.ws.entities.ContentResult fetchVersionedFile(String url, String auId, Integer version) throws org.lockss.ws.entities.LockssWebServicesFault Provides the content defined by a URL, an Archival Unit and a version.- Specified by:
fetchVersionedFilein interfaceContentService- Parameters:
url- A String with the URL.auId- A String with the identifier (auid) of the archival unit.version- An Integer with the requested version of the content.- Returns:
- a ContentResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-