public class CommunoteEntityQuery extends AbstractUserQuery<CommunoteEntityData,CommunoteEntityQueryParameters>
ALIAS_TAGS, FILTER_STATUS_ALL| Constructor and Description |
|---|
CommunoteEntityQuery() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildQuery(CommunoteEntityQueryParameters queryInstance)
Build the query
|
CommunoteEntityQueryParameters |
createInstance()
Create an empty instance for this definition
|
String |
getUserAlias()
Get the query prefix for the user
|
protected String[] |
getUserSearchFields(CommunoteEntityQueryParameters queryInstance)
Search also the group fields
|
PageableList |
postQueryExecution(CommunoteEntityQueryParameters queryInstance,
PageableList result)
This function is called after executing the query for further augmentations.
|
protected boolean |
renderUserSearch(StringBuilder whereQuery,
String prefix,
CommunoteEntityQueryParameters queryInstance)
Renders the user search query.
|
buildSelectQuery, matchOnlyIfUserQuery, needTagInQuery, renderCommonFilters, renderExcludeStatusFilter, renderGroupByClause, renderIncludeStatusFilter, renderOrderbyClause, renderRoleFilter, renderSubQueryTags, setupQueriesrenderPropertyFiltersrenderSearchpublic String buildQuery(CommunoteEntityQueryParameters queryInstance)
QuerybuildQuery in class AbstractUserQuery<CommunoteEntityData,CommunoteEntityQueryParameters>queryInstance - The query instance containing the necessary parameters and configurationpublic CommunoteEntityQueryParameters createInstance()
createInstance in class Query<CommunoteEntityData,CommunoteEntityQueryParameters>public String getUserAlias()
getUserAlias in class AbstractUserQuery<CommunoteEntityData,CommunoteEntityQueryParameters>protected String[] getUserSearchFields(CommunoteEntityQueryParameters queryInstance)
getUserSearchFields in class AbstractUserQuery<CommunoteEntityData,CommunoteEntityQueryParameters>queryInstance - the query instancepublic PageableList postQueryExecution(CommunoteEntityQueryParameters queryInstance, PageableList result)
postQueryExecution in class Query<CommunoteEntityData,CommunoteEntityQueryParameters>queryInstance - the query instanceresult - the result containing the items returned by executed queryprotected boolean renderUserSearch(StringBuilder whereQuery, String prefix, CommunoteEntityQueryParameters queryInstance)
renderUserSearch in class AbstractUserQuery<CommunoteEntityData,CommunoteEntityQueryParameters>whereQuery - the where partprefix - the connector prefix (e.g. 'AND')queryInstance - the query instance holding the query parametersCopyright © 2019 Communote team. All rights reserved.