Package org.chenile.query.model
Class SearchRequest<FilterType>
java.lang.Object
org.chenile.query.model.SearchRequest<FilterType>
-
Field Summary
Modifier and TypeFieldDescription(package private) String
(package private) FilterType
Changed from Collectionto Set because the array was adding the old values again while updating. private boolean
Used for elastic search query request(package private) int
(package private) int
private boolean
(package private) String
private boolean
Be careful when setting this flag to true! If this variable is set to true, then the searchRequest will be saved in the DB as a canned report.(package private) List<SortCriterion>
(package private) boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
boolean
boolean
boolean
void
setCannedReportName
(String cannedReportName) void
void
setFilters
(FilterType filters) void
setHiddenColumns
(Set<String> hiddenColumns) void
setNumRowsInPage
(int numRowsInPage) If incoming value is set to zero from the user, reset it to the default value initialized in the instance variable.void
setOrOperation
(boolean isOrOperation) void
setPageNum
(int pageNum) void
setPublishCannedReportToEveryone
(boolean publishCannedReportToEveryone) void
setQueryName
(String queryName) void
setSaveChangesToCannedReport
(boolean saveChangesToCannedReport) void
setSortCriteria
(List<SortCriterion> sortCriteria) void
setSystemFilters
(Map<String, Object> systemFilters) void
setToDoList
(boolean toDoList)
-
Field Details
-
numRowsInPage
int numRowsInPage -
pageNum
int pageNum -
sortCriteria
List<SortCriterion> sortCriteria -
filters
FilterType filters -
systemFilters
-
queryName
String queryName -
cannedReportName
String cannedReportName -
fields
-
toDoList
boolean toDoList -
saveChangesToCannedReport
private boolean saveChangesToCannedReportBe careful when setting this flag to true! If this variable is set to true, then the searchRequest will be saved in the DB as a canned report. If the canned report exists, it is over-written by this flag. (The previous contents of the canned report are not merged. They will be over-written) -
publishCannedReportToEveryone
private boolean publishCannedReportToEveryone -
isOrOperation
private boolean isOrOperationUsed for elastic search query request
-
-
Constructor Details
-
SearchRequest
public SearchRequest()
-
-
Method Details
-
isToDoList
public boolean isToDoList() -
setToDoList
public void setToDoList(boolean toDoList) -
getFields
-
setFields
-
getCannedReportName
-
setCannedReportName
-
getNumRowsInPage
public int getNumRowsInPage()- Returns:
- the numRowsInPage
-
setNumRowsInPage
public void setNumRowsInPage(int numRowsInPage) If incoming value is set to zero from the user, reset it to the default value initialized in the instance variable.- Parameters:
numRowsInPage
- the numRowsInPage to set
-
getPageNum
public int getPageNum()- Returns:
- the pageNum
-
setPageNum
public void setPageNum(int pageNum) - Parameters:
pageNum
- the pageNum to set
-
getSortCriteria
- Returns:
- the sortCriteria
-
setSortCriteria
- Parameters:
sortCriteria
- the sortCriteria to set
-
getFilters
- Returns:
- the filters
-
setFilters
- Parameters:
filters
- the filters to set
-
getSystemFilters
- Returns:
- the systemFilters
-
setSystemFilters
- Parameters:
systemFilters
- the systemFilters to set
-
getQueryName
- Returns:
- the queryName
-
setQueryName
- Parameters:
queryName
- the queryName to set
-
getHiddenColumns
-
setHiddenColumns
-
isSaveChangesToCannedReport
public boolean isSaveChangesToCannedReport() -
setSaveChangesToCannedReport
public void setSaveChangesToCannedReport(boolean saveChangesToCannedReport) -
isPublishCannedReportToEveryone
public boolean isPublishCannedReportToEveryone() -
setPublishCannedReportToEveryone
public void setPublishCannedReportToEveryone(boolean publishCannedReportToEveryone) -
isOrOperation
public boolean isOrOperation() -
setOrOperation
public void setOrOperation(boolean isOrOperation)
-