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, toJSONdispose, getEnumeratedValues, getSearchable, isEnumeratedgetDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextPrefixLabels, getEnumeratedValues, getId, getLabel, getQuery, getSearchable, getType, getValidator, getWidget, getWidgetParameters, isEnumerated, toJSONprotected 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 Searchablecriterion - The linked SearchUICriterioncontentType - 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)
FrontEnumerableSearchCriterionDefinitiongetEntries in interface FrontEnumerableSearchCriterionDefinitionlanguage - The languageprotected Expression getContentTypeExpression(String parentCTypeId)
parentCTypeId - The parent content type idExpression