|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.pronoic.cos.core.CosEntryTemplate | +--org.pronoic.cos.entry.CosEntry | +--org.davesag.tasktracker.TaskTrackerEntry
A TaskTrackerEntry is unique shared CosEntry that describes a single task.
This TaskTrackerEntry
is created using the CosConnector
Interface
by a client application. It will take advantage of the services of an Archivist and
will take advantage of a Federator if available.
Right now however the archive and extract methods are only there for debugging purposes, and
do not do any actual archving when collected by an Archivist.
when making a template for matching a retreival, you should use the null constructor then set the properties you want to match against directly. only use the setters and getters when you are actually manipulating an actual TaskTrackerEntry.
CosConnector
, Serialized FormField Summary | |
static String |
EMPTY_STRING
the empty string |
String |
mBlurb
a fuller description of the task. |
String |
mCategory
the category for this task. |
String |
mCurrentOwner
the username of the person who is looking after the task. |
Vector |
mDependencies
the a Vector of unique ids of task this task is dependent on. |
Date |
mEtc
Estimated time of completion. |
Date |
mFinalised
record the date the task was signed off. |
String |
mManager
the username of the person who reported the task. |
Vector |
mMessages
a user can add a message to a task. |
String |
mName
the short name of this task. |
Vector |
mPastOwners
a vector of previous people who had a hand in this task. |
Integer |
mPriority
the priority of this task. |
String |
mProjectName
All tasks can be part of a project. |
Long |
mReplaces
the unique id of the task this task replaces. |
Vector |
mSeeAlso
the a Vector of unique ids of tasks this task somehow relates to. |
Integer |
mStatus
the status of this task. |
String |
mSubCategory
the sub category for this task. |
Integer |
mTaskNumber
a User Supplied task number. |
String |
mTestDescription
an informal description of the test a tester needs to do to test this task. |
Integer |
mUrgency
the urgency of this task. |
static String[] |
PRIORITIES
priorities from 1 (very high) to 5 (very low) |
static String[] |
STATES
priorities from 1 (very high) to 5 (very low) |
static int |
STATUS_ACCEPTED
a person has accepted the task. |
static int |
STATUS_ASSIGNED
the task has been assigned to someone. |
static int |
STATUS_COMPLETED
a person thinks they have fixed their task. |
static int |
STATUS_DONE
the task is done with. |
static int |
STATUS_OPEN
the task has not yet been assigned to anyone. |
static int |
STATUS_TESTED
a tester has tested the fixed task and the test passed. |
static String[] |
URGENCIES
urgencies from 1 (very very urgent) to 5 (low) |
Fields inherited from class org.pronoic.cos.entry.CosEntry |
mAppContext, mCreated, mCreationEnsembleName, mLastModified |
Fields inherited from class org.pronoic.cos.core.CosEntryTemplate |
mEntryVersionNumber, mUniqueServiceEntryId |
Constructor Summary | |
TaskTrackerEntry()
default constructor to satisfy an entry or make a template for matching. |
|
TaskTrackerEntry(String projectname,
String name,
Integer priority,
String category,
String blurb,
String message,
String user)
use this constuctor when actually creating an entry. |
Method Summary | |
void |
accepted(Date etc)
when you accept a job you must estimate how logn it will take until the job is done. |
void |
addMessage(String mess)
you need to be able to add ad-hoc notes to the task. |
boolean |
archive(SpaceConnectable spconn,
Connection jdbcconn)
Method that is used as the core serve method inside the Karen service which takes an object, and requires it to archive itself. |
void |
assignToOwner(String owner)
you need to be able to pass control on to some other user. |
void |
done()
as the manager of a task, you must hit a button in a GUI somewhere that calls done
It is responsible for settting the status of the task to STATUS_DONE
and setting the Finalised Date. |
boolean |
extract(SpaceConnectable spconn,
Connection jdbcconn)
Method to bootstrap entries of a given class from the SQL database. |
String |
getCategory()
returns the task's category. |
String |
getCurrentOwner()
getCurrentOwner should be used if mStatus is STATUS_ASSIGNED to see who the current owner is. |
String |
getManager()
getManager should be used to return the name of the manager. |
String |
getName()
returns the name |
String |
getProjectName()
returns the project name |
Integer |
getStatus()
returns the the status. |
void |
setBlurb(String b)
describe the task. |
void |
setCategory(String c)
categorize the task. |
void |
setName(String name)
sets the name of the task. |
void |
setPriority(Integer p)
sets an arbitrary priority of the task. |
void |
setProjectName(String projectname)
sets the project name of the task. |
void |
setStatus(Integer s)
setStatus sets the Status of the task. |
void |
setTestDescription(String td)
describe how to test the task. |
void |
setUrgency(Integer u)
sets an arbitrary urgency for the task. |
Methods inherited from class org.pronoic.cos.entry.CosEntry |
created, getAppContext, getCreationEnsembleName, makeNullTemplate, setAppContext, setCreationEnsembleName, updated |
Methods inherited from class org.pronoic.cos.core.CosEntryTemplate |
clone, getUniqueServiceEntryId, getVersion, incrementVersion, setUniqueServiceEntryId |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pronoic.cos.entry.CosEntryInterface |
created, getAppContext, getCreationEnsembleName, getUniqueServiceEntryId, getVersion, incrementVersion, makeNullTemplate, setAppContext, setCreationEnsembleName, setUniqueServiceEntryId, updated |
Field Detail |
public static final String EMPTY_STRING
public static final int STATUS_OPEN
public static final int STATUS_ASSIGNED
getCurrentOwner()
to see who it has been assigned to.public static final int STATUS_ACCEPTED
public static final int STATUS_COMPLETED
public static final int STATUS_TESTED
public static final int STATUS_DONE
public static final String[] STATES
public static final String[] PRIORITIES
public static final String[] URGENCIES
public String mProjectName
public Integer mTaskNumber
public Long mReplaces
public Vector mDependencies
public Vector mSeeAlso
public String mName
public Integer mPriority
public Integer mUrgency
public String mCategory
public String mSubCategory
public Integer mStatus
setStatus(java.lang.Integer)
public String mCurrentOwner
public String mManager
public Vector mPastOwners
public String mBlurb
public String mTestDescription
public Vector mMessages
public Date mFinalised
public Date mEtc
Constructor Detail |
public TaskTrackerEntry()
public TaskTrackerEntry(String projectname, String name, Integer priority, String category, String blurb, String message, String user)
name
- A short name for this task.priority
- A priority number for this task. 1 (high) to 5 (low).category
- An arbitrary category name for this task.blurb
- A concise description of this task.message
- An introductory message for this task.user
- Who is reporting this task anyway?.Method Detail |
public void done()
done
It is responsible for settting the status of the task to STATUS_DONE
and setting the Finalised Date.public void accepted(Date etc)
etc
- - Estimated Time until Completion.public void assignToOwner(String owner)
owner
- the new owner - note: does no owner existence checking as yet.public void addMessage(String mess)
owner
- the new owner - note: does no owner existence checking as yet.public void setProjectName(String projectname)
name
- the short name of this task.public void setName(String name)
name
- the short name of this task.public void setPriority(Integer p)
p
- the priority number of this task.public void setUrgency(Integer u)
u
- the priority number of this task.public void setCategory(String c)
c
- the task's category.public void setBlurb(String b)
b
- the descrition of this task.public void setTestDescription(String td)
b
- the descrition of this task's test procedure.public void setStatus(Integer s)
assignToOwner
and it will handle the status change.
done
.
public String getProjectName()
public String getName()
public Integer getStatus()
public String getCategory()
public String getCurrentOwner()
public String getManager()
public boolean archive(SpaceConnectable spconn, Connection jdbcconn) throws CriticalObjectStoreException
archive
in interface Archivable
spconn
- A space connector that implements the SpaceConnectable
Interface that is a wrapper to a Javaspace.jdbcconn
- A connection to the databasetrue
always right now while in development.CriticalObjectStoreException
- if the space has gone bad.public boolean extract(SpaceConnectable spconn, Connection jdbcconn) throws CriticalObjectStoreException
extract
in interface Archivable
spconn
- A space connector that implements the SpaceConnectable
Interface that is a wrapper to a Javaspace.jdbcconn
- A connection to the databasetrue
if it extracted okay, false
if not.CriticalObjectStoreException
- if the space has gone bad.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |