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, isActive
public QueryClassicConnectorService(int pageSize)
pageSize
- page size of viewpublic ResultProperties getInboxTaskProperties(String taskId) throws AuthenticationException, SystemException, WorkflowException
QueryService
getInboxTaskProperties
in interface QueryService
taskId
- 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 QueryService
info
- 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 QueryService
paging
- 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 QueryService
query
- 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 QueryService
query
- query statementAuthenticationException
- authentication exceptionSystemException
- system exceptionWorkflowException
- workflow exceptionDatabaseException
- database exceptionQueryService.executeQuery(com.saperion.rmi.SaQueryInfo)
public final ModelResult getLastResult()
getLastResult
in interface QueryService
QueryService.getLastResult()
public final ResultProperties getResultAtIndex(int index)
getResultAtIndex
in interface QueryService
index
- indexQueryService.getResultAtIndex(int)
public ResultProperties getResultForId(DocumentId id) throws DocumentIdentificationException
getResultForId
in interface QueryService
id
- Document idDocumentIdentificationException
- Identification exceptionQueryService.getResultForId(com.saperion.ngc.model.document.DocumentId)
public ResultProperties getResultPropertiesForRevision(DocumentId id)
getResultPropertiesForRevision
in interface QueryService
id
- Document id(com.saperion.ngc.model.document.DocumentId)
public final ModelResult performClientSideSorting(Map<String,SortDirection> columns, int page)
performClientSideSorting
in interface QueryService
columns
- the columns and directions used for sortingpage
- the page currently displayedQueryService.performClientSideSorting(java.util.Map,
int)
public ModelResult performClientSideFiltering(RowFilterSettings settings)
performClientSideFiltering
in interface QueryService
settings
- filter settingspublic void clearFilter()
clearFilter
in interface QueryService
public ModelResult getResultPage(int page, boolean withNewPaging)
getResultPage
in interface QueryService
page
- 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 QueryService
ddcName
- 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)
QueryService
setPageSize
in interface QueryService
size
- page sizepublic ModelResult searchFolderDocuments(String folderId, String folderDDC, com.saperion.rmi.SaQueryInfo hqlFilter) throws SystemException, AuthenticationException
searchFolderDocuments
in interface QueryService
folderId
- 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 QueryService
info
- query to get hits forSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionQueryService.getHitCount(com.saperion.rmi.SaQueryInfo)
public void clearLastResult()
QueryService
clearLastResult
in interface QueryService
public void updateRow(ResultProperties documentInfo) throws DocumentIdentificationException
QueryService
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.updateRow
in interface QueryService
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.