@Service public class ContentServiceImpl extends BaseServiceImpl implements ContentService
BaseSpringApiServiceImpl.MapMessageListenerconnectionTimeout, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, DEFAULT_REPO_NAMESPACE, PARAM_CONNECTION_TIMEOUT, PARAM_READ_TIMEOUT, PARAM_REPO_NAMESPACE, PREFIX, readTimeout, repoNamespace, restTemplateDEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME| Constructor and Description |
|---|
ContentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ContentResult |
fetchFile(String url,
String auId)
Provides the content defined by a URL and Archival Unit.
|
ContentResult |
fetchVersionedFile(String url,
String auId,
Integer version)
Provides the content defined by a URL, an Archival Unit and a version.
|
List<FileWsResult> |
getVersions(String url,
String auId)
Provides a list of the versions of a URL in an Archival Unit.
|
boolean |
isUrlCached(String url,
String auId)
Provides an indication of whether the content defined by a URL and Archival Unit is cached.
|
boolean |
isUrlVersionCached(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.
|
callRestServiceEndpoint, callRestServiceUri, callRestServiceUri, getAuthHeaders, getConnectionTimeout, getMultipartResponse, getReadTimeout, getRequestorIpAddress, getRestLockssRepository, getServiceBinding, getServiceEndpoint, getSoapRequestAuthorizationHeader, getSoapRequestCredentials, separatedString, setConfigconfigMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReadypublic List<FileWsResult> getVersions(String url, String auId) throws LockssWebServicesFault
getVersions in interface ContentServiceurl - A String with the URL.auId - A String with the identifier (auid) of the archival unit.List<FileWsResult> with the results.LockssWebServicesFault - if there are problems.public boolean isUrlCached(String url, String auId) throws LockssWebServicesFault
isUrlCached in interface ContentServiceurl - A String with the URL.auId - A String with the identifier (auid) of the archival unit.LockssWebServicesFault - if there are problems.public boolean isUrlVersionCached(String url, String auId, Integer version) throws LockssWebServicesFault
isUrlVersionCached in interface ContentServiceurl - 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.LockssWebServicesFault - if there are problems.public ContentResult fetchFile(String url, String auId) throws LockssWebServicesFault
fetchFile in interface ContentServiceurl - A String with the URL.auId - A String with the identifier (auid) of the archival unit.LockssWebServicesFault - if there are problems.public ContentResult fetchVersionedFile(String url, String auId, Integer version) throws LockssWebServicesFault
fetchVersionedFile in interface ContentServiceurl - 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.LockssWebServicesFault - if there are problems.Copyright © 2000–2023 LOCKSS Program. All rights reserved.