public interface AttachmentAuthorizer
Modifier and Type | Method and Description |
---|---|
boolean |
authorize(Attachment attachment,
ApplicationUser user) |
String |
getNoPermissionMessage(I18nHelper i18n,
Object attachmentId) |
boolean authorize(Attachment attachment, @Nullable ApplicationUser user)
attachment
- Attachment, which is the context of the authorization.user
- Checked user. Null means an anonymous user.String getNoPermissionMessage(I18nHelper i18n, Object attachmentId)
i18n
- I18N sourceattachmentId
- attachment id, to which permission is not grantedCopyright © 2002-2017 Atlassian. All Rights Reserved.