Interface QueryService

    • Method Detail

      • getResultAtIndex

        ResultProperties getResultAtIndex​(int index)
        Returns the ResultProperties contained in the result list of the last search at the specified index.
        Parameters:
        index - index
        Returns:
        ResultProperties at index
      • getLastResult

        ModelResult getLastResult()
        Returns:
        The last query result that was sent to the view.
      • getResultPage

        ModelResult getResultPage​(int page,
                                  boolean newPaging)
        Get page from last result.
        Parameters:
        page - page to display
        newPaging - set to true, when the paging has changed and needs to be reinitialized
        Returns:
        ModelResult
      • getFieldDescriptions

        java.util.Map<java.lang.String,​com.saperion.intf.SaFieldDescription> getFieldDescriptions​(java.lang.String ddcName)
                                                                                                 throws com.saperion.exception.SaSystemException,
                                                                                                        com.saperion.exception.SaAuthenticationException
        Returns a map of SaFieldDescriptions of the given DDC.
        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
      • performClientSideSorting

        ModelResult performClientSideSorting​(java.util.Map<java.lang.String,​SortDirection> columns,
                                             int page)
        Sorts the current result set.
        Parameters:
        columns - the columns and directions used for sorting
        page - the page currently displayed
        Returns:
        ModelResult
      • performClientSideFiltering

        ModelResult performClientSideFiltering​(RowFilterSettings settings)
        Filters the current result set.
        Parameters:
        settings - filter settings
        Returns:
        ModelResult
      • clearFilter

        void clearFilter()
        Clears the last applied filter.
      • setPageSize

        void setPageSize​(int size)
        Sets the page size.
        Parameters:
        size - page size
      • searchFolderDocuments

        ModelResult searchFolderDocuments​(java.lang.String folderId,
                                          java.lang.String folderDDC,
                                          com.saperion.rmi.SaQueryInfo hqlFilter)
                                   throws SystemException,
                                          AuthenticationException
        HQL search extended with additional folder informations and depth.
        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
      • clearLastResult

        void clearLastResult()
        Clears the result of the last query.
      • updateRow

        void updateRow​(ResultProperties documentInfo)
                throws DocumentIdentificationException
        Updates the row in the previous query-result. This method throws an 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.
        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.