Package org.lockss.laaws.config.impl
Class AuagreementsApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.AuagreementsApiServiceImpl
- All Implemented Interfaces:
AuagreementsApiDelegate
@Service
public class AuagreementsApiServiceImpl
extends BaseSpringApiServiceImpl
implements AuagreementsApiDelegate
Service for accessing Archival Unit poll agreements.
-
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>getAuAgreements(String auid) Provides the poll agreements of an AU given the AU identifier.org.springframework.http.ResponseEntitypatchAuAgreements(String auid, String auAgreements, String xLockssRequestCookie) Updates the poll agreements 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.AuagreementsApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
AuagreementsApiServiceImpl
public AuagreementsApiServiceImpl()
-
-
Method Details
-
getAuAgreements
Provides the poll agreements of an AU given the AU identifier.- Specified by:
getAuAgreementsin interfaceAuagreementsApiDelegate- Parameters:
auid- A String with the AU identifier.- Returns:
- a
ResponseEntity<String>with the Archival Unit poll agreements if successful, or aResponseEntity<String>with the error information otherwise.. - See Also:
-
patchAuAgreements
public org.springframework.http.ResponseEntity patchAuAgreements(String auid, String auAgreements, String xLockssRequestCookie) Updates the poll agreements of an Archival Unit with the provided values.- Specified by:
patchAuAgreementsin interfaceAuagreementsApiDelegate- Parameters:
auid- A String with the AU identifier.auAgreements- A String with the Archival Unit poll agreements 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:
-