public interface QueryService extends Service
Modifier and Type | Method and Description |
---|---|
void |
clearFilter()
Clears the last applied filter.
|
void |
clearLastResult()
Clears the result of the last query.
|
int |
executeCountQuery(com.saperion.rmi.SaQueryInfo query)
Executes a count query.
|
ModelResult |
executePagingQuery(ResultPaging paging)
Execute query with paging.
|
ModelResult |
executeQuery(com.saperion.rmi.SaQueryInfo queryInfo)
Execute query.
|
DocumentDatabaseMetaInfo |
getAttachmentInfo(com.saperion.intf.wf.TaskInfo info)
Loads the attachment for the specified
TaskInfo . |
Map<String,com.saperion.intf.SaFieldDescription> |
getFieldDescriptions(String ddcName)
Returns a map of
|
int |
getHitCount(com.saperion.rmi.SaQueryInfo info)
Returns the number of hits for the specified query.
|
ResultProperties |
getInboxTaskProperties(String taskId)
Returns the metadata for a task with the specified ID.
|
ModelResult |
getLastResult() |
ResultProperties |
getResultAtIndex(int index)
Returns the ResultProperties contained in the result list of the last search at the specified
index.
|
ResultProperties |
getResultForId(DocumentId id)
Returns the ResultProperties contained in the result list of the last search with the
specified id.
|
ModelResult |
getResultPage(int page,
boolean newPaging)
Get page from last result.
|
ResultProperties |
getResultPropertiesForRevision(DocumentId id)
Returns the ResultProperties contained in the result list of the last search with the
specified revisionId.
|
ModelResult |
performClientSideFiltering(RowFilterSettings settings)
Filters the current result set.
|
ModelResult |
performClientSideSorting(Map<String,SortDirection> columns,
int page)
Sorts the current result set.
|
ModelResult |
searchFolderDocuments(String folderId,
String folderDDC,
com.saperion.rmi.SaQueryInfo hqlFilter)
HQL search extended with additional folder informations and depth.
|
void |
setPageSize(int size)
Sets the page size.
|
void |
updateRow(ResultProperties documentInfo)
Updates the row in the previous query-result.
|
ModelResult executeQuery(com.saperion.rmi.SaQueryInfo queryInfo) throws AuthenticationException, SystemException, WorkflowException, DatabaseException
queryInfo
- query statementAuthenticationException
- authentication exceptionWorkflowException
- workflow exceptionSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionModelResult executePagingQuery(ResultPaging paging) throws AuthenticationException, SystemException
paging
- pagingAuthenticationException
- authentication exceptionSystemException
- system exceptionint executeCountQuery(com.saperion.rmi.SaQueryInfo query) throws AuthenticationException, SystemException
query
- Count queryAuthenticationException
- authentication exceptionSystemException
- system exceptionResultProperties getResultAtIndex(int index)
index
- indexResultProperties getResultForId(DocumentId id) throws DocumentIdentificationException
id
- Document idDocumentIdentificationException
- Identification exceptionResultProperties getResultPropertiesForRevision(DocumentId id) throws DocumentIdentificationException
id
- Document idDocumentIdentificationException
- Identification exceptionModelResult getLastResult()
ModelResult getResultPage(int page, boolean newPaging)
page
- page to displaynewPaging
- set to true, when the paging has changed and needs to be reinitializedMap<String,com.saperion.intf.SaFieldDescription> getFieldDescriptions(String ddcName) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
ddcName
- The name of the DDC to get the SaFieldDescriptions of.com.saperion.exception.SaSystemException
- system exceptioncom.saperion.exception.SaAuthenticationException
- authentication exceptionModelResult performClientSideSorting(Map<String,SortDirection> columns, int page)
columns
- the columns and directions used for sortingpage
- the page currently displayedModelResult performClientSideFiltering(RowFilterSettings settings)
settings
- filter settingsvoid clearFilter()
void setPageSize(int size)
size
- page sizeModelResult searchFolderDocuments(String folderId, String folderDDC, com.saperion.rmi.SaQueryInfo hqlFilter) throws SystemException, AuthenticationException
folderId
- folder idfolderDDC
- Folder DDChqlFilter
- hql filter containing only the where-clauseSystemException
- system exceptionAuthenticationException
- authentication exceptionint getHitCount(com.saperion.rmi.SaQueryInfo info) throws SystemException, AuthenticationException, DatabaseException
info
- query to get hits forSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionResultProperties getInboxTaskProperties(String taskId) throws AuthenticationException, SystemException, WorkflowException
taskId
- ID of the task (SYSROWID)AuthenticationException
- authentication error when loading metadataSystemException
- system error when loading metadataWorkflowException
- workflow error when loading metadataDocumentDatabaseMetaInfo getAttachmentInfo(com.saperion.intf.wf.TaskInfo info) throws SystemException, AuthenticationException, DatabaseException
TaskInfo
.info
- task to load attachment forSystemException
- system error when loading attachmentAuthenticationException
- authentication error when loading attachmentDatabaseException
- database error when loading attachmentvoid clearLastResult()
void updateRow(ResultProperties documentInfo) throws DocumentIdentificationException
IllegalArgumentException
when
the specified row is not contained in the previous query-result.
The provided metadata must contain the same original index as the row that is to be updated.documentInfo
- the metadata of the row to be updated.DocumentIdentificationException
- when the documentInfo did not contain an ID or contained
an incomplete ID.Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.