Package org.ametys.web.contenttype
Class AvailableContentTypesEnumerator
java.lang.Object
org.ametys.cms.contenttype.ContentTypeEnumerator
org.ametys.web.contenttype.AvailableContentTypesEnumerator
- All Implemented Interfaces:
Enumerator<String>
,Enumerator
,Configurable
,Contextualizable
,Serviceable
public class AvailableContentTypesEnumerator
extends ContentTypeEnumerator
implements Contextualizable
Enumerator for
ContentType
-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The avalon contextprotected ContentTypesAssignmentHandler
The content types assignment handlerprotected boolean
True to include private content typesprotected SiteManager
The site managerFields 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) void
contextualize
(Context context) Provides the enumerated values with their optional label.void
service
(ServiceManager smanager) Methods inherited from class org.ametys.cms.contenttype.ContentTypeEnumerator
_handleAllOptionEntry, getConfiguration, getEntries, getEntry, getMatchingContentTypes
-
Field Details
-
_cTypeHandler
The content types assignment handler -
_siteManager
The site manager -
_context
The avalon context -
_includePrivate
True to include private content types
-
-
Constructor Details
-
AvailableContentTypesEnumerator
public AvailableContentTypesEnumerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classContentTypeEnumerator
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classContentTypeEnumerator
- Throws:
ConfigurationException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
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
-