org.eclipse.mylar.tasks.core
Interface IAttachmentHandler
public interface IAttachmentHandler
- Author:
- Mik Kersten, Rob Elves
Method Summary |
boolean |
canDeprecate(TaskRepository repository,
RepositoryAttachment attachment)
|
boolean |
canDownloadAttachment(TaskRepository repository,
AbstractRepositoryTask task)
|
boolean |
canUploadAttachment(TaskRepository repository,
AbstractRepositoryTask task)
|
void |
downloadAttachment(TaskRepository taskRepository,
java.lang.String taskId,
RepositoryAttachment attachment,
java.io.File file)
|
byte[] |
getAttachmentData(TaskRepository repository,
java.lang.String taskId)
|
void |
updateAttachment(TaskRepository repository,
RepositoryAttachment attachment)
To deprecate, change the attribute on the RepositoryAttachment and pass to this method |
void |
uploadAttachment(TaskRepository repository,
AbstractRepositoryTask task,
java.lang.String comment,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
boolean isPatch)
|
uploadAttachment
void uploadAttachment(TaskRepository repository,
AbstractRepositoryTask task,
java.lang.String comment,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
boolean isPatch)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
downloadAttachment
void downloadAttachment(TaskRepository taskRepository,
java.lang.String taskId,
RepositoryAttachment attachment,
java.io.File file)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getAttachmentData
byte[] getAttachmentData(TaskRepository repository,
java.lang.String taskId)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
canUploadAttachment
boolean canUploadAttachment(TaskRepository repository,
AbstractRepositoryTask task)
canDownloadAttachment
boolean canDownloadAttachment(TaskRepository repository,
AbstractRepositoryTask task)
canDeprecate
boolean canDeprecate(TaskRepository repository,
RepositoryAttachment attachment)
updateAttachment
void updateAttachment(TaskRepository repository,
RepositoryAttachment attachment)
throws org.eclipse.core.runtime.CoreException
- To deprecate, change the attribute on the RepositoryAttachment and pass to this method
- Throws:
org.eclipse.core.runtime.CoreException