Class PublishContentRunnable

java.lang.Object
org.ametys.plugins.core.impl.schedule.DefaultRunnable
org.ametys.cms.workflow.schedule.PublishContentRunnable
All Implemented Interfaces:
Runnable

A Runnable which schedules a ExecuteContentWorkflowActionSchedulable task for publishing a page.
  • Constructor Details

    • PublishContentRunnable

      public PublishContentRunnable(String contentId, String contentTitle, int workflowAction, UserIdentity userIdentity, ZonedDateTime date)
      Constructor
      Parameters:
      contentId - The id of the content to execute the action
      contentTitle - The title of the targeted content
      workflowAction - The id of the action to execute
      userIdentity - The UserIdentity to launch the runnable task
      date - The date when to publish the page
  • Method Details

    • getId

      public static String getId(String contentId)
      Get the job identifier for a given content
      Parameters:
      contentId - the content identifier
      Returns:
      the identifier of the job