Package com.liferay.item.selector
Interface ItemSelectorCriterionHandler<T extends ItemSelectorCriterion>
- All Known Implementing Classes:
BaseItemSelectorCriterionHandler
public interface ItemSelectorCriterionHandler<T extends ItemSelectorCriterion>
Provides an interface that returns the
ItemSelectorView
for a
particular ItemSelectorCriterion
. Every item selector criterion
should have its own associated item selector criterion handler.
Implementations of this interface need to be registered as OSGi components
using the service ItemSelectorCriterionHandler
.
Unless an implementation needs custom logic to filter item selector views, it
will simply need to extend BaseItemSelectorCriterionHandler
and only
implement the method getItemSelectorCriterionClass()
.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the item selector criterion associated to this handler.getItemSelectorViews
(T itemSelectorCriterion) Returns the item selector views to display that meet the needs of the item selector criterion.
-
Method Details
-
getItemSelectorCriterionClass
Returns the item selector criterion associated to this handler.- Returns:
- the item selector criterion associated to this handler
-
getItemSelectorViews
Returns the item selector views to display that meet the needs of the item selector criterion.- Parameters:
itemSelectorCriterion
- the item selector criterion instance- Returns:
- the item selector views to display
-