Class ValidateContentFunction

All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider, EnhancedFunction, Initializable, LogEnabled, Serviceable
Direct Known Subclasses:
ValidateSynchronizedContentFunction

OSWorkflow function for validating a content.
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
      Throws:
      com.opensymphony.workflow.WorkflowException
    • _notifyObservers

      protected void _notifyObservers(Map transientVars, Content content) throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowException
      Notify observers of content validation
      Parameters:
      transientVars - The transient variables
      content - The created content
      Throws:
      AmetysRepositoryException - If an error occurred with the repository
      com.opensymphony.workflow.WorkflowException - If an error occurred with the workflow
    • _validateContent

      protected void _validateContent(ModifiableWorkflowAwareContent content, Map transientVars, Map args) throws com.opensymphony.workflow.WorkflowException, javax.jcr.RepositoryException
      Validates the content: set the validation metadata.
      Parameters:
      content - the content.
      transientVars - the transient vars
      args - the arguments
      Throws:
      com.opensymphony.workflow.WorkflowException - if an error occurs.
      javax.jcr.RepositoryException - if an error occurs.
    • _isMajorValidation

      protected boolean _isMajorValidation(Map<String,Object> contextParameters, Map args)
      Search into context parameters and arguments if major information is filled, if not default value is true.
      Parameters:
      contextParameters - the context parameters
      args - the arguments
      Returns:
      true if the current validation is a major validation.
    • getArguments

      Description copied from interface: EnhancedFunction
      Get the list of accepted arguments for this function
      Returns:
      a List of argument names and associated description
    • getDescription

      Description copied from interface: EnhancedFunction
      Get the function descriptions depending on arguments values
      Parameters:
      args - a map of the arguments with their values in current workflow
      Returns:
      a description to display in workflow editor vue