|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylar.tasks.core.AbstractRepositoryConnector
public abstract class AbstractRepositoryConnector
Operations on a task repository
Field Summary | |
---|---|
private static java.lang.String |
APPLICATION_OCTET_STREAM
|
static java.lang.String |
MESSAGE_ATTACHMENTS_NOT_SUPPORTED
|
static java.lang.String |
MYLAR_CONTEXT_DESCRIPTION
|
protected java.util.List<java.lang.String> |
supportedVersions
|
protected TaskList |
taskList
|
protected java.util.Set<RepositoryTemplate> |
templates
|
Constructor Summary | |
---|---|
AbstractRepositoryConnector()
|
Method Summary | |
---|---|
void |
addTemplate(RepositoryTemplate template)
|
boolean |
attachContext(TaskRepository repository,
AbstractRepositoryTask task,
java.lang.String longComment)
Attaches the associated context to task . |
abstract boolean |
canCreateNewTask(TaskRepository repository)
|
abstract boolean |
canCreateTaskFromKey(TaskRepository repository)
|
abstract ITask |
createTaskFromExistingKey(TaskRepository repository,
java.lang.String id,
java.net.Proxy proxySettings)
|
abstract IAttachmentHandler |
getAttachmentHandler()
|
java.util.Set<RepositoryAttachment> |
getContextAttachments(TaskRepository repository,
AbstractRepositoryTask task)
Implementors of this repositoryOperations must perform it locally without going to the server since it is used for frequent repositoryOperations such as decoration. |
abstract java.lang.String |
getLabel()
|
abstract IOfflineTaskHandler |
getOfflineTaskHandler()
|
abstract java.lang.String |
getRepositoryType()
|
abstract java.lang.String |
getRepositoryUrlFromTaskUrl(java.lang.String url)
|
abstract java.util.List<java.lang.String> |
getSupportedVersions()
|
java.lang.String |
getTaskIdPrefix()
|
RepositoryTemplate |
getTemplate(java.lang.String label)
returns null if template not found |
java.util.Set<RepositoryTemplate> |
getTemplates()
|
boolean |
hasRepositoryContext(TaskRepository repository,
AbstractRepositoryTask task)
|
void |
init(TaskList taskList)
|
abstract org.eclipse.core.runtime.IStatus |
performQuery(AbstractRepositoryQuery query,
TaskRepository repository,
org.eclipse.core.runtime.IProgressMonitor monitor,
QueryHitCollector resultCollector)
Implementors must execute query synchronously. |
java.lang.String[] |
repositoryPropertyNames()
|
boolean |
retrieveContext(TaskRepository repository,
AbstractRepositoryTask task,
RepositoryAttachment attachment,
java.lang.String destinationPath)
Retrieves a context stored in attachment from
task . |
abstract void |
updateAttributes(TaskRepository repository,
org.eclipse.core.runtime.IProgressMonitor monitor)
Reset and update the repository attributes from the server (e.g. |
abstract void |
updateTask(TaskRepository repository,
AbstractRepositoryTask repositoryTask)
Updates the properties of repositoryTask . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MESSAGE_ATTACHMENTS_NOT_SUPPORTED
public static final java.lang.String MYLAR_CONTEXT_DESCRIPTION
private static final java.lang.String APPLICATION_OCTET_STREAM
protected java.util.List<java.lang.String> supportedVersions
protected java.util.Set<RepositoryTemplate> templates
protected TaskList taskList
Constructor Detail |
---|
public AbstractRepositoryConnector()
Method Detail |
---|
public void init(TaskList taskList)
public abstract IAttachmentHandler getAttachmentHandler()
public abstract IOfflineTaskHandler getOfflineTaskHandler()
public abstract java.lang.String getRepositoryUrlFromTaskUrl(java.lang.String url)
public abstract boolean canCreateTaskFromKey(TaskRepository repository)
public abstract boolean canCreateNewTask(TaskRepository repository)
public abstract ITask createTaskFromExistingKey(TaskRepository repository, java.lang.String id, java.net.Proxy proxySettings) throws org.eclipse.core.runtime.CoreException
id
- identifier, e.g. "123" bug Bugzilla bug 123proxySettings
- TODO
org.eclipse.core.runtime.CoreException
- TODOpublic abstract org.eclipse.core.runtime.IStatus performQuery(AbstractRepositoryQuery query, TaskRepository repository, org.eclipse.core.runtime.IProgressMonitor monitor, QueryHitCollector resultCollector)
query
- repository
- TODOmonitor
- resultCollector
- IQueryHitCollector that collects the hits foundpublic abstract java.lang.String getLabel()
public abstract java.lang.String getRepositoryType()
public abstract java.util.List<java.lang.String> getSupportedVersions()
public abstract void updateTask(TaskRepository repository, AbstractRepositoryTask repositoryTask) throws org.eclipse.core.runtime.CoreException
repositoryTask
. Invoked when on
task synchronization if getOfflineTaskHandler()
returns
null
or
IOfflineTaskHandler.downloadTaskData(TaskRepository, String)
returns null
.
Connectors that provide RepositoryTaskData
objects for all tasks
do not need to implement this method.
repository
- the repositoryrepositoryTask
- the task that is synchronized
org.eclipse.core.runtime.CoreException
- thrown in case of error while synchronizing#getOfflineTaskHandler()}
public java.lang.String[] repositoryPropertyNames()
public final java.util.Set<RepositoryAttachment> getContextAttachments(TaskRepository repository, AbstractRepositoryTask task)
public final boolean hasRepositoryContext(TaskRepository repository, AbstractRepositoryTask task)
public final boolean attachContext(TaskRepository repository, AbstractRepositoryTask task, java.lang.String longComment) throws org.eclipse.core.runtime.CoreException
task
.
org.eclipse.core.runtime.CoreException
public final boolean retrieveContext(TaskRepository repository, AbstractRepositoryTask task, RepositoryAttachment attachment, java.lang.String destinationPath) throws org.eclipse.core.runtime.CoreException
attachment
from
task
.
org.eclipse.core.runtime.CoreException
public void addTemplate(RepositoryTemplate template)
public java.util.Set<RepositoryTemplate> getTemplates()
public RepositoryTemplate getTemplate(java.lang.String label)
public java.lang.String getTaskIdPrefix()
public abstract void updateAttributes(TaskRepository repository, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |