com.flexive.shared.scripting
Class FxScriptScheduleEdit

java.lang.Object
  extended by com.flexive.shared.scripting.FxScriptSchedule
      extended by com.flexive.shared.scripting.FxScriptScheduleEdit
All Implemented Interfaces:
SelectableObject, SelectableObjectWithName, java.io.Serializable

public class FxScriptScheduleEdit
extends FxScriptSchedule

Class for editing a script schedule

Since:
3.1.2
Author:
Gerhard Glos (gerhard.glos@flexive.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.scripting.FxScriptSchedule
active, cronString, endTime, id, name, REPEAT_TIMES_UNBOUNDED, repeatInterval, repeatTimes, scriptId, startTime
 
Constructor Summary
FxScriptScheduleEdit(FxScriptSchedule ss)
          Creates an editable script schedule from an existing script schedule
FxScriptScheduleEdit(long scriptId, java.lang.String name, boolean active, java.util.Date startTime)
          Creates a 'run-once' script schedule that runs at the specified start time.
FxScriptScheduleEdit(long scriptId, java.lang.String name, boolean active, java.util.Date startTime, java.util.Date endTime, long repeatInterval)
          Creates a repeating script schedule that repeats between the specified start time and end time with the given repeat interval.
FxScriptScheduleEdit(long scriptId, java.lang.String name, boolean active, java.util.Date startTime, java.util.Date endTime, java.lang.String cronString)
          Creates a repeating script schedule that repeats between the specified start time and end time according to the specified cron String.
FxScriptScheduleEdit(long scriptId, java.lang.String name, boolean active, java.util.Date startTime, long repeatInterval, int repeatTimes)
          Creates a repeating script schedule that repeats N times using the specified interval starting at the specified start time.
 
Method Summary
 void setActive(boolean active)
           
 void setCronString(java.lang.String cronString)
           
 void setEndTime(java.util.Date endTime)
           
 void setId(long id)
           
 void setName(java.lang.String name)
           
 void setRepeatInterval(long repeatInterval)
           
 void setRepeatTimes(int repeatTimes)
           
 void setScriptId(long scriptId)
           
 void setStartTime(java.util.Date startTime)
           
 
Methods inherited from class com.flexive.shared.scripting.FxScriptSchedule
asEditable, getCronString, getEndTime, getId, getName, getRepeatInterval, getRepeatTimes, getScriptId, getStartTime, isActive, isUnbounded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxScriptScheduleEdit

public FxScriptScheduleEdit(long scriptId,
                            java.lang.String name,
                            boolean active,
                            java.util.Date startTime,
                            java.util.Date endTime,
                            long repeatInterval)
Creates a repeating script schedule that repeats between the specified start time and end time with the given repeat interval.

Parameters:
scriptId - scheduled script id
name - script schedule name
active - active flag
startTime - start time
endTime - end time
repeatInterval - repeat interval in ms

FxScriptScheduleEdit

public FxScriptScheduleEdit(long scriptId,
                            java.lang.String name,
                            boolean active,
                            java.util.Date startTime,
                            java.util.Date endTime,
                            java.lang.String cronString)
Creates a repeating script schedule that repeats between the specified start time and end time according to the specified cron String.

Parameters:
scriptId - scheduled script id
name - script schedule name
active - active flag
startTime - start time
endTime - end time
cronString - cron String

FxScriptScheduleEdit

public FxScriptScheduleEdit(long scriptId,
                            java.lang.String name,
                            boolean active,
                            java.util.Date startTime,
                            long repeatInterval,
                            int repeatTimes)
Creates a repeating script schedule that repeats N times using the specified interval starting at the specified start time.

Parameters:
scriptId - scheduled script id
name - script schedule name
active - active flag
startTime - start time
repeatInterval - repeat interval in ms
repeatTimes - number of times to repeat (after the script was first started)

FxScriptScheduleEdit

public FxScriptScheduleEdit(long scriptId,
                            java.lang.String name,
                            boolean active,
                            java.util.Date startTime)
Creates a 'run-once' script schedule that runs at the specified start time.

Parameters:
scriptId - scheduled script id
name - schedule name
active - active flag
startTime - start time

FxScriptScheduleEdit

public FxScriptScheduleEdit(FxScriptSchedule ss)
Creates an editable script schedule from an existing script schedule

Parameters:
ss - existing script schedule
Method Detail

setScriptId

public void setScriptId(long scriptId)

setName

public void setName(java.lang.String name)

setActive

public void setActive(boolean active)

setStartTime

public void setStartTime(java.util.Date startTime)

setEndTime

public void setEndTime(java.util.Date endTime)

setRepeatInterval

public void setRepeatInterval(long repeatInterval)

setRepeatTimes

public void setRepeatTimes(int repeatTimes)

setCronString

public void setCronString(java.lang.String cronString)

setId

public void setId(long id)