Class ContentTypeStateComponent
java.lang.Object
org.ametys.plugins.contenttypeseditor.edition.ContentTypeStateComponent
- All Implemented Interfaces:
Component
,Serviceable
This component allow to know state of content type in the content type editor
tool
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
States of a content type -
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The content type extension point instancestatic final String
The Avalon role name -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the new content type which are local of applicationGet the state of content type according to its idvoid
markContentTypeAsEdited
(String id, boolean isNew) Add a content type id to the list of edit content typesvoid
Add a content type id to the list of saved content typesvoid
Remove content type from edit listvoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
The Avalon role name -
_contentTypeExtensionPoint
The content type extension point instance
-
-
Constructor Details
-
ContentTypeStateComponent
public ContentTypeStateComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getStateContentType
Get the state of content type according to its id- Parameters:
id
- The id of content type- Returns:
- the state of content type
-
markContentTypeAsSaved
Add a content type id to the list of saved content types- Parameters:
id
- The id of content type
-
markContentTypeAsEdited
Add a content type id to the list of edit content types- Parameters:
id
- The id of content typeisNew
- True if the content type is new
-
removeContentTypeMarkedAsEdited
Remove content type from edit list- Parameters:
id
- The id of content type
-
getContentTypeMarkedAsNew
Get the new content type which are local of application- Returns:
- The new content type
-