Package org.nuxeo.ecm.core.scheduler
Class ScheduleImpl
java.lang.Object
org.nuxeo.ecm.core.scheduler.ScheduleImpl
- All Implemented Interfaces:
 Schedule,Descriptor
ScheduleImpl extension definition.
- 
Field Summary
FieldsFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the cron expression.Returns the event category.Returns the event id.getId()The descriptor id, descriptors with same id are merged.Returns an instance of theEventJobFactory(DefaultEventJobFactoryby default).Returns the timezone to be used for the Cron Expression.Returns the username.inthashCode()booleanReturns true if the scheduler is enabled and the job scheduled for executionvoidsetEventId(String eventId) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge 
- 
Field Details
- 
id
 - 
jobFactoryClass
- Since:
 - 10.2
 
 - 
eventId
 - 
eventCategory
 - 
cronExpression
 - 
timeZone
- Since:
 - 10.2
 
 - 
username
 - 
enabled
public boolean enabled- Since:
 - 5.7.3
 
 
 - 
 - 
Constructor Details
- 
ScheduleImpl
public ScheduleImpl() 
 - 
 - 
Method Details
- 
setEventId
 - 
getId
Description copied from interface:DescriptorThe descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()for exemple.- Specified by:
 getIdin interfaceDescriptor- Specified by:
 getIdin interfaceSchedule- Returns:
 - the schedule job id.
 
 - 
getJobFactory
Description copied from interface:ScheduleReturns an instance of theEventJobFactory(DefaultEventJobFactoryby default).- Specified by:
 getJobFactoryin interfaceSchedule- Returns:
 - An instance of 
EventJobFactory. 
 - 
getEventId
Description copied from interface:ScheduleReturns the event id.- Specified by:
 getEventIdin interfaceSchedule- Returns:
 - the event id
 
 - 
getEventCategory
Description copied from interface:ScheduleReturns the event category.- Specified by:
 getEventCategoryin interfaceSchedule- Returns:
 - the event category
 
 - 
getCronExpression
Description copied from interface:ScheduleReturns the cron expression.- Specified by:
 getCronExpressionin interfaceSchedule- Returns:
 - the cron expression
 
 - 
getUsername
Description copied from interface:ScheduleReturns the username.- Specified by:
 getUsernamein interfaceSchedule- Returns:
 - the username
 
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() - 
isEnabled
public boolean isEnabled()Description copied from interface:ScheduleReturns true if the scheduler is enabled and the job scheduled for execution - 
getTimeZone
Description copied from interface:ScheduleReturns the timezone to be used for the Cron Expression.- Specified by:
 getTimeZonein interfaceSchedule- Returns:
 - the timezone, or 
nullif not specified - Since:
 - 10.2
 
 
 -