Package org.lockss.laaws.config.impl
Class AustatesApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.AustatesApiServiceImpl
- All Implemented Interfaces:
AustatesApiDelegate
@Service
public class AustatesApiServiceImpl
extends BaseSpringApiServiceImpl
implements AustatesApiDelegate
Service for accessing Archival Unit states.
-
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.ResponseEntity<String>getAuState(String auid) Provides the state of an AU given the AU identifier.org.springframework.http.ResponseEntitypatchAuState(String auid, String auState, String xLockssRequestCookie) Updates the state of an Archival Unit with the provided values.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.AustatesApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
AustatesApiServiceImpl
public AustatesApiServiceImpl()
-
-
Method Details
-
getAuState
Provides the state of an AU given the AU identifier.- Specified by:
getAuStatein interfaceAustatesApiDelegate- Parameters:
auid- A String with the AU identifier.- Returns:
- a
ResponseEntity<String>with the Archival Unit state if successful, or aResponseEntity<String>with the error information otherwise.. - See Also:
-
patchAuState
public org.springframework.http.ResponseEntity patchAuState(String auid, String auState, String xLockssRequestCookie) Updates the state of an Archival Unit with the provided values.- Specified by:
patchAuStatein interfaceAustatesApiDelegate- Parameters:
auid- A String with the AU identifier.auState- A String with the Archival Unit state changes.xLockssRequestCookie- A String with "X-Lockss-Request-Cookie" request header.- Returns:
- a
ResponseEntity<Void>if successful, or aResponseEntity<String>with the error information otherwise. - See Also:
-