Package org.ametys.cms.workflow.schedule
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.schedule.Runnable
Runnable.FireProcess, Runnable.MisfirePolicy -
Field Summary
Fields inherited from class org.ametys.plugins.core.impl.schedule.DefaultRunnable
_cron, _deactivatable, _description, _fireProcess, _id, _label, _misfirePolicy, _modifiable, _parameterValues, _removable, _schedulableId, _userIdentity, _volatile -
Constructor Summary
ConstructorsConstructorDescriptionPublishContentRunnable(String contentId, String contentTitle, int workflowAction, UserIdentity userIdentity, ZonedDateTime date) Constructor -
Method Summary
Methods inherited from class org.ametys.plugins.core.impl.schedule.DefaultRunnable
getCronExpression, getDescription, getFireProcess, getId, getLabel, getMisfirePolicy, getParameterValues, getSchedulableId, getUserIdentity, isDeactivatable, isModifiable, isRemovable, isVolatile
-
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 actioncontentTitle- The title of the targeted contentworkflowAction- The id of the action to executeuserIdentity- TheUserIdentityto launch the runnable taskdate- The date when to publish the page
-
-
Method Details
-
getId
Get the job identifier for a given content- Parameters:
contentId- the content identifier- Returns:
- the identifier of the job
-