Class CalendarContentTypesEnumerator
java.lang.Object
org.ametys.cms.contenttype.ContentTypeEnumerator
org.ametys.plugins.calendar.enumerators.CalendarContentTypesEnumerator
- All Implemented Interfaces:
Enumerator<String>
,Enumerator
,Configurable
,Serviceable
Enumerator on
ContentType
for the Agenda service.
Restrict content types to those which have all the attributes referenced by the _metadataNames
list.-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Predicate that test if the requested attribute is in the content type and if its type is correct. -
Field Summary
Modifier and TypeFieldDescriptionMap of mandatory attributes names and their type id.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 TypeMethodDescriptionvoid
configure
(Configuration configuration) Provides the enumerated values with their optional label.Methods inherited from class org.ametys.cms.contenttype.ContentTypeEnumerator
_handleAllOptionEntry, getConfiguration, getEntries, getEntry, getMatchingContentTypes, service
-
Field Details
-
_mandatoryAttributes
Map of mandatory attributes names and their type id.
-
-
Constructor Details
-
CalendarContentTypesEnumerator
public CalendarContentTypesEnumerator()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classContentTypeEnumerator
- Throws:
ConfigurationException
-
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
-