Synergy Home Page

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

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

public class BSyndGetTasksCE
extends BCommandEvent

This event gets the tasks from Syndicate for a given user, or just for everyone.

See Also:
Serialized Form

Field Summary
static int kAllTasks
          Select all tasks.
static int kAllUsers
          Select all tasks that have this user.
static int kCompleteTasks
          Select only complete tasks.
static int kIncompleteTasks
          Select only incomplete tasks.
static int kNoSuchUser
          The username was invalid.
static int kOK
          The username was valid
static int kUserSpecific
          Select all tasks that specifically have this user in their resources.
protected  Vector taskIDs
          Stores the returned task information.
protected  Vector taskInfo
          Stores the returned task IDs.
 int taskStat
          Task selection status.
protected  int taskStatus
          Stores the status of the returned information.
protected  String username
          Stores the username for task stuff.
 int userStat
          User selection status.
 
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
BSyndGetTasksCE(Object source)
          Creates a new SQL connection event.
 
Method Summary
 Vector getTaskIDs()
          Returns the vector of task IDs.
 Vector getTasks()
          Returns the vector of tasks.
 int getTaskStatus()
          Get the task retrieval status.
 String getUsername()
          Gets the username for the tasks.
 void setTaskIDs(Vector taskIDs)
          Sets the vector of task IDs.
 void setTasks(Vector taskInfo)
          Sets the vector of tasks.
 void setTaskStatus(int taskStatus)
          Set the task retrieval status
 void setUsername(String username)
          Sets the username for the tasks
 
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

kOK

public static final int kOK
The username was valid

kNoSuchUser

public static final int kNoSuchUser
The username was invalid.

kAllUsers

public static final int kAllUsers
Select all tasks that have this user.

kUserSpecific

public static final int kUserSpecific
Select all tasks that specifically have this user in their resources.

kAllTasks

public static final int kAllTasks
Select all tasks.

kCompleteTasks

public static final int kCompleteTasks
Select only complete tasks.

kIncompleteTasks

public static final int kIncompleteTasks
Select only incomplete tasks.

taskStatus

protected int taskStatus
Stores the status of the returned information.

userStat

public int userStat
User selection status.

taskStat

public int taskStat
Task selection status.

taskIDs

protected Vector taskIDs
Stores the returned task information.

taskInfo

protected Vector taskInfo
Stores the returned task IDs.

username

protected String username
Stores the username for task stuff.
Constructor Detail

BSyndGetTasksCE

public BSyndGetTasksCE(Object source)
Creates a new SQL connection event.
Parameters:
source - The source of the event.
Method Detail

getTaskStatus

public int getTaskStatus()
Get the task retrieval status.
Returns:
The task status.

setTaskStatus

public void setTaskStatus(int taskStatus)
Set the task retrieval status
Parameters:
taskStatus - The task status.

getTasks

public Vector getTasks()
Returns the vector of tasks.
Returns:
The tasks.

setTaskIDs

public void setTaskIDs(Vector taskIDs)
Sets the vector of task IDs.
Parameters:
taskIDs - The task IDs.

getTaskIDs

public Vector getTaskIDs()
Returns the vector of task IDs.
Returns:
The task IDs.

setTasks

public void setTasks(Vector taskInfo)
Sets the vector of tasks.
Parameters:
taskInfo - The tasks.

setUsername

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

getUsername

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

Synergy Home Page