public abstract class AbstractPublishOrUnpublishPageRunnable extends Object implements Runnable
Runnable
which schedules a PublishOrUnpublishPageSchedulable
task for (un)publishing a page.Runnable.FireProcess, Runnable.MisfirePolicy
Modifier and Type | Field and Description |
---|---|
protected ZonedDateTime |
_date
The date when to (un)publish the page
|
protected String |
_pageId
The id of the page to (un)publish
|
protected String |
_pageName
The name of the page to (un)publish
|
protected UserIdentity |
_userIdentity
The
UserIdentity to launch the runnable task |
Constructor and Description |
---|
AbstractPublishOrUnpublishPageRunnable(String pageId,
String pageName,
UserIdentity userIdentity,
ZonedDateTime date)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCronExpression()
Returns the cron expression to base the schedule on.
|
Runnable.FireProcess |
getFireProcess()
Gets the process of firing, i.e.
|
String |
getId()
Returns the id
|
Runnable.MisfirePolicy |
getMisfirePolicy()
Gets the misfire policy, i.e.
|
Map<String,Object> |
getParameterValues()
Gets the values of the parameters (from the linked
Schedulable ) |
String |
getSchedulableId()
Gets the identifier of
Schedulable to execute |
UserIdentity |
getUserIdentity()
Gets the user which should be used to launch the runnable task.
|
boolean |
isDeactivatable()
Determines if this runnable can be activate or deactivate
|
boolean |
isModifiable()
Determines if this runnable can be modified
|
boolean |
isRemovable()
Determines if this runnable can be removed
|
boolean |
isVolatile()
Determines if the runnable must not survive to a server restart
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getLabel
protected UserIdentity _userIdentity
UserIdentity
to launch the runnable taskprotected ZonedDateTime _date
public AbstractPublishOrUnpublishPageRunnable(String pageId, String pageName, UserIdentity userIdentity, ZonedDateTime date)
pageId
- The id of the page to (un)publishpageName
- The name of the page to (un)publishuserIdentity
- The UserIdentity
to launch the runnable taskdate
- The date when to (un)publish the pagepublic Runnable.FireProcess getFireProcess()
Runnable
getFireProcess
in interface Runnable
public String getCronExpression()
Runnable
Runnable.getFireProcess()
is different from Runnable.FireProcess.CRON
.getCronExpression
in interface Runnable
public String getSchedulableId()
Runnable
Schedulable
to executegetSchedulableId
in interface Runnable
Schedulable
public boolean isRemovable()
Runnable
isRemovable
in interface Runnable
true
if this runnable is removablepublic boolean isModifiable()
Runnable
isModifiable
in interface Runnable
true
if this runnable is modifiablepublic boolean isDeactivatable()
Runnable
isDeactivatable
in interface Runnable
true
if this runnable is deactivatablepublic Runnable.MisfirePolicy getMisfirePolicy()
Runnable
Runnable.getFireProcess()
is different from Runnable.FireProcess.CRON
.getMisfirePolicy
in interface Runnable
public boolean isVolatile()
Runnable
isVolatile
in interface Runnable
public Map<String,Object> getParameterValues()
Runnable
Schedulable
)getParameterValues
in interface Runnable
public UserIdentity getUserIdentity()
Runnable
getUserIdentity
in interface Runnable
UserIdentity
of the user