Package org.lockss.laaws.config.impl
Class WsApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.WsApiServiceImpl
- All Implemented Interfaces:
WsApiDelegate
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
BaseSpringApiServiceImpl.MapMessageListener -
Field Summary
Fields 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.springframework.http.ResponseEntitydeleteAusDelete(List<String> auIds) Unconfigures the archival units defined by a list with their identifiers.org.springframework.http.ResponseEntitygetAuqueries(String auQuery) Provides the selected properties of selected archival units.org.springframework.http.ResponseEntitygetPlugins(String pluginQuery) Provides the selected properties of selected plugins.org.springframework.http.ResponseEntityProvides the selected properties of selected title database archival units.org.springframework.http.ResponseEntitygetTdbPublishers(String tdbPublisherQuery) Provides the selected properties of selected title database publishers.org.springframework.http.ResponseEntitygetTdbTitles(String tdbTitleQuery) Provides the selected properties of selected title database titles.org.springframework.http.ResponseEntityConfigures the archival units defined by a list of their identifiers.org.springframework.http.ResponseEntityputAusDeactivate(List<String> auIds) Deactivates the archival units defined by a list with their identifiers.org.springframework.http.ResponseEntityputAusReactivate(List<String> auIds) Reactivates the archival units defined by a list with their identifiers.Methods 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, waitReadyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lockss.laaws.config.api.WsApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
WsApiServiceImpl
public WsApiServiceImpl()
-
-
Method Details
-
postAus
Configures the archival units defined by a list of their identifiers.- Specified by:
postAusin interfaceWsApiDelegate- 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
ResponseEntity<List<ContentConfigurationResult>>with the results of the operation. - See Also:
-
putAusDeactivate
Deactivates the archival units defined by a list with their identifiers.- Specified by:
putAusDeactivatein interfaceWsApiDelegate- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
ResponseEntity<List<ContentConfigurationResult>>with the results of the operation. - See Also:
-
putAusReactivate
Reactivates the archival units defined by a list with their identifiers.- Specified by:
putAusReactivatein interfaceWsApiDelegate- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
ResponseEntity<List<ContentConfigurationResult>>with the results of the operation. - See Also:
-
deleteAusDelete
Unconfigures the archival units defined by a list with their identifiers.- Specified by:
deleteAusDeletein interfaceWsApiDelegate- Parameters:
auIds- AList<String>with the identifiers (auids) of the archival units.- Returns:
- a
ResponseEntity<List<ContentConfigurationResult>>with the results of the operation. - See Also:
-
getAuqueries
Provides the selected properties of selected archival units.- Specified by:
getAuqueriesin interfaceWsApiDelegate- Parameters:
auQuery- A String with the SQL-like query used to specify what properties to retrieve from which archival units.- Returns:
- a
ResponseEntity<List<AuWsResult>>with the results. - See Also:
-
getPlugins
Provides the selected properties of selected plugins.- Specified by:
getPluginsin interfaceWsApiDelegate- Parameters:
pluginQuery- A String with the SQL-like query used to specify what properties to retrieve from which plugins.- Returns:
- a
ResponseEntity<List<PluginWsResult>>with the results. - See Also:
-
getTdbAus
Provides the selected properties of selected title database archival units.- Specified by:
getTdbAusin interfaceWsApiDelegate- Parameters:
tdbAuQuery- A String with the SQL-like query used to specify what properties to retrieve from which title database archival units.- Returns:
- a
ResponseEntity<List<TdbAuWsResult>>with the results. - See Also:
-
getTdbPublishers
Provides the selected properties of selected title database publishers.- Specified by:
getTdbPublishersin interfaceWsApiDelegate- Parameters:
tdbPublisherQuery- A String with the SQL-like query used to specify what properties to retrieve from which title database publishers.- Returns:
- a
List<TdbPublisherWsResult>with the results. - See Also:
-
getTdbTitles
Provides the selected properties of selected title database titles.- Specified by:
getTdbTitlesin interfaceWsApiDelegate- Parameters:
tdbTitleQuery- A String with the SQL-like query used to specify what properties to retrieve from which title database titles.- Returns:
- a
ResponseEntity<List<TdbTitleWsResult>>with the results. - See Also:
-