public interface FilterFactory
Modifier and Type | Method and Description |
---|---|
ConditionAggregate |
createAggregateCondition() |
ConditionAggregate |
createAggregateConditionAND() |
ConditionAggregate |
createAggregateConditionOR() |
Condition |
getAllBDASearchCondition(Object value) |
Condition |
getCondition(BusinessAttribute attribute,
Object value,
Condition.OPERATOR operator)
Get a new where condition based on a data attribute for user filtering.
|
Condition |
getCondition(BusinessObject primaryBO,
Condition.OPERATOR operator)
Get a new where condition based on a business object for user filtering.
|
Condition |
getCondition(BusinessType type)
Get a new where condition based on a business type.
|
Condition |
getCondition(BusinessType type,
BusinessRelationAttribute attribute,
BusinessAttribute objectField,
Object value,
Condition.OPERATOR operator)
Get a new where condition based on a related object's business data
attribute for user filtering.
|
Condition |
getCondition(Collection<BusinessType> type)
Get a new where condition based on business types.
|
Condition |
getConditionChain(List<<any>> attributeChain,
Condition condition) |
Condition |
getConditionLinearChain(BusinessType type,
List<BusinessAttribute> attributes,
Object value,
Condition.OPERATOR operator)
Get condition for n level chaining ---------------------------------
Example -> Get all the equipment contains Product names matches with word
'server' ----------------------------
Equipment-includesBoM-includesBoMEntry-linksProduct-objectName contains
server **
---------------------------------------------------------------------
"filter" = "includesBoM-includesBoMEntry-linksProduct-objectName contains
'server'"
|
Order |
getDefaultOrder()
Gets the default order, which currently is objectName.
|
Order |
getOrder(BusinessAttribute field,
boolean desc,
boolean caseSensitive)
Get a new Order based on data attributes.
|
Order |
getOrder(BusinessType type,
BusinessRelationAttribute bra,
BusinessAttribute field,
boolean desc,
boolean caseSensitive)
Get a new Order based on related attributes.
|
Order |
getOrder(BusinessType type,
BusinessRelationAttribute bra,
BusinessDataAttribute field,
boolean desc,
boolean caseSensitive)
Get a new Order based on related attributes.
|
Order |
getOrder(List<BusinessType> types,
BusinessRelationAttribute bra,
BusinessAttribute field,
boolean desc,
boolean caseSensitive)
Get a new Order based on related attributes.
|
Order |
getOrderBusinessType(boolean desc)
Get a new Order based on business type URI.
|
Order |
getOrderChain(List<<any>> attributeChain,
Order order) |
Condition |
getSearchAttributesCondition(BusinessType type,
BusinessAttribute predicate,
Map<String,List<BusinessAttribute>> searchAttributes,
Condition.OPERATOR searchOperator,
String search) |
Condition |
getSearchCondition(BusinessType type,
List<BusinessAttribute> searchAttributes,
Condition.OPERATOR searchOperator,
String search)
${tags}
|
ConditionAggregate createAggregateCondition()
ConditionAggregate createAggregateConditionAND()
ConditionAggregate createAggregateConditionOR()
Condition getAllBDASearchCondition(Object value)
value
- operator
- Condition getCondition(BusinessAttribute attribute, Object value, Condition.OPERATOR operator)
attribute
- The attribute (predicate) for the conditionvalue
- The value to match againstoperator
- The operator to use, typically is ContainsCondition getCondition(BusinessObject primaryBO, Condition.OPERATOR operator)
primaryBO
- The BO filteroperator
- The operator to useCondition getCondition(BusinessType type)
type
- The BusinessTypeCondition getCondition(BusinessType type, BusinessRelationAttribute attribute, BusinessAttribute objectField, Object value, Condition.OPERATOR operator)
type
- The businessType that the attribute refers to.attribute
- The relationship.objectField
- The field of the object to filter by.value
- The value to filter by.operator
- The operator to use.Condition getCondition(Collection<BusinessType> type)
types
- The BusinessTypesCondition getConditionChain(List<<any>> attributeChain, Condition condition)
attributeChain
- condition
- Condition getConditionLinearChain(BusinessType type, List<BusinessAttribute> attributes, Object value, Condition.OPERATOR operator)
Order getDefaultOrder()
Order getOrder(BusinessAttribute field, boolean desc, boolean caseSensitive)
field
- The data attribute, e.g. objectNamedesc
- Whether the ordering is ascending or descending order.caseSensitive
- Whether the ordering should be case-sensitive or notOrder getOrder(BusinessType type, BusinessRelationAttribute bra, BusinessAttribute field, boolean desc, boolean caseSensitive)
type
- The type linked by the bra. (To be removed)bra
- The relationship attribute, e.g. quoteContainedByfield
- The field to order based on the related attributed, e.g.
objectName or label.desc
- Whether the ordering is ascending or descending order.caseSensitive
- Whether the ordering should be case-sensitive or notOrder getOrder(BusinessType type, BusinessRelationAttribute bra, BusinessDataAttribute field, boolean desc, boolean caseSensitive)
type
- The type linked by the bra. (To be removed)bra
- The relationship attribute, e.g. quoteContainedByfield
- The field to order based on the related attributed, e.g.
objectName.desc
- Whether the ordering is ascending or descending order.caseSensitive
- Whether the ordering should be case-sensitive or notOrder getOrder(List<BusinessType> types, BusinessRelationAttribute bra, BusinessAttribute field, boolean desc, boolean caseSensitive)
types
- The types linked by the bra. (To be removed)bra
- The relationship attribute, e.g. quoteContainedByfield
- The field to order based on the related attributed, e.g.
objectName.desc
- Whether the ordering is ascending or descending order.caseSensitive
- Whether the ordering should be case-sensitive or notOrder getOrderBusinessType(boolean desc)
desc
- Whether the ordering is ascending or descending orderOrder getOrderChain(List<<any>> attributeChain, Order order)
attributeChain
- order
- Condition getSearchAttributesCondition(BusinessType type, BusinessAttribute predicate, Map<String,List<BusinessAttribute>> searchAttributes, Condition.OPERATOR searchOperator, String search)
Condition getSearchCondition(BusinessType type, List<BusinessAttribute> searchAttributes, Condition.OPERATOR searchOperator, String search)