org.eclipse.mylar.tasks.tests
Class RepositoryTaskSynchronizationTest.TestOfflineTaskHandler
java.lang.Object
org.eclipse.mylar.tasks.tests.RepositoryTaskSynchronizationTest.TestOfflineTaskHandler
- All Implemented Interfaces:
- IOfflineTaskHandler
- Enclosing class:
- RepositoryTaskSynchronizationTest
private class RepositoryTaskSynchronizationTest.TestOfflineTaskHandler
- extends java.lang.Object
- implements IOfflineTaskHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT_2
private final java.lang.String DATE_FORMAT_2
- See Also:
- Constant Field Values
format
private final java.text.SimpleDateFormat format
RepositoryTaskSynchronizationTest.TestOfflineTaskHandler
private RepositoryTaskSynchronizationTest.TestOfflineTaskHandler()
getAttributeFactory
public AbstractAttributeFactory getAttributeFactory()
- Specified by:
getAttributeFactory
in interface IOfflineTaskHandler
getDateForAttributeType
public java.util.Date getDateForAttributeType(java.lang.String attributeKey,
java.lang.String dateString)
- Specified by:
getDateForAttributeType
in interface IOfflineTaskHandler
- Returns:
- null if date cannot be parsed
getChangedSinceLastSync
public java.util.Set<AbstractRepositoryTask> getChangedSinceLastSync(TaskRepository repository,
java.util.Set<AbstractRepositoryTask> tasks)
throws org.eclipse.core.runtime.CoreException,
java.io.UnsupportedEncodingException
- Description copied from interface:
IOfflineTaskHandler
- returns all tasks if date is null or an error occurs
- Specified by:
getChangedSinceLastSync
in interface IOfflineTaskHandler
- Throws:
org.eclipse.core.runtime.CoreException
java.io.UnsupportedEncodingException
downloadTaskData
public RepositoryTaskData downloadTaskData(TaskRepository repository,
java.lang.String taskId)
throws org.eclipse.core.runtime.CoreException
- Specified by:
downloadTaskData
in interface IOfflineTaskHandler
- Throws:
org.eclipse.core.runtime.CoreException