java.lang.Object |
↳ |
com.atlassian.jira.issue.attachment.DefaultAttachmentValidator |
Public Constructors
Public Methods
Verifies if user may create attachment for given issue.
Parameters
user
| user who creates attachment |
issue
| target issue |
errorCollection
| error collections that will be filled in case of error |
Returns
- true if user can create attachments
public
boolean
canCreateTemporaryAttachments
(ApplicationUser user, Either<Issue, Project> issueOrProject, ErrorCollection errorCollection)
Verifies if user may create temporary attachment for given issue or project (in case if the issue is being
created).
Parameters
user
| user who creates temporary attachment |
issueOrProject
| target issue or project (in case if the issue is being created) |
errorCollection
| error collections that will be filled in case of error |
Returns
- true if user can create temporary attachments