public class CalendarContentTypesEnumerator extends ContentTypeEnumerator
ContentType
for the Agenda service.
Restrict content types to thoses who have all the metadatas referenced by the _metadataNames
list.Modifier and Type | Class and Description |
---|---|
class |
CalendarContentTypesEnumerator.MandatoryMetadataPredicate
Predicate that test if the requested metadata is in the content type and if its type is correct.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,Set<MetadataType>> |
_mandatoryMetadata
Map of mandatory metadata names and their type.
|
_allOption, _contentTypes, _cTypeExtPt, _excludeAbstract, _excludeMixin, _excludePrivate, _excludeReferenceTable, _mixinOnly, _strictContentTypes
Constructor and Description |
---|
CalendarContentTypesEnumerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
_handleAllOptionEntry, getConfiguration, getEntry, getMatchingContentTypes, service
protected Map<String,Set<MetadataType>> _mandatoryMetadata
public CalendarContentTypesEnumerator()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class ContentTypeEnumerator
ConfigurationException
public Map<Object,I18nizableText> getEntries() throws Exception
Enumerator
getEntries
in interface Enumerator
getEntries
in class ContentTypeEnumerator
Exception
- if an error occurs.