Class BaseQueryDefinitionModel
- java.lang.Object
-
- com.flowable.platform.api.repository.BaseQueryDefinitionModel
-
- All Implemented Interfaces:
QueryDefinitionModel
public class BaseQueryDefinitionModel extends Object implements QueryDefinitionModel
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.JsonNodecustomFilterprotected Stringdescriptionprotected Stringkeyprotected Stringnameprotected Map<String,QueryParameter>parametersprotected Map<String,QuerySortParameter>sortParametersprotected StringsourceIndexprotected StringsubTypeprotected StringtemplateContentprotected StringtemplateFilterprotected StringtemplateResourceprotected Stringtypeprotected StringversionTimestamp
-
Constructor Summary
Constructors Constructor Description BaseQueryDefinitionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodegetCustomFilter()Returns the JsonNode that will be used as input to compose a safe ES query.StringgetDescription()Returns the optional description of this query definition, describing where and how it might be used.StringgetKey()Returns the business key usually used to reference or lookup a query definition regardless of its version.StringgetName()Returns the name of this query definition.Map<String,QueryParameter>getParameters()Map<String,QuerySortParameter>getSortParameters()StringgetSourceIndex()Returns the name of the index on which the query will be performed on.StringgetSubType()StringgetTemplateContent()Returns the template content that will be used to parse to a ES query by a template engine.StringgetTemplateFilter()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.StringgetTemplateResource()Returns the resource that will be used to parse to a ES query by a template engine.StringgetType()voidsetCustomFilter(com.fasterxml.jackson.databind.JsonNode customFilter)voidsetDescription(String description)voidsetKey(String key)voidsetName(String name)voidsetParameters(Map<String,QueryParameter> parameters)voidsetSortParameters(Map<String,QuerySortParameter> sortParameters)voidsetSourceIndex(String sourceIndex)voidsetSubType(String subType)voidsetTemplateContent(String templateContent)voidsetTemplateFilter(String templateFilter)voidsetTemplateResource(String templateResource)voidsetType(String type)
-
-
-
Field Detail
-
key
protected String key
-
name
protected String name
-
description
protected String description
-
sourceIndex
protected String sourceIndex
-
type
protected String type
-
subType
protected String subType
-
versionTimestamp
protected String versionTimestamp
-
customFilter
protected com.fasterxml.jackson.databind.JsonNode customFilter
-
templateFilter
protected String templateFilter
-
templateResource
protected String templateResource
-
templateContent
protected String templateContent
-
sortParameters
protected Map<String,QuerySortParameter> sortParameters
-
parameters
protected Map<String,QueryParameter> parameters
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:QueryDefinitionModelReturns the business key usually used to reference or lookup a query definition regardless of its version.- Specified by:
getKeyin interfaceQueryDefinitionModel
-
setKey
public void setKey(String key)
-
getName
public String getName()
Description copied from interface:QueryDefinitionModelReturns the name of this query definition.- Specified by:
getNamein interfaceQueryDefinitionModel
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
Description copied from interface:QueryDefinitionModelReturns the optional description of this query definition, describing where and how it might be used.- Specified by:
getDescriptionin interfaceQueryDefinitionModel
-
setDescription
public void setDescription(String description)
-
getSourceIndex
public String getSourceIndex()
Description copied from interface:QueryDefinitionModelReturns the name of the index on which the query will be performed on.- Specified by:
getSourceIndexin interfaceQueryDefinitionModel
-
setSourceIndex
public void setSourceIndex(String sourceIndex)
-
getType
public String getType()
- Specified by:
getTypein interfaceQueryDefinitionModel
-
setType
public void setType(String type)
-
getSubType
public String getSubType()
- Specified by:
getSubTypein interfaceQueryDefinitionModel- See Also:
for a set of predefined template query types
-
setSubType
public void setSubType(String subType)
-
getCustomFilter
public com.fasterxml.jackson.databind.JsonNode getCustomFilter()
Description copied from interface:QueryDefinitionModelReturns the JsonNode that will be used as input to compose a safe ES query.- Specified by:
getCustomFilterin interfaceQueryDefinitionModel
-
setCustomFilter
public void setCustomFilter(com.fasterxml.jackson.databind.JsonNode customFilter)
-
getTemplateFilter
public String getTemplateFilter()
Description copied from interface:QueryDefinitionModelReturns 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:
getTemplateFilterin interfaceQueryDefinitionModel
-
setTemplateFilter
public void setTemplateFilter(String templateFilter)
-
setTemplateResource
public void setTemplateResource(String templateResource)
-
getTemplateResource
public String getTemplateResource()
Description copied from interface:QueryDefinitionModelReturns the resource that will be used to parse to a ES query by a template engine.- Specified by:
getTemplateResourcein interfaceQueryDefinitionModel
-
setTemplateContent
public void setTemplateContent(String templateContent)
-
getTemplateContent
public String getTemplateContent()
Description copied from interface:QueryDefinitionModelReturns the template content that will be used to parse to a ES query by a template engine.- Specified by:
getTemplateContentin interfaceQueryDefinitionModel
-
getParameters
public Map<String,QueryParameter> getParameters()
- Specified by:
getParametersin interfaceQueryDefinitionModel
-
setParameters
public void setParameters(Map<String,QueryParameter> parameters)
-
getSortParameters
public Map<String,QuerySortParameter> getSortParameters()
- Specified by:
getSortParametersin interfaceQueryDefinitionModel
-
setSortParameters
public void setSortParameters(Map<String,QuerySortParameter> sortParameters)
-
-