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 forContentType
-
-
Field Summary
Fields Modifier and Type Field Description protected Context
_context
The avalon contextprotected ContentTypesAssignmentHandler
_cTypeHandler
The content types assignment handlerprotected boolean
_includePrivate
True to include private content typesprotected SiteManager
_siteManager
The site manager-
Fields inherited from class org.ametys.cms.contenttype.ContentTypeEnumerator
_allOption, _contentTypes, _cTypeExtPt, _excludeAbstract, _excludeMixin, _excludePrivate, _excludeReferenceTable, _mixinOnly, _referenceTableOnly, _strictContentTypes
-
-
Constructor Summary
Constructors Constructor Description AvailableContentTypesEnumerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
void
contextualize(Context context)
Map<String,I18nizableText>
getTypedEntries()
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 Detail
-
_cTypeHandler
protected ContentTypesAssignmentHandler _cTypeHandler
The content types assignment handler
-
_siteManager
protected SiteManager _siteManager
The site manager
-
_includePrivate
protected boolean _includePrivate
True to include private content types
-
-
Constructor Detail
-
AvailableContentTypesEnumerator
public AvailableContentTypesEnumerator()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classContentTypeEnumerator
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classContentTypeEnumerator
- Throws:
ConfigurationException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
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
-
-