[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Re: [mylar-dev] CC's and other interested parties
|
- From: Steffen Pingel <steffenp@xxxxxx>
- Date: Wed, 20 Dec 2006 19:08:03 -0500
- Delivered-to: mylar-dev@eclipse.org
- User-agent: KMail/1.9.5
> Given a Task, is there a way to get the CC's and other interested
> parties? (commenters, etc...)
If it is an AbstractRepositoryTask that has been synchronized with the
repository a RepositoryTaskData object can be retrieved by calling
getTaskData(). The RepositoryTaskData object maps keys defined in
RepositoryTaskAttribute through a repository specific factory to values.
To get the cc's for a task you would have to call
task.getTaskData().getAttributeValues(RepositoryTaskAttribute.USER_CC) or
call task.getTaskData().getCC() which wraps that call and is even easier. The
comments are stored in TaskComment objects and returned by getComments().
They have an attribute USER_OWNER that stores the author of the comment (or
you can use TaskComment.getAuthor()).
Hope that helps.
Steffen
--
Steffen Pingel - steffenp@xxxxxx - http://steffenpingel.de