public interface ItemSelectorCriterion
ItemSelectorView
that can select that particular
entity type and that can support the ItemSelectorReturnType
.
Implementations of this interface can hold fine-grained details about entities that can be selected. This detailed information should be specified ideally using primitive types (or using very simple types that can be JSON serialized). The implementation can set this data and make it accessible, however desired. It must, however, specify a non-parametrized constructor.
As an example, see the BlogsItemSelectorCriterion class and how BlogsContentEditorConfigContributor's populateFileBrowserURL method populates an instance of it and uses it.
For simplicity, it is recommended that implementations extend BaseItemSelectorCriterion
.
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemSelectorReturnType> |
getDesiredItemSelectorReturnTypes()
Returns the desired return types that the caller expects and can handle,
ordered by preference.
|
void |
setDesiredItemSelectorReturnTypes(java.util.List<ItemSelectorReturnType> desiredItemSelectorReturnTypes)
Sets a list of desired return types that the caller expects and can
handle, ordered by preference.
|
java.util.List<ItemSelectorReturnType> getDesiredItemSelectorReturnTypes()
The order of return types is important because the first return type that can be used will be used.
void setDesiredItemSelectorReturnTypes(java.util.List<ItemSelectorReturnType> desiredItemSelectorReturnTypes)
The order of return types is important because the first return type that can be used will be used.
desiredItemSelectorReturnTypes
- a preference ordered list of the
return types the caller can handle