Package org.ametys.web.publication
Class UnpublishPageRunnable
- java.lang.Object
-
- org.ametys.web.publication.AbstractPublishOrUnpublishPageRunnable
-
- org.ametys.web.publication.UnpublishPageRunnable
-
- All Implemented Interfaces:
Runnable
public class UnpublishPageRunnable extends AbstractPublishOrUnpublishPageRunnable
ARunnable
which schedules aPublishOrUnpublishPageSchedulable
task for unpublishing 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.web.publication.AbstractPublishOrUnpublishPageRunnable
_date, _pageId, _pageName, _userIdentity
-
-
Constructor Summary
Constructors Constructor Description UnpublishPageRunnable(String pageId, String pageName, UserIdentity userIdentity, ZonedDateTime date)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getDescription()
Returns the descriptionI18nizableText
getLabel()
Returns the label-
Methods inherited from class org.ametys.web.publication.AbstractPublishOrUnpublishPageRunnable
getCronExpression, getFireProcess, getId, getMisfirePolicy, getParameterValues, getSchedulableId, getUserIdentity, isDeactivatable, isModifiable, isRemovable, isVolatile
-
-
-
-
Constructor Detail
-
UnpublishPageRunnable
public UnpublishPageRunnable(String pageId, String pageName, UserIdentity userIdentity, ZonedDateTime date)
Constructor- Parameters:
pageId
- The id of the page to unpublishpageName
- The name of the page to unpublishuserIdentity
- TheUserIdentity
to launch the runnable taskdate
- The date when to unpublish the page
-
-
Method Detail
-
getLabel
public I18nizableText getLabel()
Description copied from interface:Runnable
Returns the label- Returns:
- the i18n label
-
getDescription
public I18nizableText getDescription()
Description copied from interface:Runnable
Returns the description- Returns:
- the i18n description
-
-