public class ArchiveMenuClientSideElement extends SmartContentMenu
SmartContentClientSideElement
.
Some methods come from SimpleMenu
SmartContentMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected int |
_scheduledArchivingCount
The number of content with a scheduled archiving.
|
protected Set<Date> |
_scheduledDates
Set of the dates of each content that has a schedule archiving
|
_menuItemManager, _menuItems, _primaryMenuItem, _ribbonControlManager, _serviceManager
_context, _resolver, _userManager, _userProvider, _workflowProvider
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ArchiveMenuClientSideElement() |
Modifier and Type | Method and Description |
---|---|
private Date |
_getDateNearestToCurrent(Set<Date> dates) |
protected I18nizableText |
_getScheduledArchivingDescription(Content content)
Get description when user can not do action because there is already a scheduled archiving
|
protected boolean |
_hasScheduledArchiving(Content content)
Determines if the content has a scheduled archiving
|
protected boolean |
_isAllRight(Content content,
boolean hasError,
Map<String,Object> results)
Determines if the user can finally do action on content
|
Map<String,Object> |
getStatus(List<String> contentsId)
Get informations on contents' state
|
_configureItemsMenu, configure, getReferencedClientSideElements, getScripts, service
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, contextualize, getContentDefaultParameters
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected Set<Date> _scheduledDates
protected int _scheduledArchivingCount
public ArchiveMenuClientSideElement()
public Map<String,Object> getStatus(List<String> contentsId)
SmartContentClientSideElement
getStatus
in class SmartContentClientSideElement
contentsId
- the ids of contentsprotected boolean _isAllRight(Content content, boolean hasError, Map<String,Object> results)
SmartContentClientSideElement
_isAllRight
in class SmartContentClientSideElement
content
- The contenthasError
- true if a error has already occursresults
- The result parameters to be passed to client sideprotected I18nizableText _getScheduledArchivingDescription(Content content)
content
- The contentI18nizableText
descriptionprotected boolean _hasScheduledArchiving(Content content)
content
- the contentprivate Date _getDateNearestToCurrent(Set<Date> dates)