public interface ArchiveClient
Modifier and Type | Method and Description |
---|---|
OrderItem |
export(SearchResults searchResults,
ExportConfiguration exportConfiguration,
java.lang.String outputName)
Start the export of the search results for the specified export configuration.
|
OrderItem |
exportAndWaitForDownloadLink(SearchResults searchResults,
ExportConfiguration exportConfiguration,
java.lang.String outputName,
java.util.concurrent.TimeUnit timeUnit,
long timeOut)
Start and wait the export of the search results for the specified export configuration.
|
ContentResult |
fetchContent(java.lang.String contentId)
Fetch the content for the specified content id.
|
ContentResult |
fetchOrderContent(OrderItem orderItem)
Fetch the content for the specified order item.
|
java.lang.String |
ingest(java.io.InputStream sip)
Ingest a Submission Information Package (SIP) into the Archive.
|
java.lang.String |
ingestDirect(java.io.InputStream sip)
Ingest a Submission Information Package (SIP) into the Archive.
|
QueryResult |
query(SearchQuery query,
java.lang.String aic,
java.lang.String schema,
int pageSize)
Execute a query against the Archive.
|
SearchResults |
search(SearchQuery searchQuery,
SearchComposition searchComposition)
Get the search results for the specified search query and composition.
|
LinkContainer |
uploadTransformation(ExportTransformation exportTransformation,
java.io.InputStream zip)
Upload the transformation zip with the stylesheet into the Archive.
|
java.lang.String ingest(java.io.InputStream sip) throws java.io.IOException
sip
- The SIP to add to the Archivejava.io.IOException
- When an I/O error occursjava.lang.String ingestDirect(java.io.InputStream sip) throws java.io.IOException
sip
- The SIP to add to the Archivejava.io.IOException
- When an I/O error occursQueryResult query(SearchQuery query, java.lang.String aic, java.lang.String schema, int pageSize) throws java.io.IOException
query
- The query.aic
- The name of the AIC.schema
- The result set schema.pageSize
- The page size of the result set.java.io.IOException
- When an I/O error occursContentResult fetchContent(java.lang.String contentId) throws java.io.IOException
contentId
- The id of the content to fetch.java.io.IOException
- When an I/O error occursContentResult fetchOrderContent(OrderItem orderItem) throws java.io.IOException
orderItem
- The order item.java.io.IOException
- When an I/O error occursSearchResults search(SearchQuery searchQuery, SearchComposition searchComposition) throws java.io.IOException
searchQuery
- The search query.searchComposition
- The search composition.java.io.IOException
- When an I/O error occursOrderItem export(SearchResults searchResults, ExportConfiguration exportConfiguration, java.lang.String outputName) throws java.io.IOException
searchResults
- The search results.exportConfiguration
- The export configuration.outputName
- The output name of result package.java.io.IOException
- When an I/O error occursOrderItem exportAndWaitForDownloadLink(SearchResults searchResults, ExportConfiguration exportConfiguration, java.lang.String outputName, java.util.concurrent.TimeUnit timeUnit, long timeOut) throws java.io.IOException
searchResults
- The search results.exportConfiguration
- The export configuration.outputName
- The output name of result package.timeUnit
- The unit of the timeOut
valuetimeOut
- The time out of export processjava.io.IOException
- When an I/O error occursLinkContainer uploadTransformation(ExportTransformation exportTransformation, java.io.InputStream zip) throws java.io.IOException
exportTransformation
- The export transformation.zip
- The input stream of zip with stylesheet.java.io.IOException
- When an I/O error occurs