Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Choice between updateTaskFromRepository() or updateTaskFromTaskData()
Choice between updateTaskFromRepository() or updateTaskFromTaskData() [message #43746] Tue, 19 February 2008 14:10 Go to next message
maarten meijer is currently offline maarten meijer
Messages: 145
Registered: July 2009
Senior Member
I'm working on a generic SQL connector from scratch. The integrators
guide points to the Trac connector.

I can connect to a local or remote test DB and retrieve task data for a
single task.

What I find difficult to understand is the use of the RepositoryTaskData
for any kind of repository. What would be the architectural benefits?
Re: Choice between updateTaskFromRepository() or updateTaskFromTaskData() [message #43875 is a reply to message #43746] Thu, 21 February 2008 23:15 Go to previous message
Steffen Pingel is currently offline Steffen Pingel
Messages: 706
Registered: July 2009
Senior Member
> What I find difficult to understand is the use of the RepositoryTaskData
> for any kind of repository. What would be the architectural benefits?

Elements of the task list are represented by classes that extend
AbstractTask. The task list is always kept in memory and its task model is
limited to the most common attributes to keep it lightweight.

RepositoryTaskData allows connectors to store a custom task model that can
have arbitrary attributes. For Mylyn 2.x it is optional for connector
implementors to support this API. It offers more extensibility and is
required to support rich editing and attachment support but comes with a
higher cost in terms of development effort.

We have are considering to simplify the task data API and making it
mandatory for 3.0 which would make the split between RepositoryTaskData and
AbstractTask less confusing.

Maarten, it would be great if you could file a new bug for this and I'll
post more details about the current ideas to improve the API.

Steffen
Re: Choice between updateTaskFromRepository() or updateTaskFromTaskData() [message #587973 is a reply to message #43746] Thu, 21 February 2008 23:15 Go to previous message
Steffen Pingel is currently offline Steffen Pingel
Messages: 706
Registered: July 2009
Senior Member
> What I find difficult to understand is the use of the RepositoryTaskData
> for any kind of repository. What would be the architectural benefits?

Elements of the task list are represented by classes that extend
AbstractTask. The task list is always kept in memory and its task model is
limited to the most common attributes to keep it lightweight.

RepositoryTaskData allows connectors to store a custom task model that can
have arbitrary attributes. For Mylyn 2.x it is optional for connector
implementors to support this API. It offers more extensibility and is
required to support rich editing and attachment support but comes with a
higher cost in terms of development effort.

We have are considering to simplify the task data API and making it
mandatory for 3.0 which would make the split between RepositoryTaskData and
AbstractTask less confusing.

Maarten, it would be great if you could file a new bug for this and I'll
post more details about the current ideas to improve the API.

Steffen
Previous Topic:Crashes with Mylyn and JIRA
Next Topic:Strange behaviour of Mylyn ActivityTimerThread
Goto Forum:
  


Current Time: Sat Aug 30 06:36:09 EDT 2014

Powered by FUDForum. Page generated in 0.01527 seconds