Package org.lockss.laaws.config.impl
Class NoaupeersApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.NoaupeersApiServiceImpl
- All Implemented Interfaces:
NoaupeersApiDelegate
@Service
public class NoaupeersApiServiceImpl
extends BaseSpringApiServiceImpl
implements NoaupeersApiDelegate
Service for accessing Archival Unit NoAuPeerSet object.
-
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>getNoAuPeers(String auid) Provides the NoAuPeerSet object of an AU given the AU identifier.org.springframework.http.ResponseEntityputNoAuPeers(String auid, String noAuPeerSet, String xLockssRequestCookie) Updates the NoAuPeerSet object 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.NoaupeersApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
NoaupeersApiServiceImpl
public NoaupeersApiServiceImpl()
-
-
Method Details
-
getNoAuPeers
Provides the NoAuPeerSet object of an AU given the AU identifier.- Specified by:
getNoAuPeersin interfaceNoaupeersApiDelegate- Parameters:
auid- A String with the AU identifier.- Returns:
- a
ResponseEntity<String>with the Archival Unit NoAuPeerSet object if successful, or aResponseEntity<String>with the error information otherwise. - See Also:
-
putNoAuPeers
public org.springframework.http.ResponseEntity putNoAuPeers(String auid, String noAuPeerSet, String xLockssRequestCookie) Updates the NoAuPeerSet object of an Archival Unit with the provided values.- Specified by:
putNoAuPeersin interfaceNoaupeersApiDelegate- Parameters:
auid- A String with the AU identifier.noAuPeerSet- A String with the Archival Unit NoAuPeerSet object 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:
-