Package org.lockss.laaws.rs.impl
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
-
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.ResponseEntity<org.springframework.core.io.Resource>addArtifacts(String auId, org.springframework.web.multipart.MultipartFile archive, String namespace, Boolean storeDuplicate, String excludeStatusPattern) Controller forPOST /archives.protected voidMethods 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.rs.api.ArchivesApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
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 forPOST /archives.Imports the artifacts from an archive into this LOCKSS Repository Service.
- Specified by:
addArtifactsin interfaceArchivesApiDelegate- Parameters:
auId- AStringcontaining the AUID of the artifacts.archive- AMultipartFilecontaining the archive.namespace- AStringcontaining the namespace of the artifacts.storeDuplicate- ABooleanindicating whether artifacts whose content is identical to the previous version should be storedexcludeStatusPattern- AStringcontaining a regexp. WARC records whose HTTP response status code matches will not be added to the repository- Returns:
- See Also:
-
sendCacheInvalidateAu
-