com.uwyn.rife.scheduler
Class Task

java.lang.Object
  extended by com.uwyn.rife.site.Validation
      extended by com.uwyn.rife.scheduler.Task
All Implemented Interfaces:
Constrained, ConstrainedPropertyListener, Validated, ValidatedConstrained, Cloneable

public class Task
extends Validation
implements Cloneable


Nested Class Summary
 class Task.InvalidPlanned
           
 
Constructor Summary
Task()
           
 
Method Summary
protected  void activateValidation()
          This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used.
 Task clone()
           
 boolean equals(Object object)
           
 String getFrequency()
           
 int getId()
           
 long getNextDate()
           
 long getNextDate(long start)
           
 long getPlanned()
           
 TaskManager getTaskManager()
           
 String getTaskoptionValue(String name)
           
 String getType()
           
 boolean isBusy()
           
 void setBusy(boolean busy)
           
 void setFrequency(String frequency)
           
 void setId(int id)
           
 void setPlanned(Date planned)
           
 void setPlanned(long planned)
           
 void setTaskManager(TaskManager taskManager)
           
 void setType(String type)
           
 
Methods inherited from class com.uwyn.rife.site.Validation
addConstrainedPropertyRules, addConstraint, addConstraint, addGroup, addRule, addValidationError, constraintSet, countValidationErrors, focusGroup, generateConstrainedPropertyRules, getConstrainedBean, getConstrainedProperties, getConstrainedProperty, getErrorIndication, getGroup, getGroups, getLoadingErrors, getRules, getValidatedSubjects, getValidationErrors, hasPropertyConstraint, isSubjectValid, limitSubjectErrors, makeErrorValid, makeSubjectValid, provideValidatedBean, replaceValidationErrors, resetGroup, resetValidation, retrieveValidatedBean, unlimitSubjectErrors, validate, validate, validateGroup, validateGroup
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task()
Method Detail

activateValidation

protected void activateValidation()
Description copied from class: Validation
This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used.

By overriding this method, you can thus isolate all the validation setup code code and don't enforce a performance penalty at each object construction when doing it in the default constructor.

Overrides:
activateValidation in class Validation

setTaskManager

public void setTaskManager(TaskManager taskManager)

getTaskManager

public TaskManager getTaskManager()

getTaskoptionValue

public String getTaskoptionValue(String name)
                          throws SchedulerException
Throws:
SchedulerException

getNextDate

public long getNextDate()
                 throws FrequencyException
Throws:
FrequencyException

getNextDate

public long getNextDate(long start)
                 throws FrequencyException
Throws:
FrequencyException

setId

public void setId(int id)

getId

public int getId()

setType

public void setType(String type)

getType

public String getType()

setPlanned

public void setPlanned(Date planned)

setPlanned

public void setPlanned(long planned)

getPlanned

public long getPlanned()

setFrequency

public void setFrequency(String frequency)
                  throws FrequencyException
Throws:
FrequencyException

getFrequency

public String getFrequency()

setBusy

public void setBusy(boolean busy)

isBusy

public boolean isBusy()

clone

public Task clone()
           throws CloneNotSupportedException
Overrides:
clone in class Validation
Throws:
CloneNotSupportedException

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.