Class BaseQueryDefinitionModel
java.lang.Object
com.flowable.platform.api.repository.BaseQueryDefinitionModel
- All Implemented Interfaces:
QueryDefinitionModel
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.JsonNode
protected com.fasterxml.jackson.databind.JsonNode
protected String
protected String
protected String
protected Map<String,
QueryParameter> protected Map<String,
QuerySortParameter> protected String
protected String
protected String
protected String
protected String
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
A configuration field that can be used for various use cases not covered by the other fields.com.fasterxml.jackson.databind.JsonNode
Returns the JsonNode that will be used as input to compose a safe ES query.Returns the optional description of this query definition, describing where and how it might be used.getKey()
Returns the business key usually used to reference or lookup a query definition regardless of its version.getName()
Returns the name of this query definition.A query can have 0 or more parameters that are resolved at runtime.Besides regular parameters, a query can expose parameters used specifically for sorting.Returns the name of the index on which the query will be performed on.Returns the template content that will be used to parse to a ES query by a template engine.Returns the template content that will be used to first parse by a template engine and then use as input to compose a safe ES query.Returns the resource that will be used to parse to a ES query by a template engine.getType()
Allows to distinguish between different types of query modelsvoid
setConfiguration
(com.fasterxml.jackson.databind.JsonNode configuration) void
setCustomFilter
(com.fasterxml.jackson.databind.JsonNode customFilter) void
setDescription
(String description) void
void
void
setParameters
(Map<String, QueryParameter> parameters) void
setSortParameters
(Map<String, QuerySortParameter> sortParameters) void
setSourceIndex
(String sourceIndex) void
setSubType
(String subType) void
setTemplateContent
(String templateContent) void
setTemplateFilter
(String templateFilter) void
setTemplateResource
(String templateResource) void
-
Field Details
-
key
-
name
-
description
-
sourceIndex
-
type
-
subType
-
versionTimestamp
-
customFilter
protected com.fasterxml.jackson.databind.JsonNode customFilter -
templateFilter
-
templateResource
-
templateContent
-
sortParameters
-
parameters
-
configuration
protected com.fasterxml.jackson.databind.JsonNode configuration
-
-
Constructor Details
-
BaseQueryDefinitionModel
public BaseQueryDefinitionModel()
-
-
Method Details
-
getKey
Description copied from interface:QueryDefinitionModel
Returns the business key usually used to reference or lookup a query definition regardless of its version.- Specified by:
getKey
in interfaceQueryDefinitionModel
-
setKey
-
getName
Description copied from interface:QueryDefinitionModel
Returns the name of this query definition.- Specified by:
getName
in interfaceQueryDefinitionModel
-
setName
-
getDescription
Description copied from interface:QueryDefinitionModel
Returns the optional description of this query definition, describing where and how it might be used.- Specified by:
getDescription
in interfaceQueryDefinitionModel
-
setDescription
-
getSourceIndex
Description copied from interface:QueryDefinitionModel
Returns the name of the index on which the query will be performed on.- Specified by:
getSourceIndex
in interfaceQueryDefinitionModel
-
setSourceIndex
-
getType
Description copied from interface:QueryDefinitionModel
Allows to distinguish between different types of query models- Specified by:
getType
in interfaceQueryDefinitionModel
-
setType
-
getSubType
- Specified by:
getSubType
in interfaceQueryDefinitionModel
- See Also:
-
setSubType
-
getCustomFilter
public com.fasterxml.jackson.databind.JsonNode getCustomFilter()Description copied from interface:QueryDefinitionModel
Returns the JsonNode that will be used as input to compose a safe ES query.- Specified by:
getCustomFilter
in interfaceQueryDefinitionModel
-
setCustomFilter
public void setCustomFilter(com.fasterxml.jackson.databind.JsonNode customFilter) -
getTemplateFilter
Description copied from interface:QueryDefinitionModel
Returns the template content that will be used to first parse by a template engine and then use as input to compose a safe ES query.- Specified by:
getTemplateFilter
in interfaceQueryDefinitionModel
-
setTemplateFilter
-
setTemplateResource
-
getTemplateResource
Description copied from interface:QueryDefinitionModel
Returns the resource that will be used to parse to a ES query by a template engine.- Specified by:
getTemplateResource
in interfaceQueryDefinitionModel
-
setTemplateContent
-
getTemplateContent
Description copied from interface:QueryDefinitionModel
Returns the template content that will be used to parse to a ES query by a template engine.- Specified by:
getTemplateContent
in interfaceQueryDefinitionModel
-
getParameters
Description copied from interface:QueryDefinitionModel
A query can have 0 or more parameters that are resolved at runtime.- Specified by:
getParameters
in interfaceQueryDefinitionModel
-
setParameters
-
getSortParameters
Description copied from interface:QueryDefinitionModel
Besides regular parameters, a query can expose parameters used specifically for sorting.- Specified by:
getSortParameters
in interfaceQueryDefinitionModel
-
setSortParameters
-
getConfiguration
public com.fasterxml.jackson.databind.JsonNode getConfiguration()Description copied from interface:QueryDefinitionModel
A configuration field that can be used for various use cases not covered by the other fields.- Specified by:
getConfiguration
in interfaceQueryDefinitionModel
-
setConfiguration
public void setConfiguration(com.fasterxml.jackson.databind.JsonNode configuration)
-