org.eclipse.mylar.tasks.core
Interface IOfflineTaskHandler

All Known Implementing Classes:
RepositoryTaskSynchronizationTest.TestOfflineTaskHandler

public interface IOfflineTaskHandler

Author:
Mik Kersten, Rob Elves

Method Summary
 RepositoryTaskData downloadTaskData(TaskRepository repository, java.lang.String taskId)
           
 AbstractAttributeFactory getAttributeFactory()
           
 java.util.Set<AbstractRepositoryTask> getChangedSinceLastSync(TaskRepository repository, java.util.Set<AbstractRepositoryTask> tasks)
          returns all tasks if date is null or an error occurs
 java.util.Date getDateForAttributeType(java.lang.String attributeKey, java.lang.String dateString)
           
 

Method Detail

getDateForAttributeType

java.util.Date getDateForAttributeType(java.lang.String attributeKey,
                                       java.lang.String dateString)
Returns:
null if date cannot be parsed

getAttributeFactory

AbstractAttributeFactory getAttributeFactory()

downloadTaskData

RepositoryTaskData downloadTaskData(TaskRepository repository,
                                    java.lang.String taskId)
                                    throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getChangedSinceLastSync

java.util.Set<AbstractRepositoryTask> getChangedSinceLastSync(TaskRepository repository,
                                                              java.util.Set<AbstractRepositoryTask> tasks)
                                                              throws org.eclipse.core.runtime.CoreException,
                                                                     java.io.UnsupportedEncodingException
returns all tasks if date is null or an error occurs

Throws:
org.eclipse.core.runtime.CoreException
java.io.UnsupportedEncodingException