java.lang.Object | |
↳ | com.atlassian.jira.bc.issue.attachment.DefaultAttachmentService |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines whether the user:
| |||||||||||
Determines whether attachments are enabled in JIRA and that the user has the required permission
(
CREATE_ATTACHMENT ) to create an attachment for this project. | |||||||||||
Determines whether attachments are enabled in JIRA and that the user has the required permission
(
CREATE_ATTACHMENT ) to create an attachment for this issue. | |||||||||||
Determines whether:
| |||||||||||
Retrieves the attachment specified by the attachment id and determines if the user can delete it.
| |||||||||||
Checks whether the user has permission to manage the attachments of the specified issue.
| |||||||||||
Deletes the specified attachment and updates the issue change history and 'updated' date.
| |||||||||||
Retrieves the specified issue.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Determines whether the user:
CREATE_ATTACHMENT
)
to create an attachmentjiraServiceContext | containing the user who wishes to attach a screenshot and the errorCollection that will contain any errors in calling the method |
---|---|
issue | that will have the screenshot attached to it |
Determines whether attachments are enabled in JIRA and that the user has the required permission
(CREATE_ATTACHMENT
) to create an attachment for this project.
jiraServiceContext | containing the user who wishes to create an attachment and the errorCollection that will contain any errors in calling the method |
---|---|
project | where the attachment will be created in |
Determines whether attachments are enabled in JIRA and that the user has the required permission
(CREATE_ATTACHMENT
) to create an attachment for this issue.
This method also checks that the provided issue is in an editable workflow state.
jiraServiceContext | containing the user who wishes to create an attachment and the errorCollection that will contain any errors in calling the method |
---|---|
issue | that will have an attachment attached to it |
Determines whether:
CREATE_ATTACHMENT
)
to create an attachmentjiraServiceContext | containing the user who wishes to attach a file and the errorCollection that will contain any errors in calling the method |
---|---|
issue | that will have the file attached to it |
Retrieves the attachment specified by the attachment id and determines if the user can delete it. The user can delete it if:
jiraServiceContext | containing the user who the permission checks will be run against (can be null, indicating an anonymous user) and the errorCollection that will contain any errors in calling the method |
---|---|
attachmentId | specifies the attachment to be deleted |
Checks whether the user has permission to manage the attachments of the specified issue. This is true if
jiraServiceContext | containing the user who the permission checks will be run against (can be null, indicating an anonymous user) and the errorCollection that will contain any errors in calling the method |
---|---|
issue | who's attachments will be checked against the specified user's delete permissions (if the issue is null an error will be placed into the supplied ErrorCollection and false will be returned) |
Deletes the specified attachment and updates the issue change history and 'updated' date.
This method expects thatcanDeleteAttachment(com.atlassian.jira.bc.JiraServiceContext, Long)
has been successfully called.jiraServiceContext | containing the user who is attempting to delete the attachment and the errorCollection that will contain any errors in calling the method |
---|---|
attachmentId | of the target attachment, must not be null and must identify a valid attachment |
Retrieves the specified issue. Does not perform permission checks.
jiraServiceContext | containing the user who is attempting to retrieve the attachment and the errorCollection that will contain any errors in calling the method |
---|---|
attachmentId | of the target attachment, must not be null and must identify a valid attachment |
AttachmentNotFoundException |
---|