Class ArchivesApiServiceImpl

java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.rs.impl.ArchivesApiServiceImpl
All Implemented Interfaces:
ArchivesApiDelegate

@Service public class ArchivesApiServiceImpl extends BaseSpringApiServiceImpl implements ArchivesApiDelegate
  • Constructor Details

    • ArchivesApiServiceImpl

      @Autowired public ArchivesApiServiceImpl(jakarta.servlet.http.HttpServletRequest request)
  • Method Details

    • addArtifacts

      public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> addArtifacts(String auId, org.springframework.web.multipart.MultipartFile archive, String namespace, Boolean storeDuplicate, String excludeStatusPattern)
      Controller for POST /archives.

      Imports the artifacts from an archive into this LOCKSS Repository Service.

      Specified by:
      addArtifacts in interface ArchivesApiDelegate
      Parameters:
      auId - A String containing the AUID of the artifacts.
      archive - A MultipartFile containing the archive.
      namespace - A String containing the namespace of the artifacts.
      storeDuplicate - A Boolean indicating whether artifacts whose content is identical to the previous version should be stored
      excludeStatusPattern - A String containing a regexp. WARC records whose HTTP response status code matches will not be added to the repository
      Returns:
      See Also:
    • sendCacheInvalidateAu

      protected void sendCacheInvalidateAu(org.lockss.util.rest.repo.util.ArtifactCache.InvalidateOp op, String auid)