public class QueryClassicConnectorService extends ClassicConnectorService implements QueryService
ddcCache| Constructor and Description |
|---|
QueryClassicConnectorService(int pageSize)
Constructor.
|
| 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 query)
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 withNewPaging)
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.
|
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActivepublic QueryClassicConnectorService(int pageSize)
pageSize - page size of viewpublic ResultProperties getInboxTaskProperties(String taskId) throws AuthenticationException, SystemException, WorkflowException
QueryServicegetInboxTaskProperties in interface QueryServicetaskId - ID of the task (SYSROWID)AuthenticationException - authentication error when loading metadataSystemException - system error when loading metadataWorkflowException - workflow error when loading metadatapublic DocumentDatabaseMetaInfo getAttachmentInfo(com.saperion.intf.wf.TaskInfo info) throws SystemException, AuthenticationException, DatabaseException
TaskInfo.getAttachmentInfo in interface QueryServiceinfo - task to load attachment forSystemException - system error when loading attachmentAuthenticationException - authentication error when loading attachmentDatabaseException - database error when loading attachmentQueryService.getAttachmentInfo(com.saperion.intf.wf.TaskInfo)public final ModelResult executePagingQuery(ResultPaging paging) throws AuthenticationException, SystemException
executePagingQuery in interface QueryServicepaging - pagingAuthenticationException - authentication exceptionSystemException - system exception(com.saperion.ngc.model.resultset.ResultPaging)public final int executeCountQuery(com.saperion.rmi.SaQueryInfo query)
throws AuthenticationException,
SystemException
executeCountQuery in interface QueryServicequery - Count queryAuthenticationException - authentication exceptionSystemException - system exceptionQueryService.executeCountQuery(com.saperion.rmi.SaQueryInfo)public final ModelResult executeQuery(com.saperion.rmi.SaQueryInfo query) throws AuthenticationException, SystemException, WorkflowException, DatabaseException
executeQuery in interface QueryServicequery - query statementAuthenticationException - authentication exceptionSystemException - system exceptionWorkflowException - workflow exceptionDatabaseException - database exceptionQueryService.executeQuery(com.saperion.rmi.SaQueryInfo)public final ModelResult getLastResult()
getLastResult in interface QueryServiceQueryService.getLastResult()public final ResultProperties getResultAtIndex(int index)
getResultAtIndex in interface QueryServiceindex - indexQueryService.getResultAtIndex(int)public ResultProperties getResultForId(DocumentId id) throws DocumentIdentificationException
getResultForId in interface QueryServiceid - Document idDocumentIdentificationException - Identification exceptionQueryService.getResultForId(com.saperion.ngc.model.document.DocumentId)public ResultProperties getResultPropertiesForRevision(DocumentId id)
getResultPropertiesForRevision in interface QueryServiceid - Document id(com.saperion.ngc.model.document.DocumentId)public final ModelResult performClientSideSorting(Map<String,SortDirection> columns, int page)
performClientSideSorting in interface QueryServicecolumns - the columns and directions used for sortingpage - the page currently displayedQueryService.performClientSideSorting(java.util.Map,
int)public ModelResult performClientSideFiltering(RowFilterSettings settings)
performClientSideFiltering in interface QueryServicesettings - filter settingspublic void clearFilter()
clearFilter in interface QueryServicepublic ModelResult getResultPage(int page, boolean withNewPaging)
getResultPage in interface QueryServicepage - page to displaywithNewPaging - set to true, when the paging has changed and needs to be reinitializedpublic Map<String,com.saperion.intf.SaFieldDescription> getFieldDescriptions(String ddcName) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
getFieldDescriptions in interface QueryServiceddcName - The name of the DDC to get the SaFieldDescriptions of.com.saperion.exception.SaSystemException - system exceptioncom.saperion.exception.SaAuthenticationException - authentication exceptionQueryService.getFieldDescriptions(java.lang.String)public void setPageSize(int size)
QueryServicesetPageSize in interface QueryServicesize - page sizepublic ModelResult searchFolderDocuments(String folderId, String folderDDC, com.saperion.rmi.SaQueryInfo hqlFilter) throws SystemException, AuthenticationException
searchFolderDocuments in interface QueryServicefolderId - folder idfolderDDC - Folder DDChqlFilter - hql filter containing only the where-clauseSystemException - system exceptionAuthenticationException - authentication exceptionQueryService.searchFolderDocuments(java.lang.String,
java.lang.String, com.saperion.rmi.SaQueryInfo)public int getHitCount(com.saperion.rmi.SaQueryInfo info)
throws SystemException,
AuthenticationException,
DatabaseException
getHitCount in interface QueryServiceinfo - query to get hits forSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionQueryService.getHitCount(com.saperion.rmi.SaQueryInfo)public void clearLastResult()
QueryServiceclearLastResult in interface QueryServicepublic void updateRow(ResultProperties documentInfo) throws DocumentIdentificationException
QueryServiceIllegalArgumentException 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.updateRow in interface QueryServicedocumentInfo - the metadata of the row to be updated.DocumentIdentificationException - when the documentInfo did not contain an ID or contained
an incomplete ID.Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.