|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTaskDataImpl
com.ingenta.clownbike.SimpleTask
| Constructor Summary | |
SimpleTask()
|
|
| Method Summary | |
void |
canceled(DatabaseTransaction transaction)
Cancel the task. |
void |
completed(DatabaseTransaction transaction)
Finish the task. |
void |
doGet(DatabaseTransaction transaction,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
doPost(DatabaseTransaction transaction,
MultipartHttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Attribute |
findAttribute(java.lang.String name)
Return the attribute with the given name or null. |
java.util.List |
findAttributes(java.lang.String name)
Return the attributes with the given name or an empty list. |
TaskStep |
findStep(java.lang.Integer stepId)
Returns the step with the given step id or null if step not found. |
TaskStep |
findStepAfter(TaskStep step)
Returns the step after the given step or null if the given step is the last step. |
TaskStep |
findStepBefore(TaskStep step)
Returns the step before the given step or null if the given step is the first step. |
int |
findStepIndex(TaskStep step)
|
Attribute |
getAttribute(java.lang.String name)
Return the attribute with the given name or throws TaskException exception. |
TaskStep |
getCurrentStep()
Returns the current step active step. |
TaskStep |
getStep(java.lang.Integer stepId)
Returns the step with the given step id or throws TaskException if step not found. |
protected boolean |
isActive()
|
void |
setCurrentStep(TaskStep step)
Sets the given step as the current step. |
void |
started(DatabaseTransaction transaction)
Start the task. |
protected static java.util.Date |
toDate(java.lang.String value)
Return an date from the string value. |
| 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 |
public SimpleTask()
| Method Detail |
public TaskStep getCurrentStep()
Task
getCurrentStep in interface Taskpublic void setCurrentStep(TaskStep step)
Task
setCurrentStep in interface Task
public TaskStep getStep(java.lang.Integer stepId)
throws TaskException
Task
getStep in interface TaskTaskExceptionpublic TaskStep findStep(java.lang.Integer stepId)
Task
findStep in interface Taskpublic TaskStep findStepBefore(TaskStep step)
Task
findStepBefore in interface Taskpublic TaskStep findStepAfter(TaskStep step)
Task
findStepAfter in interface Taskpublic int findStepIndex(TaskStep step)
public Attribute getAttribute(java.lang.String name)
throws TaskException
getAttribute in interface TaskTaskExceptionpublic Attribute findAttribute(java.lang.String name)
findAttribute in interface Taskpublic java.util.List findAttributes(java.lang.String name)
findAttributes in interface Task
public void started(DatabaseTransaction transaction)
throws DatabaseException,
TaskException
Task
started in interface TaskDatabaseException
TaskException
public void canceled(DatabaseTransaction transaction)
throws DatabaseException,
TaskException
Task
canceled in interface TaskDatabaseException
TaskException
public void completed(DatabaseTransaction transaction)
throws DatabaseException,
TaskException
Task
completed in interface TaskDatabaseException
TaskException
public void doPost(DatabaseTransaction transaction,
MultipartHttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws TaskException
doPost in interface TaskTaskException
public void doGet(DatabaseTransaction transaction,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws TaskException
doGet in interface TaskTaskExceptionprotected boolean isActive()
protected static java.util.Date toDate(java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||