Package org.ametys.cms.contenttype
Class StaticContentTypeOverrides
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.contenttype.StaticContentTypeOverrides
- All Implemented Interfaces:
ContentTypeOverridesExtension
,LogEnabled
,PluginAware
,Component
,Configurable
- Direct Known Subclasses:
ConfigBasedContentTypeOverrides
public class StaticContentTypeOverrides
extends AbstractLogEnabled
implements ContentTypeOverridesExtension, Component, Configurable
Default
ContentTypeOverridesExtension
that retrieves the configurations without any conditions-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Configuration
The configuration to apply to override the content typesThe set of the overridden content types -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Retrieves a Set of content types that have been overridden from this extensionGet override configuration of this extensionRetrieves the name of the plugin declaring this extensionvoid
setPluginInfo
(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_overriddenContentTypeIds
The set of the overridden content types -
_configuration
The configuration to apply to override the content types
-
-
Constructor Details
-
StaticContentTypeOverrides
public StaticContentTypeOverrides()
-
-
Method Details
-
getOverrideConfiguration
Description copied from interface:ContentTypeOverridesExtension
Get override configuration of this extension- Specified by:
getOverrideConfiguration
in interfaceContentTypeOverridesExtension
- Returns:
- The override configuration
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getOverriddenContentTypes
Description copied from interface:ContentTypeOverridesExtension
Retrieves a Set of content types that have been overridden from this extension- Specified by:
getOverriddenContentTypes
in interfaceContentTypeOverridesExtension
- Returns:
- the set of overridden content types identifiers
-
setPluginInfo
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
getPluginName
Description copied from interface:ContentTypeOverridesExtension
Retrieves the name of the plugin declaring this extension- Specified by:
getPluginName
in interfaceContentTypeOverridesExtension
- Returns:
- the name of the plugin declaring this extension
-