public class CalendarContentTypesEnumerator extends ContentTypeEnumerator
ContentType
for the Agenda service.
Restrict content types to those which have all the attributes referenced by the _metadataNames
list.Modifier and Type | Class and Description |
---|---|
class |
CalendarContentTypesEnumerator.MandatoryAttributePredicate
Predicate that test if the requested attribute is in the content type and if its type is correct.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,Set<String>> |
_mandatoryAttributes
Map of mandatory attributes names and their type id.
|
_allOption, _contentTypes, _cTypeExtPt, _excludeAbstract, _excludeMixin, _excludePrivate, _excludeReferenceTable, _mixinOnly, _strictContentTypes
Constructor and Description |
---|
CalendarContentTypesEnumerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
Map<String,I18nizableText> |
getTypedEntries()
Provides the enumerated values with their optional label.
|
_handleAllOptionEntry, getConfiguration, getEntries, getEntry, getMatchingContentTypes, service
protected Map<String,Set<String>> _mandatoryAttributes
public CalendarContentTypesEnumerator()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class ContentTypeEnumerator
ConfigurationException
public Map<String,I18nizableText> getTypedEntries() throws Exception
Enumerator
getTypedEntries
in class ContentTypeEnumerator
Exception
- if an error occurs.
TODO NEWATTRIBUTEAPI: rename this method when Enumerator
will be removed