Class SaveContentTypeComponent
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contenttypeseditor.edition.SaveContentTypeComponent
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
This component save a content type
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentAttributeTypeExtensionPoint
The extension point for available attribute typesprotected ContentTypeExtensionPoint
The content type extension point instanceprotected ContentTypesHelper
The content types helperprotected ContentTypeStateComponent
The content type state instanceprotected EditContentTypeHelper
The edit content type component instanceprotected EditContentTypeInformationHelper
The edit content type helper instanceprotected I18nUtils
I18nUtils instanceprotected SourceResolver
The source resolverstatic final String
The Avalon role name -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
saveContentType
(Map<String, Object> contentTypeInfos) Save content typevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon role name -
_sourceResolver
The source resolver -
_contentTypeExtensionPoint
The content type extension point instance -
_contentTypesHelper
The content types helper -
_contentAttributeTypeExtensionPoint
The extension point for available attribute types -
_contentTypeStateComponent
The content type state instance -
_editContentTypeInformationHelper
The edit content type helper instance -
_editContentTypeHelper
The edit content type component instance -
_i18nUtils
I18nUtils instance
-
-
Constructor Details
-
SaveContentTypeComponent
public SaveContentTypeComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
saveContentType
Save content type- Parameters:
contentTypeInfos
- all information about the content type to save- Returns:
- True if the content type was successfully saved
-