public class InfoArchiveRestClient extends java.lang.Object implements ArchiveClient, InfoArchiveLinkRelations
LINK_ADD, LINK_AICS, LINK_AIPS, LINK_ALLCOMPONENTS, LINK_APPLICATIONS, LINK_CI, LINK_CONFIGURATION, LINK_CONTENT_ADDRESSED_STORAGES, LINK_CONTENTS, LINK_CRYPTO_OBJECTS, LINK_CUSTOM_STORAGES, LINK_DATABASES, LINK_DIP, LINK_DOWNLOAD, LINK_EXPORT, LINK_EXPORT_CONFIG, LINK_EXPORT_PIPELINE, LINK_EXPORT_TRANSFORMATION, LINK_EXPORT_TRANSFORMATION_ZIP, LINK_FEDERATIONS, LINK_FILE_SYSTEM_FOLDERS, LINK_FILE_SYSTEM_ROOTS, LINK_HOLDING_CRYPTOS, LINK_HOLDINGS, LINK_INGEST, LINK_INGEST_DIRECT, LINK_INGEST_NODES, LINK_INGESTS, LINK_JOB_CONFIRMATION, LINK_JOB_DEFINITIONS, LINK_JOB_INSTANCES, LINK_LIBRARIES, LINK_PDI_CRYPTOS, LINK_PDI_SCHEMAS, LINK_PDIS, LINK_PREFIX, LINK_QUERIES, LINK_QUERY_QUOTAS, LINK_RECEIVER_NODES, LINK_RESULT_CONFIGURATION_HELPERS, LINK_RETENTION_POLICIES, LINK_SEARCH_COMPOSITIONS, LINK_SEARCHES, LINK_SPACE_ROOT_FOLDERS, LINK_SPACE_ROOT_LIBRARIES, LINK_SPACES, LINK_STORAGE_END_POINTS, LINK_STORES, LINK_TENANT, LINK_XFORMS
LINK_SELF
Constructor and Description |
---|
InfoArchiveRestClient(RestClient restClient,
ApplicationIngestionResourcesCache resourceCache) |
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.
|
public InfoArchiveRestClient(RestClient restClient, ApplicationIngestionResourcesCache resourceCache)
public java.lang.String ingest(java.io.InputStream sip) throws java.io.IOException
ArchiveClient
ingest
in interface ArchiveClient
sip
- The SIP to add to the Archivejava.io.IOException
- When an I/O error occurspublic java.lang.String ingestDirect(java.io.InputStream sip) throws java.io.IOException
ArchiveClient
ingestDirect
in interface ArchiveClient
sip
- The SIP to add to the Archivejava.io.IOException
- When an I/O error occurspublic QueryResult query(SearchQuery query, java.lang.String aic, java.lang.String schema, int pageSize) throws java.io.IOException
ArchiveClient
query
in interface ArchiveClient
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 occurspublic ContentResult fetchContent(java.lang.String contentId) throws java.io.IOException
ArchiveClient
fetchContent
in interface ArchiveClient
contentId
- The id of the content to fetch.java.io.IOException
- When an I/O error occurspublic ContentResult fetchOrderContent(OrderItem orderItem) throws java.io.IOException
ArchiveClient
fetchOrderContent
in interface ArchiveClient
orderItem
- The order item.java.io.IOException
- When an I/O error occurspublic SearchResults search(SearchQuery searchQuery, SearchComposition searchComposition) throws java.io.IOException
ArchiveClient
search
in interface ArchiveClient
searchQuery
- The search query.searchComposition
- The search composition.java.io.IOException
- When an I/O error occurspublic OrderItem export(SearchResults searchResults, ExportConfiguration exportConfiguration, java.lang.String outputName) throws java.io.IOException
ArchiveClient
export
in interface ArchiveClient
searchResults
- The search results.exportConfiguration
- The export configuration.outputName
- The output name of result package.java.io.IOException
- When an I/O error occurspublic OrderItem exportAndWaitForDownloadLink(SearchResults searchResults, ExportConfiguration exportConfiguration, java.lang.String outputName, java.util.concurrent.TimeUnit timeUnit, long timeOut) throws java.io.IOException
ArchiveClient
exportAndWaitForDownloadLink
in interface ArchiveClient
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 occurspublic LinkContainer uploadTransformation(ExportTransformation exportTransformation, java.io.InputStream zip) throws java.io.IOException
ArchiveClient
uploadTransformation
in interface ArchiveClient
exportTransformation
- The export transformation.zip
- The input stream of zip with stylesheet.java.io.IOException
- When an I/O error occurs