Package com.liferay.item.selector
Class BaseItemSelectorCriterion
java.lang.Object
com.liferay.item.selector.BaseItemSelectorCriterion
- All Implemented Interfaces:
ItemSelectorCriterion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the desired return types that the caller expects and can handle, ordered by preference.void
setDesiredItemSelectorReturnTypes
(ItemSelectorReturnType... desiredItemSelectorReturnType) void
setDesiredItemSelectorReturnTypes
(List<ItemSelectorReturnType> desiredItemSelectorReturnTypes) Sets a list of desired return types that the caller expects and can handle, ordered by preference.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.item.selector.ItemSelectorCriterion
getMimeTypeRestriction
-
Constructor Details
-
BaseItemSelectorCriterion
public BaseItemSelectorCriterion()
-
-
Method Details
-
getDesiredItemSelectorReturnTypes
Description copied from interface:ItemSelectorCriterion
Returns the desired return types that the caller expects and can handle, ordered by preference.The order of return types is important because the first return type that can be used will be used.
- Specified by:
getDesiredItemSelectorReturnTypes
in interfaceItemSelectorCriterion
- Returns:
- the return types ordered by preference
-
setDesiredItemSelectorReturnTypes
public void setDesiredItemSelectorReturnTypes(ItemSelectorReturnType... desiredItemSelectorReturnType) - Specified by:
setDesiredItemSelectorReturnTypes
in interfaceItemSelectorCriterion
-
setDesiredItemSelectorReturnTypes
public void setDesiredItemSelectorReturnTypes(List<ItemSelectorReturnType> desiredItemSelectorReturnTypes) Description copied from interface:ItemSelectorCriterion
Sets a list of desired return types that the caller expects and can handle, ordered by preference.The order of return types is important because the first return type that can be used will be used.
- Specified by:
setDesiredItemSelectorReturnTypes
in interfaceItemSelectorCriterion
- Parameters:
desiredItemSelectorReturnTypes
- a preference ordered list of the return types the caller can handle
-