com.ingenta.clownbike
Class NewTask

java.lang.Object
  extended byTaskDataImpl
      extended bycom.ingenta.clownbike.SimpleTask
          extended bycom.ingenta.clownbike.NewTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
NewDiscussionTask, NewDocumentTask, NewEventTask, NewFAQTask, NewFreeContentTask, NewJobTask, NewLinkTask, NewNewsTask

public abstract class NewTask
extends SimpleTask

See Also:
Serialized Form

Constructor Summary
NewTask()
           
 
Method Summary
 void completed(DatabaseTransaction transaction)
          Finish the task.
abstract  void createObject(DatabaseTransaction transaction)
           
abstract  void defineAttributes(DatabaseTransaction transaction)
           
 
Methods inherited from class com.ingenta.clownbike.SimpleTask
canceled, doGet, doPost, findAttribute, findAttributes, findStep, findStepAfter, findStepBefore, findStepIndex, getAttribute, getCurrentStep, getStep, isActive, setCurrentStep, started, toDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ingenta.clownbike.Task
getSteps
 

Constructor Detail

NewTask

public NewTask()
Method Detail

defineAttributes

public abstract void defineAttributes(DatabaseTransaction transaction)
                               throws DatabaseException,
                                      TaskException
Throws:
DatabaseException
TaskException

createObject

public abstract void createObject(DatabaseTransaction transaction)
                           throws DatabaseException,
                                  TaskException
Throws:
DatabaseException
TaskException

completed

public void completed(DatabaseTransaction transaction)
               throws DatabaseException,
                      TaskException
Description copied from interface: Task
Finish the task. Throws an TaskException if the task is not active.

Specified by:
completed in interface Task
Overrides:
completed in class SimpleTask
Throws:
DatabaseException
TaskException