Class RemoveContentTypeClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.contenttypeseditor.edition.clientsideelement.RemoveContentTypeClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Tool client side element for remove a content type
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys object resolver instanceprotected ContentTypeExtensionPoint
The content type extension point instanceprotected EditContentTypeHelper
The edit content type component instanceFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRemovedContentTypeInfo
(String contentTypeId) Recover information about a content typeboolean
isDeletableContentType
(String contentTypeId) Check if a content type is deletableboolean
isUnusedContentType
(String contentTypeId) Check if a content type is unusedboolean
removeContentType
(String contentTypeId) Remove a existing content type defined in WEB-INF/param/content-types directory.
This method archived the content type into the WEB-INF/param/content-types/_archive/pluginName folder.void
service
(ServiceManager manager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_contentTypeExtensionPoint
The content type extension point instance -
_editContentTypeHelper
The edit content type component instance -
_ametysObjectResolver
The ametys object resolver instance
-
-
Constructor Details
-
RemoveContentTypeClientSideElement
public RemoveContentTypeClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
removeContentType
Remove a existing content type defined in WEB-INF/param/content-types directory.
This method archived the content type into the WEB-INF/param/content-types/_archive/pluginName folder.- Parameters:
contentTypeId
- the id of content type to remove- Returns:
- True if the content type was removed
-
isDeletableContentType
Check if a content type is deletable- Parameters:
contentTypeId
- Id of content type- Returns:
- True if the content type is deletable
-
isUnusedContentType
Check if a content type is unused- Parameters:
contentTypeId
- Id of content type- Returns:
- True if the content type is unused
-
getRemovedContentTypeInfo
Recover information about a content type- Parameters:
contentTypeId
- Id of content type- Returns:
- Information about a content type
-