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
public class ContentTypesForSearchEnumerator extends ContentTypeEnumerator
Enumerator forContentType
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
Constructors Constructor Description ContentTypesForSearchEnumerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getEntry(String value)
Retrieves a single label from a value.Map<String,I18nizableText>
getTypedEntries()
Provides the enumerated values with their optional label.-
Methods inherited from class org.ametys.cms.contenttype.ContentTypeEnumerator
_handleAllOptionEntry, configure, getConfiguration, getEntries, getMatchingContentTypes, service
-
-
-
-
Constructor Detail
-
ContentTypesForSearchEnumerator
public ContentTypesForSearchEnumerator()
-
-
Method Detail
-
getTypedEntries
public Map<String,I18nizableText> getTypedEntries() throws Exception
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
public I18nizableText getEntry(String value) throws Exception
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.
-
-