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