Package com.saperion.ngc.model.resultset
Class QueryClassicConnectorService
java.lang.Object
com.saperion.ngc.model.ClassicConnectorService
com.saperion.ngc.model.resultset.QueryClassicConnectorService
- All Implemented Interfaces:
- QueryService,- Service
Query service.
- 
Field SummaryFields inherited from class com.saperion.ngc.model.ClassicConnectorServiceddcCache
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidClears the last applied filter.voidClears the result of the last query.final intexecuteCountQuery(com.saperion.rmi.SaQueryInfo query) Executes a count query.final ModelResultexecutePagingQuery(ResultPaging paging) Execute query with paging.final ModelResultexecuteQuery(com.saperion.rmi.SaQueryInfo query) Execute query.getAttachmentInfo(com.saperion.intf.wf.TaskInfo info) Loads the attachment for the specifiedTaskInfo.getFieldDescriptions(String ddcName) Returns a map of <fieldname, SaFieldDescription> SaFieldDescriptions of the given DDC.intgetHitCount(com.saperion.rmi.SaQueryInfo info) Returns the number of hits for the specified query.getInboxTaskProperties(String taskId) Returns the metadata for a task with the specified ID.final ModelResultfinal ResultPropertiesgetResultAtIndex(int index) Returns the ResultProperties contained in the result list of the last search at the specified index.Returns the ResultProperties contained in the result list of the last search with the specified id.getResultPage(int page, boolean withNewPaging) Get page from last result.Returns the ResultProperties contained in the result list of the last search with the specified revisionId.performClientSideFiltering(RowFilterSettings settings) Filters the current result set.final ModelResultperformClientSideSorting(Map<String, SortDirection> columns, int page) Sorts the current result set.searchFolderDocuments(String folderId, String folderDDC, com.saperion.rmi.SaQueryInfo hqlFilter) HQL search extended with additional folder informations and depth.voidsetPageSize(int size) Sets the page size.voidupdateRow(ResultProperties documentInfo) Updates the row in the previous query-result.Methods inherited from class com.saperion.ngc.model.ClassicConnectorServiceconvertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
- 
Constructor Details- 
QueryClassicConnectorServicepublic QueryClassicConnectorService(int pageSize) Constructor.- Parameters:
- pageSize- page size of view
 
 
- 
- 
Method Details- 
getInboxTaskPropertiespublic ResultProperties getInboxTaskProperties(String taskId) throws AuthenticationException, SystemException, WorkflowException Description copied from interface:QueryServiceReturns the metadata for a task with the specified ID.- Specified by:
- getInboxTaskPropertiesin interface- QueryService
- Parameters:
- taskId- ID of the task (SYSROWID)
- Returns:
- task's metadata
- Throws:
- AuthenticationException- authentication error when loading metadata
- SystemException- system error when loading metadata
- WorkflowException- workflow error when loading metadata
 
- 
getAttachmentInfopublic DocumentDatabaseMetaInfo getAttachmentInfo(com.saperion.intf.wf.TaskInfo info) throws SystemException, AuthenticationException, DatabaseException Loads the attachment for the specifiedTaskInfo.- Specified by:
- getAttachmentInfoin interface- QueryService
- Parameters:
- info- task to load attachment for
- Returns:
- attachment or null if not found
- Throws:
- SystemException- system error when loading attachment
- AuthenticationException- authentication error when loading attachment
- DatabaseException- database error when loading attachment
- See Also:
 
- 
executePagingQuerypublic final ModelResult executePagingQuery(ResultPaging paging) throws AuthenticationException, SystemException Execute query with paging.- Specified by:
- executePagingQueryin interface- QueryService
- Parameters:
- paging- paging
- Returns:
- ModelResult
- Throws:
- AuthenticationException- authentication exception
- SystemException- system exception
- See Also:
 
- 
executeCountQuerypublic final int executeCountQuery(com.saperion.rmi.SaQueryInfo query) throws AuthenticationException, SystemException Executes a count query.- Specified by:
- executeCountQueryin interface- QueryService
- Parameters:
- query- Count query
- Returns:
- Count
- Throws:
- AuthenticationException- authentication exception
- SystemException- system exception
- See Also:
 
- 
executeQuerypublic final ModelResult executeQuery(com.saperion.rmi.SaQueryInfo query) throws AuthenticationException, SystemException, WorkflowException, DatabaseException Execute query.- Specified by:
- executeQueryin interface- QueryService
- Parameters:
- query- query statement
- Returns:
- ModelResult
- Throws:
- AuthenticationException- authentication exception
- SystemException- system exception
- WorkflowException- workflow exception
- DatabaseException- database exception
- See Also:
 
- 
getLastResult- Specified by:
- getLastResultin interface- QueryService
- Returns:
- The last query result that was sent to the view.
- See Also:
 
- 
getResultAtIndexReturns the ResultProperties contained in the result list of the last search at the specified index.- Specified by:
- getResultAtIndexin interface- QueryService
- Parameters:
- index- index
- Returns:
- ResultProperties at index
- See Also:
 
- 
getResultForIdReturns the ResultProperties contained in the result list of the last search with the specified id.- Specified by:
- getResultForIdin interface- QueryService
- Parameters:
- id- Document id
- Returns:
- ResultProperties with id
- Throws:
- DocumentIdentificationException- Identification exception
- See Also:
 
- 
getResultPropertiesForRevisionReturns the ResultProperties contained in the result list of the last search with the specified revisionId.- Specified by:
- getResultPropertiesForRevisionin interface- QueryService
- Parameters:
- id- Document id
- Returns:
- ResultProperties
- See Also:
 
- 
performClientSideSortingSorts the current result set.- Specified by:
- performClientSideSortingin interface- QueryService
- Parameters:
- columns- the columns and directions used for sorting
- page- the page currently displayed
- Returns:
- ModelResult
- See Also:
 
- 
performClientSideFilteringFilters the current result set.- Specified by:
- performClientSideFilteringin interface- QueryService
- Parameters:
- settings- filter settings
- Returns:
- ModelResult
 
- 
clearFilterpublic void clearFilter()Clears the last applied filter.- Specified by:
- clearFilterin interface- QueryService
 
- 
getResultPageGet page from last result.- Specified by:
- getResultPagein interface- QueryService
- Parameters:
- page- page to display
- withNewPaging- set to true, when the paging has changed and needs to be reinitialized
- Returns:
- ModelResult
 
- 
getFieldDescriptionspublic Map<String,com.saperion.intf.SaFieldDescription> getFieldDescriptions(String ddcName) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException Returns a map of <fieldname, SaFieldDescription> SaFieldDescriptions of the given DDC.- Specified by:
- getFieldDescriptionsin interface- QueryService
- Parameters:
- ddcName- The name of the DDC to get the SaFieldDescriptions of.
- Returns:
- a map of SaFieldDescriptions of the given DDC.
- Throws:
- com.saperion.exception.SaSystemException- system exception
- com.saperion.exception.SaAuthenticationException- authentication exception
- See Also:
 
- 
setPageSizepublic void setPageSize(int size) Description copied from interface:QueryServiceSets the page size.- Specified by:
- setPageSizein interface- QueryService
- Parameters:
- size- page size
 
- 
searchFolderDocumentspublic ModelResult searchFolderDocuments(String folderId, String folderDDC, com.saperion.rmi.SaQueryInfo hqlFilter) throws SystemException, AuthenticationException HQL search extended with additional folder informations and depth.- Specified by:
- searchFolderDocumentsin interface- QueryService
- Parameters:
- folderId- folder id
- folderDDC- Folder DDC
- hqlFilter- hql filter containing only the where-clause
- Returns:
- ModelResult to display
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
 
- 
getHitCountpublic int getHitCount(com.saperion.rmi.SaQueryInfo info) throws SystemException, AuthenticationException, DatabaseException Returns the number of hits for the specified query.- Specified by:
- getHitCountin interface- QueryService
- Parameters:
- info- query to get hits for
- Returns:
- number of hits
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DatabaseException- database exception
- See Also:
 
- 
clearLastResultpublic void clearLastResult()Description copied from interface:QueryServiceClears the result of the last query.- Specified by:
- clearLastResultin interface- QueryService
 
- 
updateRowDescription copied from interface:QueryServiceUpdates the row in the previous query-result. This method throws anIllegalArgumentExceptionwhen 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.- Specified by:
- updateRowin interface- QueryService
- Parameters:
- documentInfo- the metadata of the row to be updated.
- Throws:
- DocumentIdentificationException- when the documentInfo did not contain an ID or contained an incomplete ID.
 
 
-