Class DeleteUserClientSideElement
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.plugins.userdirectory.clientsideelement.DeleteUserClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
This element creates an action button to delete a user 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
_observationManager
Fields inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_contentHelper, _resolver, _smartHelper
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_isContentReferenced
(Content content) Test if content is still referenced before removing itDelete user contentsvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.cms.clientsideelement.DeleteContentClientSideElement
_getReferencedDescription, getStatus
Methods inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParameters
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
-
_deleteUserComponent
The delete orgUnit component
-
-
Constructor Details
-
DeleteUserClientSideElement
public DeleteUserClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classDeleteContentClientSideElement
- Throws:
ServiceException
-
_isContentReferenced
Description copied from class:DeleteContentClientSideElement
Test if content is still referenced before removing it- Overrides:
_isContentReferenced
in classDeleteContentClientSideElement
- Parameters:
content
- The content to remove- Returns:
- true if content is still referenced
-
deleteContents
Delete user contents- Parameters:
contentsId
- The ids of contents to deleteparameters
- the additional parameters- Returns:
- the deleted and undeleted contents
-