Class AusApiServiceImpl

java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.poller.impl.AusApiServiceImpl
All Implemented Interfaces:
AusApiDelegate

@Service public class AusApiServiceImpl extends BaseSpringApiServiceImpl implements AusApiDelegate
Service for accessing the repository artifacts.
  • 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:
      getExportFiles in interface AusApiDelegate
      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

      public Optional<com.fasterxml.jackson.databind.ObjectMapper> getObjectMapper()
      Specified by:
      getObjectMapper in interface AusApiDelegate