public class UnlockRunnable extends Object implements Runnable
Runnable which schedules a UnlockSchedulable for unlocking an object.Runnable.FireProcess, Runnable.MisfirePolicy| Modifier and Type | Field and Description |
|---|---|
protected LocalDateTime |
_date
The date when to unlock the content
|
protected String |
_objectId
The id of the object to unlock
|
protected String |
_objectName
The name of the object to unlock
|
| Constructor and Description |
|---|
UnlockRunnable(String objectId,
String objectName,
LocalDateTime date)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCronExpression()
Returns the cron expression to base the schedule on.
|
I18nizableText |
getDescription()
Returns the description
|
Runnable.FireProcess |
getFireProcess()
Gets the process of firing, i.e.
|
String |
getId()
Returns the id
|
I18nizableText |
getLabel()
Returns the label
|
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 |
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
|
protected String _objectName
protected LocalDateTime _date
public UnlockRunnable(String objectId, String objectName, LocalDateTime date)
objectId - The id of the object to unlockobjectName - The name of the object to unlockdate - The date when to unlock the contentpublic I18nizableText getLabel()
Runnablepublic I18nizableText getDescription()
RunnablegetDescription in interface Runnablepublic Runnable.FireProcess getFireProcess()
RunnablegetFireProcess in interface Runnablepublic String getCronExpression()
RunnableRunnable.getFireProcess() is different from Runnable.FireProcess.CRON.getCronExpression in interface Runnablepublic String getSchedulableId()
RunnableSchedulable to executegetSchedulableId in interface RunnableSchedulablepublic boolean isRemovable()
RunnableisRemovable in interface Runnabletrue if this runnable is removablepublic boolean isModifiable()
RunnableisModifiable in interface Runnabletrue if this runnable is modifiablepublic boolean isDeactivatable()
RunnableisDeactivatable in interface Runnabletrue if this runnable is deactivatablepublic Runnable.MisfirePolicy getMisfirePolicy()
RunnableRunnable.getFireProcess() is different from Runnable.FireProcess.CRON.getMisfirePolicy in interface Runnablepublic boolean isVolatile()
RunnableisVolatile in interface Runnablepublic Map<String,Object> getParameterValues()
RunnableSchedulable)getParameterValues in interface Runnable