Package org.ametys.cms.workflow.schedule
Class UnpublishContentRunnable
java.lang.Object
org.ametys.plugins.core.impl.schedule.DefaultRunnable
org.ametys.cms.workflow.schedule.UnpublishContentRunnable
- All Implemented Interfaces:
Runnable
Runnable to schedule the depublication of a content
-
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
ConstructorsConstructorDescriptionUnpublishContentRunnable(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
-
UnpublishContentRunnable
public UnpublishContentRunnable(String contentId, String contentTitle, int workflowAction, UserIdentity userIdentity, ZonedDateTime date) Constructor- Parameters:
contentId- The id of the content to target with 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 name for a given content- Parameters:
contentId- the content identifier- Returns:
- the name of the job to do an action
-