Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-integrators] How to get the RepositoryTaskData

Hello,

what is the recommended way to get the task data stored in RepositoryTaskData...

this is how i do this at the moment and i wonder if there is a better way to do this... QueryHitCollector collector = new QueryHitCollector(new TaskFactory(repository)); BugzillaRepositoryQuery monthUser = new BugzillaRepositoryQuery(repository.getUrl(), queryType.getQuery(),
           "monthUserQuery");
connector.performQuery(monthUser, repository, new NullProgressMonitor(), collector); Set<String> taskIds = new HashSet<String>(); HashMap<String, AbstractTask> queriedTasks = new HashMap<String, AbstractTask>();
   for (final AbstractTask hit : collector.getTasks()) {
     taskIds.add(hit.getTaskId());
  }
   try {
final Set<RepositoryTaskData> tasks = handler.getMultiTaskData(repository, taskIds, getMonitor());
   } ....

is there a easier/better way  ?

Ivan


Back to the top