public class DeleteContentClientSideElement extends DeleteContentClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected DeleteODFContentHelper |
_deleteODFContentHelper
The delete ODF content helper
|
protected RootOrgUnitProvider |
_rootOrgUnitProvider
The root orgunit provider
|
_observationManager
_contentHelper, _resolver, _smartHelper
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
DeleteContentClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_hasRight(Content content)
Determines if the user has sufficient right for the given content
|
protected boolean |
_isContentReferenced(Content content)
Test if content is still referenced before removing it
|
protected boolean |
_isModifiable(Content content)
Determines if the content is modifiable
|
Map<String,Object> |
deleteContents(List<String> contentsId,
Map<String,Object> parameters)
Delete ODF contents
|
void |
service(ServiceManager manager) |
_getReferencedDescription, getStatus
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _isAllRight, _isLocked, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParameters
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected RootOrgUnitProvider _rootOrgUnitProvider
protected DeleteODFContentHelper _deleteODFContentHelper
public DeleteContentClientSideElement()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class DeleteContentClientSideElement
ServiceException
protected boolean _hasRight(Content content)
SmartContentClientSideElement
_hasRight
in class SmartContentClientSideElement
content
- the contentprotected boolean _isModifiable(Content content)
SmartContentClientSideElement
_isModifiable
in class SmartContentClientSideElement
content
- the contentprotected boolean _isContentReferenced(Content content)
DeleteContentClientSideElement
_isContentReferenced
in class DeleteContentClientSideElement
content
- The content to remove