Class MCCWorkflowClientSideElement
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.plugins.odfpilotage.clientsideelement.MCCWorkflowClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Client side element for MCC workflow buttons on a
Program
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumaration for MCC roleNested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected MCCWorkflowHelper
The MCC workflow helperprotected ODFHelper
The ODF helperprotected PilotageHelper
The pilotage helperprotected RulesManager
Th erules managerFields 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 TypeMethodDescriptiongetMinDateForMCCCFVUValidation
(String programId) Get minimun date for MCC CFVU validationgetMinDateForMCCOrgUnitValidation
(String programId) Get minimun date for MCC CFVU validationgetScripts
(boolean ignoreRights, Map<String, Object> contextParameters) This method return the scripts that will be used on client side.Get informations on contents' stateinvalidateMCCForCVFU
(String programId) Invalidate the MCCinvalidateMentionMCC
(String programId) Invalidate the rulesinvalidateMentionRules
(String programId) Invalidate the rulesinvalidateOrgunitMCC
(String programId) Invalidate the MCC for orgunit levelvoid
service
(ServiceManager manager) setMCCStatus
(String containerId, boolean validated) Set the MCC status of a container of type yearsetRulesStatus
(String containerId, boolean validated) Set the MCC status of a container of type yearvalidateMCCForCVFU
(String programId, String validationDate, String comment) Validate the MCCvalidateMentionMCC
(String programId, String validationDate, String comment) Validate the rulesvalidateMentionRules
(String programId, String validationDate, String comment) Validate the rulesvalidateOrgunitMCC
(String programId, String validationDate, String comment) Validate the MCC to orgunit levelMethods inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParameters, getStatus
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, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_odfHelper
The ODF helper -
_mccWorkflowHelper
The MCC workflow helper -
_pilotageHelper
The pilotage helper -
_rulesManager
Th erules manager
-
-
Constructor Details
-
MCCWorkflowClientSideElement
public MCCWorkflowClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSmartContentClientSideElement
- Throws:
ServiceException
-
getScripts
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String, Object> contextParameters) Description copied from interface:ClientSideElement
This method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScripts
in interfaceClientSideElement
- Overrides:
getScripts
in classStaticFileImportsClientSideElement
- Parameters:
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getStatus
Get informations on contents' state- Parameters:
programItemId
- the id of program itemmccRole
- the MCC role- Returns:
- informations on contents' state
-
validateMentionRules
public Map<String,Object> validateMentionRules(String programId, String validationDate, String comment) Validate the rules- Parameters:
programId
- the content idvalidationDate
- the date of validationcomment
- the optional comment- Returns:
- the result
-
invalidateMentionRules
Invalidate the rules- Parameters:
programId
- the program id- Returns:
- the result
-
validateMentionMCC
public Map<String,Object> validateMentionMCC(String programId, String validationDate, String comment) Validate the rules- Parameters:
programId
- the program idvalidationDate
- the date of validationcomment
- the optional comment- Returns:
- the result
-
invalidateMentionMCC
Invalidate the rules- Parameters:
programId
- the program id- Returns:
- the result
-
getMinDateForMCCOrgUnitValidation
Get minimun date for MCC CFVU validation- Parameters:
programId
- the content id- Returns:
- the minimun date
-
validateOrgunitMCC
public Map<String,Object> validateOrgunitMCC(String programId, String validationDate, String comment) Validate the MCC to orgunit level- Parameters:
programId
- the content idvalidationDate
- the date of validationcomment
- the optional comment- Returns:
- the result
-
invalidateOrgunitMCC
Invalidate the MCC for orgunit level- Parameters:
programId
- the content id- Returns:
- the result
-
getMinDateForMCCCFVUValidation
Get minimun date for MCC CFVU validation- Parameters:
programId
- the program id- Returns:
- the minimun date
-
validateMCCForCVFU
public Map<String,Object> validateMCCForCVFU(String programId, String validationDate, String comment) Validate the MCC- Parameters:
programId
- the program idvalidationDate
- the date of validation. Can be empty or null.comment
- the optional comment- Returns:
- the result
-
invalidateMCCForCVFU
Invalidate the MCC- Parameters:
programId
- the content id- Returns:
- the result
-
setMCCStatus
Set the MCC status of a container of type year- Parameters:
containerId
- the id of containervalidated
- true to validate MCC, false to invalidate- Returns:
- the result
-
setRulesStatus
Set the MCC status of a container of type year- Parameters:
containerId
- the id of containervalidated
- true to validate MCC, false to invalidate- Returns:
- the result
-