Package org.ametys.web.frontoffice
Class ContentTypesForSearchEnumerator
java.lang.Object
org.ametys.cms.contenttype.ContentTypeEnumerator
org.ametys.web.frontoffice.ContentTypesForSearchEnumerator
- All Implemented Interfaces:
Enumerator<String>
,Enumerator
,Configurable
,Serviceable
Enumerator for
ContentType
and type Resource-
Field Summary
Fields inherited from class org.ametys.cms.contenttype.ContentTypeEnumerator
_allOption, _contentTypes, _cTypeExtPt, _excludeAbstract, _excludeMixin, _excludePrivate, _excludeReferenceTable, _mixinOnly, _referenceTableOnly, _strictContentTypes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a single label from a value.Provides the enumerated values with their optional label.Methods inherited from class org.ametys.cms.contenttype.ContentTypeEnumerator
_handleAllOptionEntry, configure, getConfiguration, getEntries, getMatchingContentTypes, service
-
Constructor Details
-
ContentTypesForSearchEnumerator
public ContentTypesForSearchEnumerator()
-
-
Method Details
-
getTypedEntries
Description copied from interface:Enumerator
Provides the enumerated values with their optional label.- Specified by:
getTypedEntries
in interfaceEnumerator<String>
- Overrides:
getTypedEntries
in classContentTypeEnumerator
- Returns:
- the enumerated values and their label.
- Throws:
Exception
- if an error occurs. TODO NEWATTRIBUTEAPI: rename this method whenEnumerator
will be removed
-
getEntry
Description copied from interface:Enumerator
Retrieves a single label from a value.- Specified by:
getEntry
in interfaceEnumerator<String>
- Specified by:
getEntry
in interfaceEnumerator
- Overrides:
getEntry
in classContentTypeEnumerator
- Parameters:
value
- the value.- Returns:
- the label or
null
if not found. - Throws:
Exception
- if an error occurs.
-