Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-integrators] How to fetch new data for existing tasks on connector update?

Hello,

I am not sure how to handle following situation: new version of
connector now fetches more data than previous one, and creates some
new attributes. I'd like to force fetching this new data for all
existing user's tasks (which don't have new attributes yet), but I
prefer not to indicate that there is incoming data for every task,
because this would break existing 'state of tasks' for user.

Is it possible to do this? I found
AbstractTaskDataHandler.migrateTaskData method, but it seems that this
one should not fetch data from remote repository (there is no progress
monitor). Other way I found is to check version in
AbstractRepositoryConnector.hasTaskChanged, and return true (task has
changed) if taskData has older version than current ... but this will
then indicate that data has incoming changes, which is not true.
(Well.. it is, from connector's point of view, but not from user's
point of view). Any other ideas?

Thank you in advance for your suggestions.

-Peter Stibrany
www.foglyn.com


Back to the top