Class ValidateContentFunction

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

OSWorkflow function for validating a content.
  • 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) throws com.opensymphony.workflow.WorkflowException, javax.jcr.RepositoryException
      Validates the content: set the validation metadata.
      Parameters:
      content - the content.
      Throws:
      com.opensymphony.workflow.WorkflowException - if an error occurs.
      javax.jcr.RepositoryException - if an error occurs.