com.ingenta.clownbike
Class TaskFactory

java.lang.Object
  extended bycom.ingenta.clownbike.TaskFactory
Direct Known Subclasses:
EditTaskFactory, NewTaskFactory

public abstract class TaskFactory
extends java.lang.Object

A TaskFactory is used to create new tasks. There is a task factory for each kind of task that can be performed.


Constructor Summary
TaskFactory(Configuration configuration)
           
 
Method Summary
abstract  Task create(DatabaseTransaction transaction)
          Create a new task.
 boolean equals(java.lang.Object object)
           
 Configuration getConfiguration()
           
 java.lang.String getDescription()
           
 java.lang.Integer getId()
          Returns the id for this factory.
 java.lang.String getTitle()
          Returns the description.
 int hashCode()
           
protected  void setConfiguration(Configuration configuration)
           
protected  void setDescription(java.lang.String description)
           
protected  void setId(java.lang.Integer id)
          Returns the title.
protected  void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskFactory

public TaskFactory(Configuration configuration)
            throws TaskException
Method Detail

getId

public java.lang.Integer getId()
Returns the id for this factory. Ids are unique and never reused.


setId

protected void setId(java.lang.Integer id)
Returns the title. The title should be suitable for use in a one line presentation and is assumed to be valid HTML suitable to inclusion within a SPAN tag.


getTitle

public java.lang.String getTitle()
Returns the description. The description can be any length and is assumed to be valid HTML suitable to inclusion within a DIV tag.


setTitle

protected void setTitle(java.lang.String title)

getDescription

public java.lang.String getDescription()

setDescription

protected void setDescription(java.lang.String description)

getConfiguration

public Configuration getConfiguration()

setConfiguration

protected void setConfiguration(Configuration configuration)

create

public abstract Task create(DatabaseTransaction transaction)
                     throws TaskException
Create a new task.

Throws:
TaskException

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()