Package org.lockss.laaws.poller.impl
Class AusApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.poller.impl.AusApiServiceImpl
- All Implemented Interfaces:
AusApiDelegate
Service for accessing the repository artifacts.
-
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
ConstructorsConstructorDescriptionAusApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.servlet.http.HttpServletRequest request) Constructor for autowiring. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntitygetExportFiles(String auid, String fileType, Boolean isCompress, Boolean isExcludeDirNodes, String xlateFilenames, String filePrefix, Long maxSize, Integer maxVersions) GET /aus/{auid}/export: Export the Archival Unit artifacts as a group of archives.Optional<com.fasterxml.jackson.databind.ObjectMapper>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.poller.api.AusApiDelegate
getAcceptHeader, getRequest
-
Constructor Details
-
AusApiServiceImpl
@Autowired public AusApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.servlet.http.HttpServletRequest request) Constructor for autowiring.- Parameters:
objectMapper- An ObjectMapper for JSON processing.request- An HttpServletRequest with the HTTP request.
-
-
Method Details
-
getExportFiles
public org.springframework.http.ResponseEntity getExportFiles(String auid, String fileType, Boolean isCompress, Boolean isExcludeDirNodes, String xlateFilenames, String filePrefix, Long maxSize, Integer maxVersions) GET /aus/{auid}/export: Export the Archival Unit artifacts as a group of archives.- Specified by:
getExportFilesin interfaceAusApiDelegate- Parameters:
auid- A String with the Archival Unit ID (AUID).fileType- A String with the type of archive to create.isCompress- A Boolean with the indication of whether contents should be compressed.isExcludeDirNodes- A Boolean with the indication of whether directories should be excluded.xlateFilenames- A String with the type of filename translation to be done.filePrefix- A String with the prefix to be used to name the exported file.maxSize- A Long with the maximum size in MB of the exported file.maxVersions- An Integer with the maximum number of versions of an artifact to be exported.- Returns:
- a
ResponseEntity<MultiValueMap<String, Object>>with the archives containing the Archival Unit artifacts. - See Also:
-
getObjectMapper
- Specified by:
getObjectMapperin interfaceAusApiDelegate
-