Package org.lockss.ws.control
Class AuControlServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.ws.BaseServiceImpl
org.lockss.ws.control.AuControlServiceImpl
- All Implemented Interfaces:
LockssConfigurableService,AuControlService
The AU Control 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.CheckSubstanceResultcheckSubstanceById(String auId) Provides an indication of whether an Archival Unit has substance.List<org.lockss.ws.entities.CheckSubstanceResult>checkSubstanceByIdList(List<String> auIds) Provides an indication of whether the archival units defined by a list with their identifiers have substance.org.lockss.ws.entities.RequestAuControlResultdisableMdIndexingById(String auId) Disables the metadata indexing of an archival unit.List<org.lockss.ws.entities.RequestAuControlResult>disableMdIndexingByIdList(List<String> auIds) Disables the metadata indexing of the archival units defined by a list with their identifiers.org.lockss.ws.entities.RequestAuControlResultenableMdIndexingById(String auId) Enables the metadata indexing of an archival unit.List<org.lockss.ws.entities.RequestAuControlResult>enableMdIndexingByIdList(List<String> auIds) Enables the metadata indexing of the archival units defined by a list with their identifiers.org.lockss.ws.entities.RequestCrawlResultrequestCrawlById(String auId, Integer priority, boolean force) Requests the crawl of an archival unit.List<org.lockss.ws.entities.RequestCrawlResult>requestCrawlByIdList(List<String> auIds, Integer priority, boolean force) Requests the crawl of the archival units defined by a list with their identifiers.org.lockss.ws.entities.RequestDeepCrawlResultrequestDeepCrawlById(String auId, int refetchDepth, Integer priority, boolean force) Requests the deep crawl of an archival unit.List<org.lockss.ws.entities.RequestDeepCrawlResult>requestDeepCrawlByIdList(List<String> auIds, int refetchDepth, Integer priority, boolean force) Requests the deep crawl of the archival units defined by a list with their identifiers.org.lockss.ws.entities.RequestAuControlResultrequestMdIndexingById(String auId, boolean force) Requests the metadata indexing of an archival unit.List<org.lockss.ws.entities.RequestAuControlResult>requestMdIndexingByIdList(List<String> auIds, boolean force) Requests the metadata indexing of the archival units defined by a list with their identifiers.org.lockss.ws.entities.RequestAuControlResultrequestPollById(String auId) Requests the polling of an archival unit.List<org.lockss.ws.entities.RequestAuControlResult>requestPollByIdList(List<String> auIds) Requests the polling of the archival units defined by a list with their identifiers.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
-
AuControlServiceImpl
public AuControlServiceImpl()
-
-
Method Details
-
checkSubstanceById
public org.lockss.ws.entities.CheckSubstanceResult checkSubstanceById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Provides an indication of whether an Archival Unit has substance.- Specified by:
checkSubstanceByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a CheckSubstanceResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
checkSubstanceByIdList
public List<org.lockss.ws.entities.CheckSubstanceResult> checkSubstanceByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Provides an indication of whether the archival units defined by a list with their identifiers have substance.- Specified by:
checkSubstanceByIdListin interfaceAuControlService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
List<CheckSubstanceResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestCrawlById
public org.lockss.ws.entities.RequestCrawlResult requestCrawlById(String auId, Integer priority, boolean force) throws org.lockss.ws.entities.LockssWebServicesFault Requests the crawl of an archival unit.- Specified by:
requestCrawlByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.priority- An Integer with the priority of the crawl request.force- A boolean withtrueif the request is to be made even in the presence of some anomalies,falseotherwise.- Returns:
- a RequestCrawlResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestCrawlByIdList
public List<org.lockss.ws.entities.RequestCrawlResult> requestCrawlByIdList(List<String> auIds, Integer priority, boolean force) throws org.lockss.ws.entities.LockssWebServicesFault Requests the crawl of the archival units defined by a list with their identifiers.- Specified by:
requestCrawlByIdListin interfaceAuControlService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.priority- An Integer with the priority of the crawl request.force- A boolean withtrueif the request is to be made even in the presence of some anomalies,falseotherwise.- Returns:
- a
List<RequestCrawlResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestDeepCrawlById
public org.lockss.ws.entities.RequestDeepCrawlResult requestDeepCrawlById(String auId, int refetchDepth, Integer priority, boolean force) throws org.lockss.ws.entities.LockssWebServicesFault Requests the deep crawl of an archival unit.- Specified by:
requestDeepCrawlByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.refetchDepth- An int with the depth of the crawl request.priority- An Integer with the priority of the crawl request.force- A boolean withtrueif the request is to be made even in the presence of some anomalies,falseotherwise.- Returns:
- a RequestDeepCrawlResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestDeepCrawlByIdList
public List<org.lockss.ws.entities.RequestDeepCrawlResult> requestDeepCrawlByIdList(List<String> auIds, int refetchDepth, Integer priority, boolean force) throws org.lockss.ws.entities.LockssWebServicesFault Requests the deep crawl of the archival units defined by a list with their identifiers.- Specified by:
requestDeepCrawlByIdListin interfaceAuControlService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.refetchDepth- An int with the depth of the crawl request.priority- An Integer with the priority of the crawl request.force- A boolean withtrueif the request is to be made even in the presence of some anomalies,falseotherwise.- Returns:
- a
List<RequestDeepCrawlResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestPollById
public org.lockss.ws.entities.RequestAuControlResult requestPollById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Requests the polling of an archival unit.- Specified by:
requestPollByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a RequestPollResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestPollByIdList
public List<org.lockss.ws.entities.RequestAuControlResult> requestPollByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Requests the polling of the archival units defined by a list with their identifiers.- Specified by:
requestPollByIdListin interfaceAuControlService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
List<RequestPollResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestMdIndexingById
public org.lockss.ws.entities.RequestAuControlResult requestMdIndexingById(String auId, boolean force) throws org.lockss.ws.entities.LockssWebServicesFault Requests the metadata indexing of an archival unit.- Specified by:
requestMdIndexingByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.force- A boolean withtrueif the request is to be made even in the presence of some anomalies,falseotherwise.- Returns:
- a RequestAuControlResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
requestMdIndexingByIdList
public List<org.lockss.ws.entities.RequestAuControlResult> requestMdIndexingByIdList(List<String> auIds, boolean force) throws org.lockss.ws.entities.LockssWebServicesFault Requests the metadata indexing of the archival units defined by a list with their identifiers.- Specified by:
requestMdIndexingByIdListin interfaceAuControlService- Parameters:
auIds- A Listwith the identifiers (auids) of the archival units. force- A boolean withtrueif the request is to be made even in the presence of some anomalies,falseotherwise.- Returns:
- a List
with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
disableMdIndexingById
public org.lockss.ws.entities.RequestAuControlResult disableMdIndexingById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Disables the metadata indexing of an archival unit.- Specified by:
disableMdIndexingByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a RequestAuControlResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
disableMdIndexingByIdList
public List<org.lockss.ws.entities.RequestAuControlResult> disableMdIndexingByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Disables the metadata indexing of the archival units defined by a list with their identifiers.- Specified by:
disableMdIndexingByIdListin interfaceAuControlService- Parameters:
auIds- A Listwith the identifiers (auids) of the archival units. - Returns:
- a List
with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
enableMdIndexingById
public org.lockss.ws.entities.RequestAuControlResult enableMdIndexingById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Enables the metadata indexing of an archival unit.- Specified by:
enableMdIndexingByIdin interfaceAuControlService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a RequestAuControlResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
enableMdIndexingByIdList
public List<org.lockss.ws.entities.RequestAuControlResult> enableMdIndexingByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Enables the metadata indexing of the archival units defined by a list with their identifiers.- Specified by:
enableMdIndexingByIdListin interfaceAuControlService- Parameters:
auIds- A Listwith the identifiers (auids) of the archival units. - Returns:
- a List
with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-