Class QuerySavedViewProcess
java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.savedviews.QuerySavedViewProcess
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QProcessMetaDataprotected voidlookupQuickViews(RunBackendStepInput runBackendStepInput, List<QRecord> savedViewRecords) If the qInstance has aQuickSavedViewtable, then query for quick-saved view records associated with the list of saved view records that were found.voidrun(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) Execute the backend step - using the request as input, and the result as output.
-
Constructor Details
-
QuerySavedViewProcess
public QuerySavedViewProcess()
-
-
Method Details
-
getProcessMetaData
-
run
public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException Description copied from interface:BackendStepExecute 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:
runin interfaceBackendStep- Throws:
QException
-
lookupQuickViews
protected void lookupQuickViews(RunBackendStepInput runBackendStepInput, List<QRecord> savedViewRecords) throws QException If the qInstance has aQuickSavedViewtable, 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
-