Class QuerySavedViewProcess

java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.savedviews.QuerySavedViewProcess
All Implemented Interfaces:
BackendStep

public class QuerySavedViewProcess extends Object implements BackendStep
Load the saved view records available to the current user for the specified table.

Runs in an alternative mode, to just fetch one savedView, triggered by input param: `savedViewId`

Returns a list of QRecords, based on SavedView table, as `savedViewList`. In single-mode, also returns the single savedView as `savedView`

  • Constructor Details

    • QuerySavedViewProcess

      public QuerySavedViewProcess()
  • Method Details

    • getProcessMetaData

      public static QProcessMetaData getProcessMetaData()
    • run

      public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException
      Description copied from interface: BackendStep
      Execute the backend step - using the request as input, and the result as output. TODO - think about - why take the Result object as a param, instead of return it? Is this way easier for inter-language operability maybe? Also - there's way too much "process-specific gunk" in the Request object - can we simplify it?
      Specified by:
      run in interface BackendStep
      Throws:
      QException
    • lookupQuickViews

      protected void lookupQuickViews(RunBackendStepInput runBackendStepInput, List<QRecord> savedViewRecords) throws QException
      If the qInstance has a QuickSavedView table, then query for quick-saved view records associated with the list of saved view records that were found.

      If corresponding QuickSavedView's are found, then update the saved-view records with the following values from the QuickSavedView:

      • type = "quickView"
      • doCount = boolean from the QuickSavedView
      • sortOrder = integer sortOrder from the QuickSavedView
      Throws:
      QException