org.davesag.tasktracker
Class UserListEntry

java.lang.Object
  |
  +--org.pronoic.cos.core.CosEntryTemplate
        |
        +--org.pronoic.cos.entry.CosEntry
              |
              +--org.davesag.tasktracker.ListEntry
                    |
                    +--org.davesag.tasktracker.UserListEntry
All Implemented Interfaces:
Archivable, Cloneable, CosEntryInterface, Distributable, Entry, Serializable

public class UserListEntry
extends ListEntry

UserListEntry is a named list of items that the User is keen on.

to use simply retrieve this list from the space, then walk through the Iteration provided by getTaskIds to retrieve the tasks.

See Also:
CosConnector, Serialized Form

Field Summary
 String mUsername
          the unique id of the task this task replaces.
 
Fields inherited from class org.davesag.tasktracker.ListEntry
mList, mListname
 
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
UserListEntry()
          default constructor to satisfy an entry or make a template for matching.
UserListEntry(String username, String listname)
          use this constuctor when actually creating an entry.
 
Method Summary
 boolean equals(UserListEntry b)
          equals just tests the suppled UserListEntry for field equality with this task list.
 String getUsername()
           
 void makeNullTemplate()
           
 
Methods inherited from class org.davesag.tasktracker.ListEntry
add, add, archive, equals, extract, getList, getListname, getSize
 
Methods inherited from class org.pronoic.cos.entry.CosEntry
created, getAppContext, getCreationEnsembleName, 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, setAppContext, setCreationEnsembleName, setUniqueServiceEntryId, updated
 

Field Detail

mUsername

public String mUsername
the unique id of the task this task replaces. can be null and many to 1. currently unused
Constructor Detail

UserListEntry

public UserListEntry()
default constructor to satisfy an entry or make a template for matching.

UserListEntry

public UserListEntry(String username,
                     String listname)
use this constuctor when actually creating an entry.
Parameters:
username - The owner of this list.
listname - the arbitrary name for this list.
Method Detail

getUsername

public String getUsername()

makeNullTemplate

public void makeNullTemplate()
Overrides:
makeNullTemplate in class ListEntry

equals

public boolean equals(UserListEntry b)
equals just tests the suppled UserListEntry for field equality with this task list.
Parameters:
b - The UserListEntry you wish to test.
Returns:
true if they are equal, false if not.


tasktracker API version 0.1 pre-release Copyright © 2002 Dave Sag. Released under the BSD Licence.