Synergy Home Page

au.edu.swin.synergy.plugin.syndicate.event
Class BSyndAddLogCE

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--au.edu.swin.synergy.kernel.BCommandEvent
              |
              +--au.edu.swin.synergy.plugin.syndicate.event.BSyndAddLogCE

public class BSyndAddLogCE
extends BCommandEvent

This event adds a worklog to the Syndicate DB.

See Also:
Serialized Form

Field Summary
protected  String comments
          Stores the comments for the worlog.
protected  float hoursLeft
          Stores the hours left for the task.
protected  float hoursWorked
          Stores the hours worked for the worklog.
static int kInvalidTask
          The task ID was invalid (not assigned to user).
static int kNoSuchTask
          The task ID was invalid (non existant task).
static int kNoSuchUser
          The username was invalid.
protected  int logStatus
          Stores the status of the returned information.
protected  float percComplete
          Stores the percent complete of the task.
protected  int taskID
          Stores the task ID for the worklog.
protected  String username
          Stores the username for the worklog.
 
Fields inherited from class au.edu.swin.synergy.kernel.BCommandEvent
connectionID, index, kBroadcast, kClient, kClientDone, kLocal, kServer, kServerDone, networkStatus, serialVersionUID
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BSyndAddLogCE(Object source)
          Creates a new worklog entry CE.
 
Method Summary
 String getComments()
          Gets the comments for the worklog.
 float getHoursLeft()
          Gets the hours remaining on the task.
 float getHoursWorked()
          Gets the hours worked for the worklog.
 int getLogStatus()
          Get the log addition status.
 float getPercComplete()
          Gets the completion percentage of the task.
 int getTaskID()
          Gets the task ID for the worklog.
 String getUsername()
          Gets the username for the worklog.
 void setComments(String comment)
          Sets the comment for the worklog.
 void setHoursLeft(float hoursLeft)
          Sets the hours remaining on the task.
 void setHoursWorked(float hoursWorked)
          Sets the hours worked for the worklog.
 void setLogStatus(int logStatus)
          Set the log addition status.
 void setPercComplete(float percComplete)
          Sets the completion percentage of the task.
 void setTaskID(int taskID)
          Sets the task ID for the worklog.
 void setUsername(String username)
          Sets the username for the worklog.
 
Methods inherited from class au.edu.swin.synergy.kernel.BCommandEvent
decrementThreadCount, doComplete, doInit, getAutoComplete, getCompletionObject, getCompletionStatus, getConnectionID, getIndex, getNetworkStatus, getPipe, getUndoable, setAutoComplete, setCompletionObject, setCompletionStatus, setConnectionID, setIndex, setNetworkStatus, setPipe, setThreadCount, setUndoable
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kNoSuchUser

public static final int kNoSuchUser
The username was invalid.

kNoSuchTask

public static final int kNoSuchTask
The task ID was invalid (non existant task).

kInvalidTask

public static final int kInvalidTask
The task ID was invalid (not assigned to user).

logStatus

protected int logStatus
Stores the status of the returned information.

username

protected String username
Stores the username for the worklog.

taskID

protected int taskID
Stores the task ID for the worklog.

hoursWorked

protected float hoursWorked
Stores the hours worked for the worklog.

hoursLeft

protected float hoursLeft
Stores the hours left for the task.

percComplete

protected float percComplete
Stores the percent complete of the task.

comments

protected String comments
Stores the comments for the worlog.
Constructor Detail

BSyndAddLogCE

public BSyndAddLogCE(Object source)
Creates a new worklog entry CE.
Parameters:
source - The source of the event.
Method Detail

getLogStatus

public int getLogStatus()
Get the log addition status.
Returns:
The log status.

setLogStatus

public void setLogStatus(int logStatus)
Set the log addition status.
Parameters:
taskStatus - The task status.

setUsername

public void setUsername(String username)
Sets the username for the worklog.
Parameters:
username - The username.

getUsername

public String getUsername()
Gets the username for the worklog.
Returns:
The username.

setComments

public void setComments(String comment)
Sets the comment for the worklog.
Parameters:
comment - The comments.

getComments

public String getComments()
Gets the comments for the worklog.
Returns:
The comments.

setTaskID

public void setTaskID(int taskID)
Sets the task ID for the worklog.
Parameters:
taskID - The task ID.

getTaskID

public int getTaskID()
Gets the task ID for the worklog.
Returns:
The task ID.

setHoursWorked

public void setHoursWorked(float hoursWorked)
Sets the hours worked for the worklog.
Parameters:
hoursWorked - The hours worked.

getHoursWorked

public float getHoursWorked()
Gets the hours worked for the worklog.
Returns:
The hours worked.

setHoursLeft

public void setHoursLeft(float hoursLeft)
Sets the hours remaining on the task.
Parameters:
hoursLeft - The hours remaining on the task.

getHoursLeft

public float getHoursLeft()
Gets the hours remaining on the task.
Returns:
The hours remaining on the task.

setPercComplete

public void setPercComplete(float percComplete)
Sets the completion percentage of the task.
Parameters:
taskID - The percentage complete.

getPercComplete

public float getPercComplete()
Gets the completion percentage of the task.
Returns:
The percentage complete.

Synergy Home Page