com.atlassian.jira.rest.v2.issue
Class AttachmentResource
java.lang.Object
com.atlassian.jira.rest.v2.issue.AttachmentResource
public class AttachmentResource
- extends Object
- Since:
- v4.2
Method Summary |
javax.ws.rs.core.Response |
getAttachment(String id)
Returns the meta-data for an attachment, including the URI of the actual attached file. |
javax.ws.rs.core.Response |
getAttachmentMeta()
Returns the meta informations for an attachments, specifically if they are enabled and the maximum upload size allowed. |
protected boolean |
hasPermissionToViewAttachment(com.atlassian.crowd.embedded.api.User user,
Attachment attachment)
|
javax.ws.rs.core.Response |
removeAttachment(String id)
Remove an attachment from an issue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentResource
public AttachmentResource(AttachmentService attachmentService,
AttachmentManager attachmentManager,
PermissionManager permissionManager,
JiraAuthenticationContext authContext,
BeanBuilderFactory beanBuilderFactory,
ContextI18n i18n,
ContextUriInfo uriInfo)
getAttachment
public javax.ws.rs.core.Response getAttachment(String id)
- Returns the meta-data for an attachment, including the URI of the actual attached file.
- Parameters:
id
- the attachment id
- Returns:
- a JSON representation of an attachment
removeAttachment
public javax.ws.rs.core.Response removeAttachment(String id)
- Remove an attachment from an issue.
- Parameters:
id
- the id of the attachment to ddelete.
- Returns:
- no content
hasPermissionToViewAttachment
protected boolean hasPermissionToViewAttachment(com.atlassian.crowd.embedded.api.User user,
Attachment attachment)
throws DataAccessException
- Throws:
DataAccessException
getAttachmentMeta
public javax.ws.rs.core.Response getAttachmentMeta()
- Returns the meta informations for an attachments, specifically if they are enabled and the maximum upload size allowed.
- Returns:
- a JSON representation of the enable atachment capabilities
Copyright © 2002-2012 Atlassian. All Rights Reserved.