Class ContentPropertySearchQueryFactory
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.search.query.ContentPropertySearchQueryFactory
Constructs instances of content property search queries based on given schema field type.
- Since:
- 5.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildContentPropertySearchSort(ContentPropertySchemaField schemaField, SearchSort.Type type, SearchSort.Order order) buildNumberRangeQuery(ContentPropertySchemaField schemaField, Range<Double> range) buildStringEqualityQuery(ContentPropertySchemaField schemaField, String... value) Build a generic string equality query.buildTextQuery(ContentPropertySchemaField schemaField, String rawQuery) com.atlassian.confluence.plugins.cql.spi.v2searchhelpers.V2SearchQueryWrappercreate(ContentPropertySchemaField schemaField, Object value, com.atlassian.querylang.antlrgen.AqlParser.MapExprValueContext valueContext)
-
Constructor Details
-
ContentPropertySearchQueryFactory
public ContentPropertySearchQueryFactory()
-
-
Method Details
-
create
public com.atlassian.confluence.plugins.cql.spi.v2searchhelpers.V2SearchQueryWrapper create(ContentPropertySchemaField schemaField, Object value, com.atlassian.querylang.antlrgen.AqlParser.MapExprValueContext valueContext) -
buildStringEqualityQuery
public SearchQuery buildStringEqualityQuery(ContentPropertySchemaField schemaField, String... value) Build a generic string equality query.- Parameters:
schemaField- the field to create the query onvalue- the value to check for- Returns:
- the search query for this range
-
buildContentPropertySearchSort
public SearchSort buildContentPropertySearchSort(ContentPropertySchemaField schemaField, SearchSort.Type type, SearchSort.Order order) -
buildTextQuery
-
buildNumberRangeQuery
public SearchQuery buildNumberRangeQuery(ContentPropertySchemaField schemaField, Range<Double> range)
-