public interface

AttachmentAuthorizer

com.atlassian.jira.rest.v2.issue.attachment.authorization.AttachmentAuthorizer

Class Overview

Decides if a user is authorized in context of an attachment.

Summary

Public Methods
boolean authorize(Attachment attachment, ApplicationUser user)
String getNoPermissionMessage(I18nHelper i18n, Object attachmentId)

Public Methods

public boolean authorize (Attachment attachment, ApplicationUser user)

Parameters
attachment Attachment, which is the context of the authorization.
user Checked user. Null means an anonymous user.
Returns
  • True iff user is authorized.

public String getNoPermissionMessage (I18nHelper i18n, Object attachmentId)

Parameters
i18n I18N source
attachmentId attachment id, to which permission is not granted
Returns
  • I18N'd message