@Service public class AusApiServiceImpl extends BaseSpringApiServiceImpl implements AusApiDelegate
BaseSpringApiServiceImpl.MapMessageListenerDEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME| Constructor and Description |
|---|
AusApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.servlet.http.HttpServletRequest request)
Constructor for autowiring.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Optional<com.fasterxml.jackson.databind.ObjectMapper> |
getObjectMapper() |
Optional<javax.servlet.http.HttpServletRequest> |
getRequest() |
org.springframework.http.ResponseEntity<Void> |
putImportFile(String targetBaseUrlPath,
String targetUrl,
org.springframework.web.multipart.MultipartFile file,
List<String> userProperties)
PUT /aus/import: Import a file as an artifact in an Archival Unit.
|
configMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getReadyWaitTime, getRunningLockssDaemon, getWaitTime, jmsSetUpDone, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, waitConfig, waitConfig, waitReady, waitReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptHeader@Autowired
public AusApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.servlet.http.HttpServletRequest request)
objectMapper - An ObjectMapper for JSON processing.request - An HttpServletRequest with the HTTP request.public org.springframework.http.ResponseEntity getExportFiles(String auid, String fileType, Boolean isCompress, Boolean isExcludeDirNodes, String xlateFilenames, String filePrefix, Long maxSize, Integer maxVersions)
getExportFiles in interface AusApiDelegateauid - 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.ResponseEntity<MultiValueMap<String, Object>> with the
archives containing the Archival Unit artifacts.AusApi.getExportFiles(java.lang.String, java.lang.String, java.lang.Boolean, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.Long, java.lang.Integer)public org.springframework.http.ResponseEntity<Void> putImportFile(String targetBaseUrlPath, String targetUrl, org.springframework.web.multipart.MultipartFile file, List<String> userProperties)
putImportFile in interface AusApiDelegatetargetBaseUrlPath - A String with the base URL path of the target
Archival Unit.targetUrl - A String with the target Archival Unit URL.file - A MultipartFile with the content of the file to be
imported.userProperties - A List<String> with the user-specified
properties.ResponseEntity<Void>.AusApi.putImportFile(java.lang.String, java.lang.String, org.springframework.web.multipart.MultipartFile, java.util.List<java.lang.String>)public Optional<com.fasterxml.jackson.databind.ObjectMapper> getObjectMapper()
getObjectMapper in interface AusApiDelegatepublic Optional<javax.servlet.http.HttpServletRequest> getRequest()
getRequest in interface AusApiDelegateCopyright © 2000–2021 LOCKSS Program. All rights reserved.