Package org.lockss.ws.content
Class ContentConfigurationServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.ws.BaseServiceImpl
org.lockss.ws.content.ContentConfigurationServiceImpl
- All Implemented Interfaces:
LockssConfigurableService,ContentConfigurationService
@Service
public class ContentConfigurationServiceImpl
extends BaseServiceImpl
implements ContentConfigurationService
The Content Configuration 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.ContentConfigurationResultConfigures the archival unit defined by its identifier.List<org.lockss.ws.entities.ContentConfigurationResult>addAusByIdList(List<String> auIds) Configures the archival units defined by a list of their identifiers.org.lockss.ws.entities.ContentConfigurationResultdeactivateAuById(String auId) Deactivates the archival unit defined by its identifier.List<org.lockss.ws.entities.ContentConfigurationResult>deactivateAusByIdList(List<String> auIds) Deactivates the archival units defined by a list with their identifiers.org.lockss.ws.entities.ContentConfigurationResultdeleteAuById(String auId) Unconfigures the archival unit defined by its identifier.List<org.lockss.ws.entities.ContentConfigurationResult>deleteAusByIdList(List<String> auIds) Unconfigures the archival units defined by a list with their identifiers.org.lockss.ws.entities.ContentConfigurationResultreactivateAuById(String auId) Reactivates the archival unit defined by its identifier.List<org.lockss.ws.entities.ContentConfigurationResult>reactivateAusByIdList(List<String> auIds) reactivates 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
-
ContentConfigurationServiceImpl
public ContentConfigurationServiceImpl()
-
-
Method Details
-
addAuById
public org.lockss.ws.entities.ContentConfigurationResult addAuById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Configures the archival unit defined by its identifier.- Specified by:
addAuByIdin interfaceContentConfigurationService- Parameters:
auId- A String with the identifier (auid) of the archival unit. The archival unit to be added must already be in the title db that's loaded into the daemon.- Returns:
- a ContentConfigurationResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
addAusByIdList
public List<org.lockss.ws.entities.ContentConfigurationResult> addAusByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Configures the archival units defined by a list of their identifiers.- Specified by:
addAusByIdListin interfaceContentConfigurationService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units. The archival units to be added must already be in the title db that's loaded into the daemon.- Returns:
- a
List<ContentConfigurationResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
deleteAuById
public org.lockss.ws.entities.ContentConfigurationResult deleteAuById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Unconfigures the archival unit defined by its identifier.- Specified by:
deleteAuByIdin interfaceContentConfigurationService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a ContentConfigurationResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
deleteAusByIdList
public List<org.lockss.ws.entities.ContentConfigurationResult> deleteAusByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Unconfigures the archival units defined by a list with their identifiers.- Specified by:
deleteAusByIdListin interfaceContentConfigurationService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
List<ContentConfigurationResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
reactivateAuById
public org.lockss.ws.entities.ContentConfigurationResult reactivateAuById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Reactivates the archival unit defined by its identifier.- Specified by:
reactivateAuByIdin interfaceContentConfigurationService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a ContentConfigurationResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
reactivateAusByIdList
public List<org.lockss.ws.entities.ContentConfigurationResult> reactivateAusByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault reactivates the archival units defined by a list with their identifiers.- Specified by:
reactivateAusByIdListin interfaceContentConfigurationService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
List<ContentConfigurationResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
deactivateAuById
public org.lockss.ws.entities.ContentConfigurationResult deactivateAuById(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Deactivates the archival unit defined by its identifier.- Specified by:
deactivateAuByIdin interfaceContentConfigurationService- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a ContentConfigurationResult with the result of the operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
deactivateAusByIdList
public List<org.lockss.ws.entities.ContentConfigurationResult> deactivateAusByIdList(List<String> auIds) throws org.lockss.ws.entities.LockssWebServicesFault Deactivates the archival units defined by a list with their identifiers.- Specified by:
deactivateAusByIdListin interfaceContentConfigurationService- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
List<ContentConfigurationResult>with the results of the operation. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-