com.ingenta.clownbike
Class SimpleTaskStep

java.lang.Object
  extended byTaskStepDataImpl
      extended bycom.ingenta.clownbike.SimpleTaskStep
All Implemented Interfaces:
TaskStep
Direct Known Subclasses:
EditSelectItemTaskStep

public class SimpleTaskStep
extends TaskStepDataImpl
implements TaskStep

Note: this class has a natural ordering that is inconsistent with equals. That is a.compareTo( b ) == 0 does not imply that a.equals( b ) == true.

See Also:
Serialized Form

Constructor Summary
SimpleTaskStep()
           
 
Method Summary
 void completed(DatabaseTransaction transaction)
          Completes the step.
 void doGet(DatabaseTransaction transaction, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Called when the step needs to be viewed.
 void doPost(DatabaseTransaction transaction, MultipartHttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Called when the user has changed the presentation via the template.
 Task getTask()
          Returns the task associated with this step.
 void setTask(Task task)
          Sets the task associated with this step.
 void started(DatabaseTransaction transaction)
          Starts the step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTaskStep

public SimpleTaskStep()
Method Detail

getTask

public Task getTask()
Description copied from interface: TaskStep
Returns the task associated with this step.

Specified by:
getTask in interface TaskStep

setTask

public void setTask(Task task)
Description copied from interface: TaskStep
Sets the task associated with this step.

Specified by:
setTask in interface TaskStep

doPost

public void doPost(DatabaseTransaction transaction,
                   MultipartHttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws DatabaseException,
                   TaskException
Description copied from interface: TaskStep
Called when the user has changed the presentation via the template. This method typically gets one or more paramater data from the request and passes this data onto the task.

Specified by:
doPost in interface TaskStep
Throws:
DatabaseException
TaskException

doGet

public void doGet(DatabaseTransaction transaction,
                  javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws DatabaseException,
                  TaskException
Description copied from interface: TaskStep
Called when the step needs to be viewed. Nothing needs to be done is the template handles everything. However, this method typically sets one or more attributes on the request for use by the template.

Specified by:
doGet in interface TaskStep
Throws:
DatabaseException
TaskException

started

public void started(DatabaseTransaction transaction)
             throws DatabaseException,
                    TaskException
Description copied from interface: TaskStep
Starts the step. A step may be restarted any number of times. If the step has been completed then both the start and the completed dates are reset. Zero or more of a task's may be active at any one time.

Specified by:
started in interface TaskStep
Throws:
DatabaseException
TaskException

completed

public void completed(DatabaseTransaction transaction)
               throws DatabaseException,
                      TaskException
Description copied from interface: TaskStep
Completes the step. A step may be completed any number of times but must be started before each completion. Throws an illegal state expection if the step is inactive.

Specified by:
completed in interface TaskStep
Throws:
DatabaseException
TaskException