@PublicApi @ParametersAreNonnullByDefault public interface AttachmentValidator
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateAttachments(ApplicationUser user,
Issue issue,
ErrorCollection errorCollection)
Verifies if user may create attachment for given issue.
|
boolean |
canCreateTemporaryAttachments(ApplicationUser user,
com.atlassian.fugue.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).
|
boolean canCreateAttachments(@Nullable ApplicationUser user, Issue issue, ErrorCollection errorCollection)
user - user who creates attachmentissue - target issueerrorCollection - error collections that will be filled in case of errorboolean canCreateTemporaryAttachments(@Nullable ApplicationUser user, com.atlassian.fugue.Either<Issue,Project> issueOrProject, ErrorCollection errorCollection)
user - user who creates temporary attachmentissueOrProject - target issue or project (in case if the issue is being created)errorCollection - error collections that will be filled in case of errorCopyright © 2002-2017 Atlassian. All Rights Reserved.