net.incongru.taskman.def
Class TaskDefImpl

java.lang.Object
  extended by net.incongru.taskman.def.TaskDefImpl
All Implemented Interfaces:
java.io.Serializable, TaskDef

public class TaskDefImpl
extends java.lang.Object
implements TaskDef

Version:
$Revision: $
Author:
greg, $Author: $ (last edit)
See Also:
Serialized Form

Constructor Summary
TaskDefImpl()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 org.joda.time.DateTime getDeploymentDateTime()
           
 java.lang.String getDescription()
           
 org.joda.time.Period getDueDateTimeout()
          How much time before no more reminders are sent and the task is automatically cancelled.
 org.joda.time.Period getDuePeriod()
          How much time is allowed before the assigne is reminded.
 java.lang.Class<? extends TaskAction> getEventActionClass(TaskEvent event)
           
 java.util.Map<TaskEvent,java.lang.Class<? extends TaskAction>> getEventActionMap()
           
 java.lang.Long getId()
           
 java.lang.String getName()
          A generic name for this task definition, thus shared by all instances of this definition.
 org.joda.time.Period getReminderPeriod()
          How much time between each reminder.
 java.lang.Long getVersionId()
           
 int hashCode()
           
 boolean isSameAs(TaskDef other)
          Returns true if all attributes are equals to the given TaskDef, except for id, versionId and deploymentDateTime.
 void setDeploymentDateTime(org.joda.time.DateTime deploymentDateTime)
           
 void setDescription(java.lang.String description)
           
 void setDueDateTimeout(org.joda.time.Period dueDateTimeout)
           
 void setDuePeriod(org.joda.time.Period duePeriod)
           
 void setEventActionMap(java.util.Map<TaskEvent,java.lang.Class<? extends TaskAction>> eventActionMap)
           
 void setId(java.lang.Long id)
           
 void setName(java.lang.String name)
           
 void setReminderPeriod(org.joda.time.Period reminderPeriod)
           
 void setVersionId(java.lang.Long versionId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskDefImpl

public TaskDefImpl()
Method Detail

getEventActionClass

public java.lang.Class<? extends TaskAction> getEventActionClass(TaskEvent event)
Specified by:
getEventActionClass in interface TaskDef

isSameAs

public boolean isSameAs(TaskDef other)
Description copied from interface: TaskDef
Returns true if all attributes are equals to the given TaskDef, except for id, versionId and deploymentDateTime.

Specified by:
isSameAs in interface TaskDef

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getId

public java.lang.Long getId()
Specified by:
getId in interface TaskDef

setId

public void setId(java.lang.Long id)

getVersionId

public java.lang.Long getVersionId()
Specified by:
getVersionId in interface TaskDef

setVersionId

public void setVersionId(java.lang.Long versionId)
Specified by:
setVersionId in interface TaskDef

getName

public java.lang.String getName()
Description copied from interface: TaskDef
A generic name for this task definition, thus shared by all instances of this definition. This is what determines if the version should be incremented (i.e. if a TaskDef with this name already exists)

Specified by:
getName in interface TaskDef

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface TaskDef

setDescription

public void setDescription(java.lang.String description)

getDeploymentDateTime

public org.joda.time.DateTime getDeploymentDateTime()
Specified by:
getDeploymentDateTime in interface TaskDef

setDeploymentDateTime

public void setDeploymentDateTime(org.joda.time.DateTime deploymentDateTime)
Specified by:
setDeploymentDateTime in interface TaskDef

getDuePeriod

public org.joda.time.Period getDuePeriod()
Description copied from interface: TaskDef
How much time is allowed before the assigne is reminded.

Specified by:
getDuePeriod in interface TaskDef

setDuePeriod

public void setDuePeriod(org.joda.time.Period duePeriod)

getReminderPeriod

public org.joda.time.Period getReminderPeriod()
Description copied from interface: TaskDef
How much time between each reminder.

Specified by:
getReminderPeriod in interface TaskDef

setReminderPeriod

public void setReminderPeriod(org.joda.time.Period reminderPeriod)

getDueDateTimeout

public org.joda.time.Period getDueDateTimeout()
Description copied from interface: TaskDef
How much time before no more reminders are sent and the task is automatically cancelled.

Specified by:
getDueDateTimeout in interface TaskDef

setDueDateTimeout

public void setDueDateTimeout(org.joda.time.Period dueDateTimeout)

getEventActionMap

public java.util.Map<TaskEvent,java.lang.Class<? extends TaskAction>> getEventActionMap()

setEventActionMap

public void setEventActionMap(java.util.Map<TaskEvent,java.lang.Class<? extends TaskAction>> eventActionMap)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2004-2007. All Rights Reserved.