@Service public class CollectionsApiServiceImpl extends SpringLockssBaseApiController implements CollectionsApiDelegate
| Constructor and Description |
|---|
CollectionsApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.servlet.http.HttpServletRequest request)
Constructor for autowiring.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Artifact> |
createArtifact(String collectionid,
String auid,
String uri,
org.springframework.web.multipart.MultipartFile content,
org.springframework.web.multipart.MultipartFile aspectParts)
POST /collections/{collectionid}/artifacts:
Adds artifacts to the repository
|
org.springframework.http.ResponseEntity<Void> |
deleteArtifact(String collectionid,
String artifactid)
DELETE /collections/{collectionid}/artifacts/{artifactid}:
Deletes an artifact from a collection managed by this repository.
|
ApiStatus |
getApiStatus()
Provides the status object.
|
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> |
getArtifact(String collectionid,
String artifactid,
String accept)
GET /collections/{collectionid}/artifacts/{artifactid}:
Retrieves an artifact from the repository.
|
org.springframework.http.ResponseEntity<Long> |
getArtifactsSize(String collectionid,
String auid,
String url,
String urlPrefix,
String version)
GET /collections/{collectionid}/aus/{auid}/size:
Get the size of Archival Unit artifacts in a collection.
|
org.springframework.http.ResponseEntity<List<String>> |
getAus(String collectionid)
GET /collections/{collectionid}/aus: Get Archival Unit IDs (AUIDs) in a
collection.
|
org.springframework.http.ResponseEntity<List<String>> |
getCollections()
GET /collections:
Returns a list of collection names managed by this repository.
|
org.springframework.http.ResponseEntity<List<Artifact>> |
getCommittedArtifacts(String collectionid,
String auid,
String url,
String urlPrefix,
String version)
GET /collections/{collectionid}/aus/{auid}/artifacts:
Get committed artifacts in a collection and Archival Unit.
|
Optional<com.fasterxml.jackson.databind.ObjectMapper> |
getObjectMapper() |
Optional<javax.servlet.http.HttpServletRequest> |
getRequest() |
org.springframework.http.ResponseEntity<Artifact> |
updateArtifact(String collectionid,
String artifactid,
Boolean committed)
PUT /collections/{collectionid}/artifacts/{artifactid}:
Updates an artifact's properties
Currently limited to updating an artifact's committed status.
|
getStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAcceptHeader, getStatus@Autowired
public CollectionsApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
javax.servlet.http.HttpServletRequest request)
objectMapper - An ObjectMapper for JSON processing.request - An HttpServletRequest with the HTTP request.public org.springframework.http.ResponseEntity<List<String>> getCollections()
getCollections in interface CollectionsApiDelegateCollectionsApi.getCollections()public org.springframework.http.ResponseEntity<Void> deleteArtifact(String collectionid, String artifactid)
deleteArtifact in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the artifact.artifactid - A String with the Identifier of the artifact.ResponseEntity<Void>.CollectionsApi.deleteArtifact(java.lang.String, java.lang.String)public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> getArtifact(String collectionid, String artifactid, String accept)
getArtifact in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the artifact.artifactid - A String with the Identifier of the artifact.ResponseEntity<StreamingResponseBody>.CollectionsApi.getArtifact(java.lang.String, java.lang.String, java.lang.String)public org.springframework.http.ResponseEntity<Artifact> updateArtifact(String collectionid, String artifactid, Boolean committed)
updateArtifact in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the artifact.artifactid - A String with the Identifier of the artifact.committed - A Boolean with the artifact committed status.ResponseEntity<Artifact>.CollectionsApi.updateArtifact(java.lang.String, java.lang.String, java.lang.Boolean)public org.springframework.http.ResponseEntity<Artifact> createArtifact(String collectionid, String auid, String uri, org.springframework.web.multipart.MultipartFile content, org.springframework.web.multipart.MultipartFile aspectParts)
createArtifact in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the artifact.auid - A String with the Archival Unit ID (AUID) of new artifact.uri - A String with the URI represented by this artifact.content - A MultipartFile with the artifact content.aspectParts - A MultipartFile... with the artifact aspects.ResponseEntity<Artifact>.CollectionsApi.createArtifact(java.lang.String, java.lang.String, java.lang.String, org.springframework.web.multipart.MultipartFile, org.springframework.web.multipart.MultipartFile)public org.springframework.http.ResponseEntity<List<Artifact>> getCommittedArtifacts(String collectionid, String auid, String url, String urlPrefix, String version)
getCommittedArtifacts in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the artifact.auid - A String with the Archival Unit ID (AUID) of artifact.url - A String with the URL contained by the artifacts.urlPrefix - A String with the prefix to be matched by the artifact URLs.version - An Integer with the version of the URL contained by the artifacts.ResponseEntity<List<Artifact>>.CollectionsApi.getCommittedArtifacts(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)public org.springframework.http.ResponseEntity<Long> getArtifactsSize(String collectionid, String auid, String url, String urlPrefix, String version)
getArtifactsSize in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the Archival
Unit.auid - A String with the Archival Unit ID (AUID).url - A String with the URL contained by the artifacts.urlPrefix - A String with the prefix to be matched by the artifact URLs.version - An Integer with the version of the URL contained by the artifacts.ResponseEntity<Long>.CollectionsApi.getArtifactsSize(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)public org.springframework.http.ResponseEntity<List<String>> getAus(String collectionid)
getAus in interface CollectionsApiDelegatecollectionid - A String with the name of the collection containing the archival
units.ResponseEntity<List<String>>.CollectionsApi.getAus(java.lang.String)public Optional<com.fasterxml.jackson.databind.ObjectMapper> getObjectMapper()
getObjectMapper in interface CollectionsApiDelegatepublic Optional<javax.servlet.http.HttpServletRequest> getRequest()
getRequest in interface CollectionsApiDelegatepublic ApiStatus getApiStatus()
getApiStatus in interface SpringLockssBaseApigetApiStatus in class SpringLockssBaseApiControllerCopyright © 2000–2019 LOCKSS Program. All rights reserved.