public class ContentAttributeContentSearchCriterionDefinition extends ContentSearchCriterionDefinition implements FrontEnumerableSearchCriterionDefinition
ContentSearchCriterionDefinition
for a MetadataType.CONTENT
attribute.Modifier and Type | Field and Description |
---|---|
private static Logger |
__LOGGER |
protected ContentTypeExtensionPoint |
_cTypeEP
The extension point for content types
|
protected AmetysObjectResolver |
_resolver
The resolver
|
_contentType, _searchUICriterion
Constructor and Description |
---|
ContentAttributeContentSearchCriterionDefinition(String id,
String pluginName,
Optional<Searchable> searchable,
SearchUICriterion criterion,
Optional<ContentType> contentType,
AmetysObjectResolver resolver,
ContentTypeExtensionPoint contentTypeEP)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected Expression |
getContentTypeExpression(String parentCTypeId)
Gets the content type expression for retrieving enumeration of contents
|
Map<Object,I18nizableText> |
getEntries(String language)
Gets the enumeration entries
|
getContextPrefixLabels, getQuery, getSearchUICriterion, toJSON
dispose, getEnumeratedValues, getSearchable, isEnumerated
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextPrefixLabels, getEnumeratedValues, getId, getLabel, getQuery, getSearchable, getType, getValidator, getWidget, getWidgetParameters, isEnumerated, toJSON
protected AmetysObjectResolver _resolver
protected ContentTypeExtensionPoint _cTypeEP
public ContentAttributeContentSearchCriterionDefinition(String id, String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP)
id
- The idpluginName
- The plugin namesearchable
- the Searchable
criterion
- The linked SearchUICriterion
contentType
- The content type on which this criterion definition applies. Can be empty if it applies to all types of contents.resolver
- The resolvercontentTypeEP
- The extension point for content typespublic Map<Object,I18nizableText> getEntries(String language)
FrontEnumerableSearchCriterionDefinition
getEntries
in interface FrontEnumerableSearchCriterionDefinition
language
- The languageprotected Expression getContentTypeExpression(String parentCTypeId)
parentCTypeId
- The parent content type idExpression