com.atlassian.jira.issue.comments.CommentPermissionManager |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
A unified way of checking whether a user can see a comment or not
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return true if the user can see the comment.
| |||||||||||
This method is deprecated.
Use
hasBrowsePermission(com.atlassian.jira.user.ApplicationUser, Comment) instead. Since v6.0.
Return true if the user can see the comment. It does not check if the user
has the permission to see the issue the comment is attached to however. | |||||||||||
This method is deprecated.
Use
hasDeleteAllPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
Returns true if the given User can delete all comments for the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state. | |||||||||||
Returns true if the given User can delete all comments for the given Issue.
| |||||||||||
Returns true if the given User can delete her own comments in the given Issue.
| |||||||||||
This method is deprecated.
Use
hasDeleteOwnPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
Returns true if the given User can delete her own comments in the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state. | |||||||||||
Returns true if user has permission to edit all comments in the given Issue.
| |||||||||||
This method is deprecated.
Use
hasEditAllPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
Returns true if user has permission to edit all comments in the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state. | |||||||||||
This method is deprecated.
Use
hasEditOwnPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
Returns true if user has permission to edit her own comments in the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state. | |||||||||||
Returns true if user has permission to edit her own comments in the given Issue.
| |||||||||||
This method is deprecated.
Use
hasEditPermission(com.atlassian.jira.user.ApplicationUser, Comment) instead. Since v6.0.
Determines whether the given user has permission to edit the given comment. The user is granted permission if
they have the COMMENT_EDIT_ALL permission or the
COMMENT_EDIT_OWN permission in case the user is the author of the
given comment.
NOTE: The permissions will be determined by the permission scheme associated to the project the comment is
a part of and the entries for the above mentioned permissions.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state. | |||||||||||
Determines whether the given user has permission to edit the given comment.
| |||||||||||
This method is deprecated.
Use
isUserCommentAuthor(com.atlassian.jira.user.ApplicationUser, Comment) instead. Since v6.0.
Returns true if the given user is the author of the given comment.
If the given Comment has a null author, this represents that it was created anonymously, and no-one is the author (returns false). If the given User is null, then this represents that the current user is anonymous, and the method will always return false. | |||||||||||
Returns true if the given user is the author of the given comment.
|
Return true if the user can see the comment. It does not check if the user has the permission to see the issue the comment is attached to however.
user | user |
---|---|
comment | comment |
This method is deprecated.
Use hasBrowsePermission(com.atlassian.jira.user.ApplicationUser, Comment)
instead. Since v6.0.
Return true if the user can see the comment. It does not check if the user
has the permission to see the issue the comment is attached to however.
user | user |
---|---|
comment | comment |
This method is deprecated.
Use hasDeleteAllPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Returns true if the given User can delete all comments for the given Issue.
user | User. A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
Returns true if the given User can delete all comments for the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state.user | User. A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
Returns true if the given User can delete her own comments in the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state.user | User. A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
This method is deprecated.
Use hasDeleteOwnPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Returns true if the given User can delete her own comments in the given Issue.
user | User. A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
Returns true if user has permission to edit all comments in the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state.user | ApplicationUser . A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
This method is deprecated.
Use hasEditAllPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Returns true if user has permission to edit all comments in the given Issue.
user | User. A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
This method is deprecated.
Use hasEditOwnPermission(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Returns true if user has permission to edit her own comments in the given Issue.
user | User. A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
Returns true if user has permission to edit her own comments in the given Issue.
NOTE: This method does not check whether the Issue the comment belongs to is in an editable workflow state.user | ApplicationUser . A null value represents an anonymous User. |
---|---|
issue | Issue. Must not be null. |
This method is deprecated.
Use hasEditPermission(com.atlassian.jira.user.ApplicationUser, Comment)
instead. Since v6.0.
Determines whether the given user has permission to edit the given comment. The user is granted permission if
they have the COMMENT_EDIT_ALL
permission or the
COMMENT_EDIT_OWN
permission in case the user is the author of the
given comment.
user | user |
---|---|
comment | comment |
Determines whether the given user has permission to edit the given comment. The user is granted permission if
they have the COMMENT_EDIT_ALL
permission or the
COMMENT_EDIT_OWN
permission in case the user is the author of the
given comment.
user | user |
---|---|
comment | comment |
This method is deprecated.
Use isUserCommentAuthor(com.atlassian.jira.user.ApplicationUser, Comment)
instead. Since v6.0.
Returns true if the given user is the author of the given comment.
If the given Comment has a null author, this represents that it was created anonymously, and no-one is the author (returns false). If the given User is null, then this represents that the current user is anonymous, and the method will always return false.
user | The User. Can be null to represent current user is not logged in (anonymous). |
---|---|
comment | The Comment. Cannot be null. |
Returns true if the given user is the author of the given comment.
If the given Comment has a null author, this represents that it was created anonymously, and no-one is the author (returns false). If the given User is null, then this represents that the current user is anonymous, and the method will always return false.
user | The User. Can be null to represent current user is not logged in (anonymous). |
---|---|
comment | The Comment. Cannot be null. |