@Service public class WsApiServiceImpl extends BaseSpringApiServiceImpl implements WsApiDelegate
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 |
|---|
WsApiServiceImpl(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
org.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.ResponseEntity |
getAllHashes() |
org.springframework.http.ResponseEntity |
getHash(String requestId)
Provides the result of an asynchronous hashing operation.
|
org.springframework.http.ResponseEntity |
getPeers(String peerQuery)
Provides the selected properties of selected peers.
|
org.springframework.http.ResponseEntity |
getPolls(String pollQuery)
Provides the selected properties of selected polls.
|
org.springframework.http.ResponseEntity |
getRepositories(String repositoryQuery)
GET /aurepositories?query={repositoryQuery}: Provides the selected properties
of selected repositories in the system.
|
org.springframework.http.ResponseEntity |
getRepositorySpaces(String repositorySpaceQuery)
GET /repositoryspaces?query={repositoryQuery}: Provides the selected
properties of selected repository spaces in the system.
|
org.springframework.http.ResponseEntity |
getVotes(String voteQuery)
Provides the selected properties of selected votes.
|
org.springframework.http.ResponseEntity |
putHash(org.lockss.ws.entities.HasherWsParams hasherWsParams,
Boolean isAsynchronous) |
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, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReadyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptHeader, getObjectMapper, getRequest@Autowired public WsApiServiceImpl(javax.servlet.http.HttpServletRequest request)
public org.springframework.http.ResponseEntity<Void> putImportFile(String targetBaseUrlPath, String targetUrl, org.springframework.web.multipart.MultipartFile file, List<String> userProperties)
putImportFile in interface WsApiDelegatetargetBaseUrlPath - 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>.WsApi.putImportFile(java.lang.String, java.lang.String, org.springframework.web.multipart.MultipartFile, java.util.List<java.lang.String>)public org.springframework.http.ResponseEntity getRepositories(String repositoryQuery)
getRepositories in interface WsApiDelegaterepositoryQuery - A String with the
SQL-like
query used to specify what properties to
retrieve from which repository.List<RepositoryWsResult> with the results.WsApi.getRepositories(java.lang.String)public org.springframework.http.ResponseEntity<String> deleteHash(String requestId)
deleteHash in interface WsApiDelegaterequestId - A String with the identifier of the requested asynchronous
hashing operation.ResponseEntity<String> with the result of the removal of
the hashing operation.WsApi.deleteHash(java.lang.String)public org.springframework.http.ResponseEntity getAllHashes()
getAllHashes in interface WsApiDelegateWsApi.getAllHashes()public org.springframework.http.ResponseEntity getHash(String requestId)
getHash in interface WsApiDelegaterequestId - A String with the identifier of the requested asynchronous
hashing operation.ResponseEntity<MultiValueMap<String, Object>> with the
result of the hashing operation.WsApi.getHash(java.lang.String)public org.springframework.http.ResponseEntity putHash(org.lockss.ws.entities.HasherWsParams hasherWsParams,
Boolean isAsynchronous)
putHash in interface WsApiDelegateWsApi.putHash(org.lockss.ws.entities.HasherWsParams, java.lang.Boolean)public org.springframework.http.ResponseEntity getPeers(String peerQuery)
getPeers in interface WsApiDelegatepeerQuery - A String with the
SQL-like
query used to specify what properties to retrieve
from which peers.ResponseEntity<List<PeerWsResult>> with the results.WsApi.getPeers(java.lang.String)public org.springframework.http.ResponseEntity getPolls(String pollQuery)
getPolls in interface WsApiDelegatepollQuery - A String with the
SQL-like
query used to specify what properties to retrieve
from which polls.ResponseEntity<List<PollWsResult>> with the results.WsApi.getPolls(java.lang.String)public org.springframework.http.ResponseEntity getRepositorySpaces(String repositorySpaceQuery)
getRepositorySpaces in interface WsApiDelegaterepositorySpaceQuery - A String with the
SQL-like
query used to specify what properties to
retrieve from which repository space.List<RepositorySpaceWsResult> with the results.WsApi.getRepositorySpaces(java.lang.String)public org.springframework.http.ResponseEntity getVotes(String voteQuery)
getVotes in interface WsApiDelegatevoteQuery - A String with the
SQL-like
query used to specify what properties to retrieve
from which votes.ResponseEntity<List<VoteWsResult>> with the results.WsApi.getVotes(java.lang.String)Copyright © 2000–2023 LOCKSS Program. All rights reserved.