public interface SegmentsCriteriaContributor
Criteria
by adding
more filters.Modifier and Type | Method and Description |
---|---|
default void |
contribute(Criteria criteria,
java.lang.String filterString,
Criteria.Conjunction conjunction)
Contributes the criterion to a segment's criteria.
|
default Criteria.Criterion |
getCriterion(Criteria criteria)
Returns the contributed criterion from the criteria.
|
com.liferay.portal.odata.entity.EntityModel |
getEntityModel()
Returns the entity model associated with the contributor.
|
java.lang.String |
getEntityName()
Returns the name of the entity model associated with the contributor.
|
java.util.List<Field> |
getFields(javax.portlet.PortletRequest portletRequest)
Returns the list of fields that are supported by this contributor.
|
java.lang.String |
getKey()
Returns the contributor's unique key.
|
default java.lang.String |
getLabel(java.util.Locale locale)
Returns the label displayed in the user interface based on the locale.
|
Criteria.Type |
getType()
Returns the contributor's type.
|
default void contribute(Criteria criteria, java.lang.String filterString, Criteria.Conjunction conjunction)
criteria
- the segment's criteriafilterString
- the criterion's filter as a stringconjunction
- the criterion's conjunctiondefault Criteria.Criterion getCriterion(Criteria criteria)
criteria
- the segment's criteriacom.liferay.portal.odata.entity.EntityModel getEntityModel()
java.lang.String getEntityName()
java.util.List<Field> getFields(javax.portlet.PortletRequest portletRequest)
portletRequest
- the portlet requestjava.lang.String getKey()
default java.lang.String getLabel(java.util.Locale locale)
locale
- the locale to apply for the labelCriteria.Type getType()
Criteria.Type