Package org.lockss.laaws.config.impl
Class AusApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.AusApiServiceImpl
- All Implemented Interfaces:
AusApiDelegate
Service for accessing Archival Unit configurations.
-
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.ResponseEntitydeleteAuConfig(String auid) Deletes the configuration for an AU given the AU identifier.org.springframework.http.ResponseEntityProvides the configuration for all AUs.org.springframework.http.ResponseEntitygetAuConfig(String auid) Provides the configuration for an AU given the AU identifier.org.springframework.http.ResponseEntityputAuConfig(String auidArg, org.lockss.config.AuConfiguration auConfiguration) Stores the provided Archival Unit configuration.org.springframework.http.ResponseEntityputAusMdDisable(String auId) Disables the metadata indexing of an archival unit.org.springframework.http.ResponseEntityputAusMdEnable(String auId) Enables the metadata indexing of an archival unit.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.AusApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
AusApiServiceImpl
public AusApiServiceImpl()
-
-
Method Details
-
deleteAuConfig
Deletes the configuration for an AU given the AU identifier.- Specified by:
deleteAuConfigin interfaceAusApiDelegate- Parameters:
auid- A String with the AU identifier.- Returns:
ResponseEntity<AuConfiguration>with the deleted configuration.- See Also:
-
getAllAuConfig
public org.springframework.http.ResponseEntity getAllAuConfig()Provides the configuration for all AUs.- Specified by:
getAllAuConfigin interfaceAusApiDelegate- Returns:
- a
ResponseEntity<Collection<AuConfiguration>>with the configuration for all AUs. - See Also:
-
getAuConfig
Provides the configuration for an AU given the AU identifier.- Specified by:
getAuConfigin interfaceAusApiDelegate- Parameters:
auid- A String with the AU identifier.- Returns:
- a
ResponseEntity<AuConfiguration>with the AU configuration. - See Also:
-
putAuConfig
public org.springframework.http.ResponseEntity putAuConfig(String auidArg, org.lockss.config.AuConfiguration auConfiguration) Stores the provided Archival Unit configuration.- Specified by:
putAuConfigin interfaceAusApiDelegate- Parameters:
auConfiguration- An AuConfiguration with the Archival Unit configuration.auidArg- The auid passed in the request, currently ignored- Returns:
- a
ResponseEntity<Void>with the Archival Unit configuration. - See Also:
-
putAusMdEnable
Enables the metadata indexing of an archival unit.- Specified by:
putAusMdEnablein interfaceAusApiDelegate- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a
ResponseEntity<RequestAuControlResult>with the result of the operation. - See Also:
-
putAusMdDisable
Disables the metadata indexing of an archival unit.- Specified by:
putAusMdDisablein interfaceAusApiDelegate- Parameters:
auId- A String with the identifier (auid) of the archival unit.- Returns:
- a
ResponseEntity<RequestAuControlResult>with the result of the operation. - See Also:
-