public class PilotageStatusButtonClientSideElement extends SmartContentClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ODFHelper |
_odfHelper
The ODF helper
|
protected PilotageStatusHelper |
_pilotageStatusHelper
The pilotage status helper
|
_contentHelper, _resolver, _smartHelper
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
PilotageStatusButtonClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
_getMainlyGoBackDescription(Content content)
Get content i18n description when we go back to previous step in pilotage status
|
protected I18nizableText |
_getMainlyGoBackDisabledDescription(Content content)
Get content i18n description when we can't go back to previous step in pilotage status
|
protected I18nizableText |
_getMainlyGoNextDescription(Content content)
Get content i18n description when we go to next step in pilotage status
|
protected I18nizableText |
_getMainlyGoNextDisabledDescription(Content content)
Get content i18n description when we can't go to next step in pilotage status
|
List<String> |
getSharedChildName(String contentId)
Get the list of shared first child name of the content
|
Map<String,Object> |
getStatus(List<String> contentsId,
String buttonStatus)
Get informations on contents' state
|
Date |
getValidationDate(String contentId)
Get the validation date from content id
|
boolean |
isEnable(PilotageStatusHelper.PilotageStatus buttonPilotageStatus,
PilotageStatusHelper.PilotageStatus contentPilotageStatus)
True if the button is enable
|
boolean |
isToggle(PilotageStatusHelper.PilotageStatus buttonPilotageStatus,
PilotageStatusHelper.PilotageStatus contentPilotageStatus)
True if the button is toggle
|
void |
removePilotageStatus(String contentId,
String status)
Remove the pilotage status from the content
|
void |
service(ServiceManager manager) |
void |
setPilotageStatus(String contentId,
String status,
String validationDateAsString,
String comment)
Set the pilotage status to the content
|
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParameters, getStatus
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected PilotageStatusHelper _pilotageStatusHelper
protected ODFHelper _odfHelper
public PilotageStatusButtonClientSideElement()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class SmartContentClientSideElement
ServiceException
public Map<String,Object> getStatus(List<String> contentsId, String buttonStatus)
contentsId
- the ids of contentsbuttonStatus
- the button statuspublic Date getValidationDate(String contentId)
contentId
- the contentIdpublic List<String> getSharedChildName(String contentId)
contentId
- the contentIdpublic boolean isEnable(PilotageStatusHelper.PilotageStatus buttonPilotageStatus, PilotageStatusHelper.PilotageStatus contentPilotageStatus)
buttonPilotageStatus
- the button statuscontentPilotageStatus
- the content statuspublic boolean isToggle(PilotageStatusHelper.PilotageStatus buttonPilotageStatus, PilotageStatusHelper.PilotageStatus contentPilotageStatus)
buttonPilotageStatus
- the button statuscontentPilotageStatus
- the content statuspublic void setPilotageStatus(String contentId, String status, String validationDateAsString, String comment)
contentId
- the content idstatus
- the pilotage statusvalidationDateAsString
- the validation date as stringcomment
- the commentpublic void removePilotageStatus(String contentId, String status)
contentId
- the content idstatus
- the pilotage statusprotected I18nizableText _getMainlyGoBackDescription(Content content)
content
- The contentI18nizableText
descriptionprotected I18nizableText _getMainlyGoBackDisabledDescription(Content content)
content
- The contentI18nizableText
descriptionprotected I18nizableText _getMainlyGoNextDescription(Content content)
content
- The contentI18nizableText
descriptionprotected I18nizableText _getMainlyGoNextDisabledDescription(Content content)
content
- The contentI18nizableText
description