Modifier and Type | Method and Description |
---|---|
Comment |
DefaultCommentService.create(ApplicationUser applicationUser,
CommentService.CommentCreateValidationResult validationResult,
boolean dispatchEvent) |
Comment |
CommentService.create(ApplicationUser user,
CommentService.CommentCreateValidationResult commentValidationResult,
boolean dispatchEvent)
|
Comment |
DefaultCommentService.create(ApplicationUser user,
Issue issue,
String body,
boolean dispatchEvent,
ErrorCollection errorCollection) |
Comment |
CommentService.create(ApplicationUser user,
Issue issue,
String body,
boolean dispatchEvent,
ErrorCollection errorCollection)
|
Comment |
DefaultCommentService.create(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent,
ErrorCollection errorCollection) |
Comment |
CommentService.create(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent,
ErrorCollection errorCollection)
|
Comment |
DefaultCommentService.create(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent,
ErrorCollection errorCollection) |
Comment |
CommentService.create(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent,
ErrorCollection errorCollection)
|
Comment |
DefaultCommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
boolean dispatchEvent,
ErrorCollection errorCollection) |
Comment |
CommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
boolean dispatchEvent,
ErrorCollection errorCollection)
|
Comment |
DefaultCommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent,
ErrorCollection errorCollection) |
Comment |
CommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent,
ErrorCollection errorCollection)
|
Comment |
DefaultCommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent,
ErrorCollection errorCollection) |
Comment |
CommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent,
ErrorCollection errorCollection)
|
Comment |
DefaultCommentService.getCommentById(ApplicationUser user,
Long commentId,
ErrorCollection errorCollection) |
Comment |
CommentService.getCommentById(ApplicationUser user,
Long commentId,
ErrorCollection errorCollection) |
Comment |
DefaultCommentService.getCommentById(com.atlassian.crowd.embedded.api.User user,
Long commentId,
ErrorCollection errorCollection) |
Comment |
CommentService.getCommentById(com.atlassian.crowd.embedded.api.User user,
Long commentId,
ErrorCollection errorCollection)
Deprecated.
Use
CommentService.getCommentById(ApplicationUser user, Long commentId, ErrorCollection errorCollection) instead. Since v6.0. |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Option<Comment> |
CommentService.CommentUpdateValidationResult.getComment() |
List<Comment> |
DefaultCommentService.getCommentsForUser(ApplicationUser user,
Issue issue) |
List<Comment> |
CommentService.getCommentsForUser(ApplicationUser user,
Issue issue)
|
List<Comment> |
DefaultCommentService.getCommentsForUser(ApplicationUser currentUser,
Issue issue,
ErrorCollection errorCollection) |
List<Comment> |
CommentService.getCommentsForUser(ApplicationUser currentUser,
Issue issue,
ErrorCollection errorCollection)
Deprecated.
Use
CommentService.getCommentsForUser(ApplicationUser currentUser, Issue issue) instead. Since v6.3. |
List<Comment> |
DefaultCommentService.getCommentsForUser(com.atlassian.crowd.embedded.api.User currentUser,
Issue issue,
ErrorCollection errorCollection) |
List<Comment> |
CommentService.getCommentsForUser(com.atlassian.crowd.embedded.api.User currentUser,
Issue issue,
ErrorCollection errorCollection)
Deprecated.
Use
CommentService.getCommentsForUser(ApplicationUser currentUser, Issue issue) instead. Since v6.3. |
List<Comment> |
DefaultCommentService.getCommentsForUserSince(ApplicationUser currentUser,
Issue issue,
Date since) |
List<Comment> |
CommentService.getCommentsForUserSince(ApplicationUser user,
Issue issue,
Date since)
Will return a list of
Comment s that were created or updated since the provided date, for the given user. |
Modifier and Type | Method and Description |
---|---|
static CommentService.CommentParameters.CommentParametersBuilder |
CommentService.CommentParameters.builder(Comment comment) |
void |
DefaultCommentService.delete(JiraServiceContext jiraServiceContext,
Comment comment,
boolean dispatchEvent) |
void |
CommentService.delete(JiraServiceContext jiraServiceContext,
Comment comment,
boolean dispatchEvent)
Deletes a comment and updates the issue's change history and updated date.
|
boolean |
DefaultCommentService.hasPermissionToEdit(ApplicationUser user,
Comment comment,
ErrorCollection errorCollection) |
boolean |
CommentService.hasPermissionToEdit(ApplicationUser user,
Comment comment,
ErrorCollection errorCollection) |
boolean |
DefaultCommentService.hasPermissionToEdit(com.atlassian.crowd.embedded.api.User user,
Comment comment,
ErrorCollection errorCollection) |
boolean |
CommentService.hasPermissionToEdit(com.atlassian.crowd.embedded.api.User user,
Comment comment,
ErrorCollection errorCollection)
Deprecated.
|
protected boolean |
DefaultCommentService.hasVisibility(JiraServiceContext jiraServiceContext,
Comment comment) |
Constructor and Description |
---|
CommentService.CommentUpdateValidationResult(SimpleErrorCollection errorCollection,
com.atlassian.fugue.Option<Map<String,JSONObject>> commentProperties,
com.atlassian.fugue.Option<Comment> comment) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Function<Long,com.atlassian.fugue.Option<Comment>> |
CommentPropertyHelper.getEntityByIdFunction() |
EntityPropertyHelper.CheckPermissionFunction<Comment> |
CommentPropertyHelper.hasEditPermissionFunction() |
EntityPropertyHelper.CheckPermissionFunction<Comment> |
CommentPropertyHelper.hasReadPermissionFunction() |
Modifier and Type | Method and Description |
---|---|
Comment |
MentionIssueCommentEvent.getComment() |
Comment |
IssueEvent.getComment() |
Modifier and Type | Method and Description |
---|---|
IssueEventBundle |
IssueEventBundleFactory.createCommentAddedBundle(Issue issue,
ApplicationUser user,
Comment comment,
Map<String,Object> params)
Creates an IssueEventBundle for scenarios where a comment is added to an issue.
|
IssueEventBundle |
IssueEventBundleFactoryImpl.createCommentAddedBundle(Issue issue,
ApplicationUser user,
Comment comment,
Map<String,Object> params) |
IssueEventBundle |
IssueEventBundleFactory.createCommentEditedBundle(Issue issue,
ApplicationUser user,
Comment comment,
Map<String,Object> params)
Creates an IssueEventBundle for scenarios where a comment is edited.
|
IssueEventBundle |
IssueEventBundleFactoryImpl.createCommentEditedBundle(Issue issue,
ApplicationUser user,
Comment comment,
Map<String,Object> params) |
IssueEventBundle |
IssueEventBundleFactory.createWorkflowEventBundle(Long eventType,
Issue issue,
ApplicationUser user,
Comment comment,
org.ofbiz.core.entity.GenericValue changeGroup,
Map<String,Object> params,
boolean sendMail,
String originalAssigneeId)
Creates an IssueEventBundle for scenarios where a workflow transition is executed.
|
IssueEventBundle |
IssueEventBundleFactoryImpl.createWorkflowEventBundle(Long eventType,
Issue issue,
ApplicationUser user,
Comment comment,
org.ofbiz.core.entity.GenericValue changeGroup,
Map<String,Object> params,
boolean sendMail,
String originalAssigneeId) |
void |
DefaultIssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog) |
static void |
IssueEventDispatcher.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog)
Deprecated.
Since v5.0
|
void |
IssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
boolean sendMail) |
static void |
IssueEventDispatcher.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
boolean sendMail)
Deprecated.
Since v5.0
|
void |
IssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
boolean sendMail)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params) |
static void |
IssueEventDispatcher.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params)
Deprecated.
Since v5.0
|
void |
IssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail) |
static void |
IssueEventDispatcher.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail)
Deprecated.
Since v5.0
|
void |
IssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail,
boolean subtasksUpdated) |
static void |
IssueEventDispatcher.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail,
boolean subtasksUpdated)
Deprecated.
Since v5.0
|
void |
IssueEventManager.dispatchEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail,
boolean subtasksUpdated)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog) |
void |
IssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params) |
void |
IssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail) |
void |
IssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
void |
DefaultIssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail,
boolean subtasksUpdated) |
void |
IssueEventManager.dispatchRedundantEvent(Long eventTypeId,
Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
Map params,
boolean sendMail,
boolean subtasksUpdated)
Deprecated.
since v6.4.10, please use
IssueEventManager.dispatchEvent(IssueEventBundle) . |
Constructor and Description |
---|
IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId)
Create a new IssueEvent with a given list of parameters.
|
IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId,
boolean sendMail)
Create a new IssueEvent with a given list of parameters.
|
IssueEvent(Issue issue,
com.atlassian.crowd.embedded.api.User user,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changeGroup,
Map params,
Long eventTypeId,
boolean sendMail,
boolean subtasksUpdated) |
MentionIssueCommentEvent(Issue issue,
com.atlassian.crowd.embedded.api.User fromUser,
Set<com.atlassian.crowd.embedded.api.User> toUsers,
String mentionText,
String fieldId,
Set<NotificationRecipient> currentRecipients,
Comment comment) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultReplicatedIndexManager.reindexComments(Collection<Comment> comments)
Reindexes the set of provided comments in the replicated index.
|
void |
ReplicatedIndexManager.reindexComments(Collection<Comment> comments) |
Modifier and Type | Interface and Description |
---|---|
interface |
MutableComment
Represents a comment's in JIRA.
|
Modifier and Type | Class and Description |
---|---|
class |
CommentImpl
Represents a comment on an issue by a user.
|
class |
MockComment |
Modifier and Type | Field and Description |
---|---|
static Comparator<Comment> |
CommentComparator.COMPARATOR
Comparator for sorting comments based on creation date.
|
Modifier and Type | Method and Description |
---|---|
Comment |
DefaultCommentManager.convertToComment(org.ofbiz.core.entity.GenericValue gv) |
Comment |
CommentSearchManager.convertToComment(org.ofbiz.core.entity.GenericValue gv) |
Comment |
CommentManager.convertToComment(org.ofbiz.core.entity.GenericValue commentGV)
This is a convenience method that can be used to convert a GenericValue representation of a comment to a comment
object.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
ApplicationUser updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
ApplicationUser updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
ApplicationUser updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent,
boolean modifyIssueUpdateDate) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
ApplicationUser updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent,
boolean modifyIssueUpdateDate)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
ApplicationUser updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
Map<String,JSONObject> commentProperties,
boolean dispatchEvent,
boolean modifyIssueUpdateDate) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
ApplicationUser updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
Map<String,JSONObject> commentProperties,
boolean dispatchEvent,
boolean modifyIssueUpdateDate)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
String body,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
String body,
boolean dispatchEvent)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
ApplicationUser author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Map<String,JSONObject> commentProperties,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
ApplicationUser author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Map<String,JSONObject> commentProperties,
boolean dispatchEvent)
Creates a comment and associates it with the given issue.
|
Comment |
DefaultCommentManager.create(Issue issue,
String author,
String body,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
String author,
String body,
boolean dispatchEvent)
Deprecated.
Use
CommentManager.create(Issue issue, ApplicationUser author, String body, boolean dispatchEvent) instead. Since v6.0.
Creates a comment and associates it with the given issue. Using this method the comment will be created
with a createdDate of the current date/time and with no visibility restrictions. |
Comment |
DefaultCommentManager.create(Issue issue,
String author,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
String author,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent)
Deprecated.
Use
CommentManager.create(Issue issue, ApplicationUser author, String body, String groupLevel, Long roleLevelId, boolean dispatchEvent) instead. Since v6.0.
Creates a comment and associates it with the given issue. Using this method the comment will be created
with a createdDate of the current time. If you have provided a groupLevel then the comment visibility will be restricted
to the provided group, it is assumed that validation to ensure that the group actually exists has been performed
outside of this method. If you have provided a roleLevelId then the comment visibility will be restricted to the
provided role, it is assumed that validation to ensure that the role actually exists has been performed outside
of this method.
NOTE: A comment should not have both a group level and role level visibility restriction. This
method will not stop this, but it does not semantically make sense. |
Comment |
DefaultCommentManager.create(Issue issue,
String author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
String author,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent)
Deprecated.
Use
CommentManager.create(Issue issue, ApplicationUser author, String body, String groupLevel, Long roleLevelId, Date created, boolean dispatchEvent) instead. Since v6.0.
Creates a comment and associates it with the given issue. Using this method the comment will be created
with a createdDate of the specified date. This method should be used if you are trying to preserve existing
information and it is important to retain the original created date. If you have provided a groupLevel then the
comment visibility will be restricted to the provided group, it is assumed that validation to ensure that the
group actually exists has been performed outside of this method. If you have provided a roleLevelId then the
comment visibility will be restricted to the provided role, it is assumed that validation to ensure that the
role actually exists has been performed outside of this method.
NOTE: A comment should not have both a group level and role level visibility restriction. This
method will not stop this, but it does not semantically make sense. |
Comment |
DefaultCommentManager.create(Issue issue,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent) |
Comment |
CommentManager.create(Issue issue,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent)
Deprecated.
Use
CommentManager.create(Issue issue, ApplicationUser author, ApplicationUser updateAuthor, String body, String groupLevel, Long roleLevelId, Date created, Date updated, boolean dispatchEvent) instead. Since v6.0.
Creates a comment and associates it with the given issue. Using this method the comment will be created
with a createdDate of the specified date. This method should be used if you are trying to preserve existing
information and it is important to retain the original created date. If you have provided a groupLevel then the
comment visibility will be restricted to the provided group, it is assumed that validation to ensure that the
group actually exists has been performed outside of this method. If you have provided a roleLevelId then the
comment visibility will be restricted to the provided role, it is assumed that validation to ensure that the
role actually exists has been performed outside of this method.
NOTE: A comment should not have both a group level and role level visibility restriction. This
method will not stop this, but it does not semantically make sense. |
Comment |
DefaultCommentManager.create(Issue issue,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent,
boolean modifyIssueUpdateDate) |
Comment |
CommentManager.create(Issue issue,
String author,
String updateAuthor,
String body,
String groupLevel,
Long roleLevelId,
Date created,
Date updated,
boolean dispatchEvent,
boolean modifyIssueUpdateDate)
Deprecated.
Use
CommentManager.create(com.atlassian.jira.issue.Issue, com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.user.ApplicationUser, String, String, Long, java.util.Date, java.util.Date, boolean, boolean) instead. Since v6.0.
Creates a comment and associates it with the given issue. Using this method the comment will be created
with a createdDate of the specified date. This method should be used if you are trying to preserve existing
information and it is important to retain the original created date. If you have provided a groupLevel then the
comment visibility will be restricted to the provided group, it is assumed that validation to ensure that the
group actually exists has been performed outside of this method. If you have provided a roleLevelId then the
comment visibility will be restricted to the provided role, it is assumed that validation to ensure that the
role actually exists has been performed outside of this method.
NOTE: A comment should not have both a group level and role level visibility restriction. This
method will not stop this, but it does not semantically make sense. |
Comment |
DefaultCommentManager.getCommentById(Long commentId) |
Comment |
CommentSearchManager.getCommentById(Long commentId) |
Comment |
CommentManager.getCommentById(Long commentId)
Will return a comment for the passed in commentId.
|
Comment |
DefaultCommentManager.getLastComment(Issue issue) |
Comment |
CommentManager.getLastComment(Issue issue)
|
Modifier and Type | Method and Description |
---|---|
List<Comment> |
DefaultCommentManager.getComments(Issue issue) |
List<Comment> |
CommentSearchManager.getComments(Issue issue) |
List<Comment> |
CommentManager.getComments(Issue issue)
This will return all comments for a given issue.
|
List<Comment> |
DefaultCommentManager.getCommentsForUser(Issue issue,
ApplicationUser user) |
List<Comment> |
CommentSearchManager.getCommentsForUser(Issue issue,
ApplicationUser user) |
List<Comment> |
CommentManager.getCommentsForUser(Issue issue,
ApplicationUser user)
Retrieves all
Comment s on the
given Issue that the given ApplicationUser has permission to see. |
List<Comment> |
DefaultCommentManager.getCommentsForUser(Issue issue,
com.atlassian.crowd.embedded.api.User user) |
List<Comment> |
CommentManager.getCommentsForUser(Issue issue,
com.atlassian.crowd.embedded.api.User user)
Deprecated.
Use
CommentManager.getCommentsForUser(Issue issue, ApplicationUser user) instead. Since v6.0.
Retrieves all Comment s on the
given Issue that the given User has permission to see.
If the passed in user is null, only comments with no permission level set will be returned.
NOTE: keep in mind null user represents an anonymous i.e. non-logged in user. |
List<Comment> |
DefaultCommentManager.getCommentsForUserSince(Issue issue,
ApplicationUser user,
Date since) |
List<Comment> |
CommentSearchManager.getCommentsForUserSince(Issue issue,
ApplicationUser user,
Date since) |
List<Comment> |
CommentManager.getCommentsForUserSince(Issue issue,
ApplicationUser user,
Date since)
Retrieves
Comment s that were created or updated after the provided date, on the
given Issue that the given ApplicationUser has permission to see. |
Modifier and Type | Method and Description |
---|---|
int |
CommentComparator.compare(Comment o1,
Comment o2) |
ChangeItemBean |
DefaultCommentManager.delete(Comment comment) |
ChangeItemBean |
CommentManager.delete(Comment comment)
Deletes the specified comment.
|
boolean |
DefaultCommentPermissionManager.hasBrowsePermission(ApplicationUser user,
Comment comment)
Determines whether the user can see given comment, or is prevented by restrictions on the visibility of the
comment (either group- or Project Role-based)
The User can always see the comment if the comment does not have restricted visibility,
otherwise only if the user is in either comments group or project role
visibility level.
|
boolean |
CommentPermissionManager.hasBrowsePermission(ApplicationUser user,
Comment comment)
Return true if the user can see the comment.
|
boolean |
DefaultCommentPermissionManager.hasBrowsePermission(com.atlassian.crowd.embedded.api.User user,
Comment comment) |
boolean |
CommentPermissionManager.hasBrowsePermission(com.atlassian.crowd.embedded.api.User user,
Comment comment)
Deprecated.
Use
CommentPermissionManager.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. |
boolean |
DefaultCommentPermissionManager.hasEditPermission(ApplicationUser user,
Comment comment)
Determines whether the user can edit given comment.
|
boolean |
CommentPermissionManager.hasEditPermission(ApplicationUser user,
Comment comment)
Determines whether the given user has permission to edit the given comment.
|
boolean |
DefaultCommentPermissionManager.hasEditPermission(com.atlassian.crowd.embedded.api.User user,
Comment comment) |
boolean |
CommentPermissionManager.hasEditPermission(com.atlassian.crowd.embedded.api.User user,
Comment comment)
Deprecated.
Use
CommentPermissionManager.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 Permissions.COMMENT_EDIT_ALL permission or the
Permissions.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. |
boolean |
DefaultCommentPermissionManager.isUserCommentAuthor(ApplicationUser user,
Comment comment) |
boolean |
DefaultCommentManager.isUserCommentAuthor(ApplicationUser user,
Comment comment) |
boolean |
CommentPermissionManager.isUserCommentAuthor(ApplicationUser user,
Comment comment)
Returns true if the given user is the author of the given comment.
|
boolean |
CommentManager.isUserCommentAuthor(ApplicationUser user,
Comment comment)
Returns true if the given user is the author of the given comment.
|
boolean |
DefaultCommentPermissionManager.isUserCommentAuthor(com.atlassian.crowd.embedded.api.User user,
Comment comment) |
boolean |
DefaultCommentManager.isUserCommentAuthor(com.atlassian.crowd.embedded.api.User user,
Comment comment) |
boolean |
CommentPermissionManager.isUserCommentAuthor(com.atlassian.crowd.embedded.api.User user,
Comment comment)
Deprecated.
Use
CommentPermissionManager.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. |
boolean |
CommentManager.isUserCommentAuthor(com.atlassian.crowd.embedded.api.User user,
Comment comment)
Deprecated.
Use
CommentManager.isUserCommentAuthor(ApplicationUser user, Comment 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. |
void |
DefaultCommentManager.update(Comment comment,
boolean dispatchEvent) |
void |
CommentManager.update(Comment comment,
boolean dispatchEvent)
Persists the updated comment.
|
void |
DefaultCommentManager.update(Comment comment,
Map<String,JSONObject> commentProperties,
boolean dispatchEvent) |
void |
CommentManager.update(Comment comment,
Map<String,JSONObject> commentProperties,
boolean dispatchEvent)
Persists the updated comment.
|
Modifier and Type | Method and Description |
---|---|
Comment |
LuceneCommentIterator.next() |
Comment |
LuceneCommentIterator.nextComment() |
Comment |
CommentIterator.nextComment() |
Modifier and Type | Method and Description |
---|---|
CommentJsonBean |
CommentBeanFactory.createBean(Comment comment)
|
CommentJsonBean |
DefaultCommentBeanFactory.createBean(Comment comment)
Deprecated.
|
CommentJsonBean |
CommentBeanFactory.createBean(Comment comment,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter)
Generate a bean suitable for serialisation by Jackon into JSON.
|
CommentJsonBean |
DefaultCommentBeanFactory.createBean(Comment comment,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter) |
CommentJsonBean |
CommentBeanFactory.createRenderedBean(Comment comment)
|
CommentJsonBean |
DefaultCommentBeanFactory.createRenderedBean(Comment comment)
Deprecated.
|
CommentJsonBean |
CommentBeanFactory.createRenderedBean(Comment comment,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter)
Generate a bean suitable for serialisation by Jackon into JSON.
|
CommentJsonBean |
DefaultCommentBeanFactory.createRenderedBean(Comment comment,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter) |
Modifier and Type | Method and Description |
---|---|
static CommentJsonBean |
CommentJsonBean.expandedShortBean(Comment comment,
JiraBaseUrls urls,
ProjectRoleManager projectRoleManager,
DateTimeFormatterFactory dateTimeFormatterFactory,
RendererManager rendererManager,
String rendererType,
IssueRenderContext renderContext,
String expand)
|
static CommentJsonBean |
CommentJsonBean.expandedShortBean(Comment comment,
JiraBaseUrls urls,
ProjectRoleManager projectRoleManager,
DateTimeFormatterFactory dateTimeFormatterFactory,
RendererManager rendererManager,
String rendererType,
IssueRenderContext renderContext,
String expand,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter) |
static CommentJsonBean |
CommentJsonBean.renderedShortBean(Comment comment,
JiraBaseUrls urls,
ProjectRoleManager projectRoleManager,
DateTimeFormatterFactory dateTimeFormatterFactory,
RendererManager rendererManager,
String rendererType,
IssueRenderContext renderContext)
|
static CommentJsonBean |
CommentJsonBean.renderedShortBean(Comment comment,
JiraBaseUrls urls,
ProjectRoleManager projectRoleManager,
DateTimeFormatterFactory dateTimeFormatterFactory,
RendererManager rendererManager,
String rendererType,
IssueRenderContext renderContext,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter) |
static CommentJsonBean |
CommentJsonBean.shortBean(Comment comment,
JiraBaseUrls urls,
ProjectRoleManager projectRoleManager)
|
static CommentJsonBean |
CommentJsonBean.shortBean(Comment comment,
JiraBaseUrls urls,
ProjectRoleManager projectRoleManager,
ApplicationUser loggedInUser,
EmailFormatter emailFormatter) |
Modifier and Type | Method and Description |
---|---|
List<Comment> |
DefaultCommentRetriever.apply(Issue issue) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Option<org.apache.lucene.document.Document> |
DefaultCommentDocumentFactory.apply(Comment comment) |
org.apache.lucene.index.Term |
DefaultCommentDocumentFactory.getIdentifyingTerm(Comment comment) |
Modifier and Type | Method and Description |
---|---|
long |
DefaultIndexManager.reIndexComments(Collection<Comment> comments) |
long |
IssueIndexManager.reIndexComments(Collection<Comment> comments)
Reindexes a collection of comments.
|
Index.Result |
IssueIndexer.reindexComments(Collection<Comment> comments,
Context context)
Reindex a collection of issue comments.
|
Index.Result |
DefaultIssueIndexer.reindexComments(Collection<Comment> comments,
Context context) |
long |
DefaultIndexManager.reIndexComments(Collection<Comment> comments,
Context context) |
long |
IssueIndexManager.reIndexComments(Collection<Comment> comments,
Context context)
Reindexes a collection of comments.
|
long |
DefaultIndexManager.reIndexComments(Collection<Comment> comments,
Context context,
boolean updateReplicatedIndexStore) |
long |
IssueIndexManager.reIndexComments(Collection<Comment> comments,
Context context,
boolean updateReplicatedIndexStore)
Reindexes a collection of comments.
|
Constructor and Description |
---|
CommentFieldRenderContext(Comment comment) |
Modifier and Type | Method and Description |
---|---|
Comment |
CommentAction.getComment()
Returns the comment
|
Constructor and Description |
---|
CommentAction(IssueTabPanelModuleDescriptor descriptor,
Comment comment,
boolean canEditComment,
boolean canDeleteComment,
boolean isCollapsed,
RendererManager rendererManager,
FieldLayoutManager fieldLayoutManager,
DateTimeFormatter dateTimeFormatter,
CommentFieldRenderer commentFieldRenderer,
CommentPropertyService commentPropertyService,
JiraAuthenticationContext jiraAuthenticationContext) |
Modifier and Type | Method and Description |
---|---|
Comment |
IssueUpdateBean.getComment() |
Comment |
DefaultIssueChangeHolder.getComment() |
Comment |
IssueChangeHolder.getComment()
Get the comment associated with this group of changes.
|
Modifier and Type | Method and Description |
---|---|
void |
IssueUpdateBean.setComment(Comment comment) |
void |
DefaultIssueChangeHolder.setComment(Comment comment) |
void |
IssueChangeHolder.setComment(Comment comment)
Set the comment associated with this change.
|
Modifier and Type | Method and Description |
---|---|
void |
MentionServiceImpl.sendCommentMentions(com.atlassian.crowd.embedded.api.User remoteUser,
Set<NotificationRecipient> currentRecipients,
Comment comment,
Comment originalComment) |
void |
MentionService.sendCommentMentions(com.atlassian.crowd.embedded.api.User remoteUser,
Set<NotificationRecipient> currentRecipients,
Comment comment,
Comment originalComment)
Given a comment object this method will look for any mentions using the
MentionFinder and send e-mails to
all users mentioned. |
void |
MentionServiceImpl.sendIssueEditMentions(com.atlassian.crowd.embedded.api.User remoteUser,
Set<NotificationRecipient> currentRecipients,
Issue issue,
Comment comment) |
void |
MentionService.sendIssueEditMentions(com.atlassian.crowd.embedded.api.User remoteUser,
Set<NotificationRecipient> currentRecipients,
Issue issue,
Comment comment)
Given an issue that has just been edited and an optional edit comment this method sends mention e-mails
to all users mentioned in either the new issue description or option edit comment.
|
Modifier and Type | Method and Description |
---|---|
Index.Result |
MockIssueIndexer.reindexComments(Collection<Comment> comments,
Context context) |
Modifier and Type | Method and Description |
---|---|
CommentHelper.CommentHelperBuilder |
CommentHelper.CommentHelperBuilder.comment(Comment comment) |
Constructor and Description |
---|
CommentHelper(javax.servlet.http.HttpServletRequest request,
Project project,
com.atlassian.fugue.Option<Issue> issue,
com.atlassian.fugue.Option<Comment> comment) |
Modifier and Type | Method and Description |
---|---|
Comment |
MessageHandlerContext.createComment(Issue issue,
com.atlassian.crowd.embedded.api.User author,
String body,
boolean dispatchEvent)
Creates a new issue comment in JIRA or a dummy comment in dry run mode
|
Comment |
DefaultMessageHandlerContext.createComment(Issue issue,
com.atlassian.crowd.embedded.api.User author,
String body,
boolean dispatchEvent) |
Modifier and Type | Method and Description |
---|---|
protected Comment |
AbstractCommentableIssue.createComment() |
Comment |
DeleteComment.getCommentObject() |
Copyright © 2002-2015 Atlassian. All Rights Reserved.