Package org.ametys.web.clientsideelement
Class DeleteContentClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.cms.clientsideelement.SmartContentClientSideElement
org.ametys.cms.clientsideelement.DeleteContentClientSideElement
org.ametys.web.clientsideelement.DeleteContentClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
This element creates an action button to delete a content
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
Fields inherited from class org.ametys.cms.clientsideelement.DeleteContentClientSideElement
_observationManagerFields inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_contentHelper, _resolver, _smartHelperFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_isContentReferenced(Content content) Test if content is still referenced before removing itGet informations on contents' state This method should only be used if you need additional information than the default one.voidservice(ServiceManager smanager) Methods inherited from class org.ametys.cms.clientsideelement.DeleteContentClientSideElement
_getReferencedDescriptionMethods inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasReadAccess, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParametersMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
DeleteContentClientSideElement
public DeleteContentClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classDeleteContentClientSideElement- Throws:
ServiceException
-
getStatus
Description copied from class:SmartContentClientSideElementGet informations on contents' state This method should only be used if you need additional information than the default one. Otherwise use the JS implementation provided bySmartContentController._calculateStatusWhen called inside aCallable, you can consider that this method will do the right check as long as you only do additional processing on the "allright-contents".- Overrides:
getStatusin classDeleteContentClientSideElement- Parameters:
contentsId- the ids of contents- Returns:
- informations on contents' state
-
_isContentReferenced
Description copied from class:DeleteContentClientSideElementTest if content is still referenced before removing it- Overrides:
_isContentReferencedin classDeleteContentClientSideElement- Parameters:
content- The content to remove- Returns:
- true if content is still referenced
-