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.JsonNode
customFilter
protected String
description
protected String
key
protected String
name
protected Map<String,QueryParameter>
parameters
protected Map<String,QuerySortParameter>
sortParameters
protected String
sourceIndex
protected String
subType
protected String
templateContent
protected String
templateFilter
protected String
templateResource
protected String
type
protected String
versionTimestamp
-
Constructor Summary
Constructors Constructor Description BaseQueryDefinitionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
getCustomFilter()
Returns the JsonNode that will be used as input to compose a safe ES query.String
getDescription()
Returns the optional description of this query definition, describing where and how it might be used.String
getKey()
Returns the business key usually used to reference or lookup a query definition regardless of its version.String
getName()
Returns the name of this query definition.Map<String,QueryParameter>
getParameters()
Map<String,QuerySortParameter>
getSortParameters()
String
getSourceIndex()
Returns the name of the index on which the query will be performed on.String
getSubType()
String
getTemplateContent()
Returns the template content that will be used to parse to a ES query by a template engine.String
getTemplateFilter()
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.String
getTemplateResource()
Returns the resource that will be used to parse to a ES query by a template engine.String
getType()
void
setCustomFilter(com.fasterxml.jackson.databind.JsonNode customFilter)
void
setDescription(String description)
void
setKey(String key)
void
setName(String name)
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
setType(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:QueryDefinitionModel
Returns the business key usually used to reference or lookup a query definition regardless of its version.- Specified by:
getKey
in interfaceQueryDefinitionModel
-
setKey
public void setKey(String key)
-
getName
public String getName()
Description copied from interface:QueryDefinitionModel
Returns the name of this query definition.- Specified by:
getName
in interfaceQueryDefinitionModel
-
setName
public void setName(String name)
-
getDescription
public String 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
public void setDescription(String description)
-
getSourceIndex
public String 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
public void setSourceIndex(String sourceIndex)
-
getType
public String getType()
- Specified by:
getType
in interfaceQueryDefinitionModel
-
setType
public void setType(String type)
-
getSubType
public String getSubType()
- Specified by:
getSubType
in 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: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
public String 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
public void setTemplateFilter(String templateFilter)
-
setTemplateResource
public void setTemplateResource(String templateResource)
-
getTemplateResource
public String 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
public void setTemplateContent(String templateContent)
-
getTemplateContent
public String 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
public Map<String,QueryParameter> getParameters()
- Specified by:
getParameters
in interfaceQueryDefinitionModel
-
setParameters
public void setParameters(Map<String,QueryParameter> parameters)
-
getSortParameters
public Map<String,QuerySortParameter> getSortParameters()
- Specified by:
getSortParameters
in interfaceQueryDefinitionModel
-
setSortParameters
public void setSortParameters(Map<String,QuerySortParameter> sortParameters)
-
-