org.eclipse.mylar.tasks.tests
Class RepositoryTaskSynchronizationTest.TestOfflineTaskHandler

java.lang.Object
  extended by org.eclipse.mylar.tasks.tests.RepositoryTaskSynchronizationTest.TestOfflineTaskHandler
All Implemented Interfaces:
IOfflineTaskHandler
Enclosing class:
RepositoryTaskSynchronizationTest

private class RepositoryTaskSynchronizationTest.TestOfflineTaskHandler
extends java.lang.Object
implements IOfflineTaskHandler


Field Summary
private  java.lang.String DATE_FORMAT_2
           
private  java.text.SimpleDateFormat format
           
 
Constructor Summary
private RepositoryTaskSynchronizationTest.TestOfflineTaskHandler()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT_2

private final java.lang.String DATE_FORMAT_2
See Also:
Constant Field Values

format

private final java.text.SimpleDateFormat format
Constructor Detail

RepositoryTaskSynchronizationTest.TestOfflineTaskHandler

private RepositoryTaskSynchronizationTest.TestOfflineTaskHandler()
Method Detail

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