Class PilotageStatusCheckCondition

java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.plugins.odfpilotage.workflow.PilotageStatusCheckCondition
All Implemented Interfaces:
com.opensymphony.workflow.Condition, Disposable, Initializable, LogEnabled, Serviceable

public class PilotageStatusCheckCondition extends AbstractWorkflowComponent implements com.opensymphony.workflow.Condition, Initializable, Disposable
Check the pilotage status and check if we try to edit the structure
  • Field Details

  • Constructor Details

  • Method Details

    • initialize

      public void initialize() throws Exception
      Specified by:
      initialize in interface Initializable
      Throws:
      Exception
    • passesCondition

      public boolean passesCondition(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
      Specified by:
      passesCondition in interface com.opensymphony.workflow.Condition
      Throws:
      com.opensymphony.workflow.WorkflowException
    • passesPilotageStatusCondition

      protected boolean passesPilotageStatusCondition(Map transientVars) throws com.opensymphony.workflow.WorkflowException
      Return true if the pilotage status passes conditions
      Parameters:
      transientVars - the transient vars
      Returns:
      true if the pilotage status passes conditions
      Throws:
      com.opensymphony.workflow.WorkflowException - if an error occurred
    • getContent

      protected WorkflowAwareContent getContent(Map transientVars) throws com.opensymphony.workflow.WorkflowException
      Retrieve the content associated with the workflow.
      Parameters:
      transientVars - the parameters from the call.
      Returns:
      the content.
      Throws:
      com.opensymphony.workflow.WorkflowException - if the content is not found.
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable