public final class QueryUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
autoGetElementNumber(List<com.saperion.intf.SaDocInfo.ElementInfo> elements)
Automatically detects if the document contains only pages of a multipage-tiff that was
archived without using DOCLOADORIGINAL.
|
static List<com.saperion.intf.SaDocumentInfo> |
executePagingQuery(com.saperion.connector.SaClassicConnector connector,
com.saperion.rmi.SaQueryInfo query,
int count,
int activePage)
Executes a paged query by the given parameters.
|
static List<com.saperion.intf.SaDocInfo.ElementInfo> |
getElements(com.saperion.connector.SaClassicConnector connector,
String xhdoc)
Retrieves and returns the elements of the given document by requesting
them via the given SaClassicConnector.
|
static String |
getFileName(List<com.saperion.intf.SaDocInfo.ElementInfo> elements,
int element)
Retrieves and returns the filename of the specified element by requesting
it via the given SaClassicConnector.
|
static String |
getFileName(com.saperion.connector.SaClassicConnector connector,
String xhdoc,
int element)
Retrieves and returns the filename of the specified element by requesting
it via the given SaClassicConnector.
|
public static List<com.saperion.intf.SaDocumentInfo> executePagingQuery(com.saperion.connector.SaClassicConnector connector, com.saperion.rmi.SaQueryInfo query, int count, int activePage) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaDBException
connector
- The SaClassicConnector to be used.query
- The query to invoke.count
- The maximum number of results.activePage
- The page to be returned.com.saperion.exception.SaSystemException
- if an error occurs.com.saperion.exception.SaAuthenticationException
- if an error occurs.com.saperion.exception.SaDBException
- if an error occurs.public static List<com.saperion.intf.SaDocInfo.ElementInfo> getElements(com.saperion.connector.SaClassicConnector connector, String xhdoc) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
connector
- The SaClassicConnector to be used.xhdoc
- The document id to be used.com.saperion.exception.SaSystemException
- if an error occurs.com.saperion.exception.SaAuthenticationException
- if an authentication error occurs.public static String getFileName(com.saperion.connector.SaClassicConnector connector, String xhdoc, int element) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
connector
- The SaClassicConnector to be used.xhdoc
- The document id to be used.element
- The element number to be used.com.saperion.exception.SaSystemException
- if an error occurs.com.saperion.exception.SaAuthenticationException
- if an authentication error occurs.public static String getFileName(List<com.saperion.intf.SaDocInfo.ElementInfo> elements, int element) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
elements
- The document's structureelement
- The element number to be used.com.saperion.exception.SaSystemException
- if an error occurs.com.saperion.exception.SaAuthenticationException
- if an authentication error occurs.public static int autoGetElementNumber(List<com.saperion.intf.SaDocInfo.ElementInfo> elements) throws Exception
elements
- the document's structureException
- when the structure is emptyCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.