Package org.lockss.laaws.poller.impl
Class WsApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.poller.impl.WsApiServiceImpl
- All Implemented Interfaces:
WsApiDelegate
-
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<String>deleteHash(String requestId) Removes from the system an asynchronous hashing operation, terminating it if it's still running.org.springframework.http.ResponseEntityorg.springframework.http.ResponseEntityProvides the result of an asynchronous hashing operation.org.springframework.http.ResponseEntityProvides the selected properties of selected peers.org.springframework.http.ResponseEntityProvides the selected properties of selected polls.org.springframework.http.ResponseEntitygetRepositories(String repositoryQuery) GET /aurepositories?query={repositoryQuery}: Provides the selected properties of selected repositories in the system.org.springframework.http.ResponseEntitygetRepositorySpaces(String repositorySpaceQuery) GET /repositoryspaces?query={repositoryQuery}: Provides the selected properties of selected repository spaces in the system.org.springframework.http.ResponseEntityProvides the selected properties of selected votes.org.springframework.http.ResponseEntityorg.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.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.WsApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
WsApiServiceImpl
@Autowired public WsApiServiceImpl(jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
putImportFile
public 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.- Specified by:
putImportFilein interfaceWsApiDelegate- Parameters:
targetBaseUrlPath- 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- AList<String>with the user-specified properties.- Returns:
- a
ResponseEntity<Void>. - See Also:
-
getRepositories
GET /aurepositories?query={repositoryQuery}: Provides the selected properties of selected repositories in the system.- Specified by:
getRepositoriesin interfaceWsApiDelegate- Parameters:
repositoryQuery- A String with the SQL-like query used to specify what properties to retrieve from which repository.- Returns:
- a
List<RepositoryWsResult>with the results. - See Also:
-
deleteHash
Removes from the system an asynchronous hashing operation, terminating it if it's still running.- Specified by:
deleteHashin interfaceWsApiDelegate- Parameters:
requestId- A String with the identifier of the requested asynchronous hashing operation.- Returns:
- a
ResponseEntity<String>with the result of the removal of the hashing operation. - See Also:
-
getAllHashes
public org.springframework.http.ResponseEntity getAllHashes()- Specified by:
getAllHashesin interfaceWsApiDelegate- See Also:
-
getHash
Provides the result of an asynchronous hashing operation.- Specified by:
getHashin interfaceWsApiDelegate- Parameters:
requestId- A String with the identifier of the requested asynchronous hashing operation.- Returns:
- a
ResponseEntity<MultiValueMap<String, Object>>with the result of the hashing operation. - See Also:
-
putHash
public org.springframework.http.ResponseEntity putHash(org.lockss.ws.entities.HasherWsParams hasherWsParams, Boolean isAsynchronous) - Specified by:
putHashin interfaceWsApiDelegate- See Also:
-
getPeers
Provides the selected properties of selected peers.- Specified by:
getPeersin interfaceWsApiDelegate- Parameters:
peerQuery- A String with the SQL-like query used to specify what properties to retrieve from which peers.- Returns:
- a
ResponseEntity<List<PeerWsResult>>with the results. - See Also:
-
getPolls
Provides the selected properties of selected polls.- Specified by:
getPollsin interfaceWsApiDelegate- Parameters:
pollQuery- A String with the SQL-like query used to specify what properties to retrieve from which polls.- Returns:
- a
ResponseEntity<List<PollWsResult>>with the results. - See Also:
-
getRepositorySpaces
GET /repositoryspaces?query={repositoryQuery}: Provides the selected properties of selected repository spaces in the system.- Specified by:
getRepositorySpacesin interfaceWsApiDelegate- Parameters:
repositorySpaceQuery- A String with the SQL-like query used to specify what properties to retrieve from which repository space.- Returns:
- a
List<RepositorySpaceWsResult>with the results. - See Also:
-
getVotes
Provides the selected properties of selected votes.- Specified by:
getVotesin interfaceWsApiDelegate- Parameters:
voteQuery- A String with the SQL-like query used to specify what properties to retrieve from which votes.- Returns:
- a
ResponseEntity<List<VoteWsResult>>with the results. - See Also:
-