public class DefaultCommentPinManager extends Object implements CommentPinManager, Startable
Constructor and Description |
---|
DefaultCommentPinManager(QueryDslAccessor dslAccessor,
OfBizDelegator ofBizDelegator,
com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
List<CommentPinDTO> |
getPinnedComments(long issueId)
Returns list of pinned comments for given issue
|
boolean |
isFeatureEnabled()
Checks if feature flag is enabled
|
boolean |
isPinned(long commentId)
Checks if given comment is pinned
|
void |
onCommentDeleted(CommentDeletedEvent event) |
CommentPinDTO |
pinComment(long issueId,
long commentId,
String userKey,
java.time.Instant created)
Pins comment in given issue
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
void |
unpinComment(long commentId)
Unpins comment
|
public DefaultCommentPinManager(QueryDslAccessor dslAccessor, OfBizDelegator ofBizDelegator, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager)
public void start() throws Exception
Startable
@EventListener public void onCommentDeleted(CommentDeletedEvent event)
public CommentPinDTO pinComment(long issueId, long commentId, String userKey, java.time.Instant created)
CommentPinManager
pinComment
in interface CommentPinManager
issueId
- of issue which has comment to pincommentId
- to pincreated
- time of action executionpublic void unpinComment(long commentId)
CommentPinManager
unpinComment
in interface CommentPinManager
commentId
- to unpinpublic boolean isPinned(long commentId)
CommentPinManager
isPinned
in interface CommentPinManager
public List<CommentPinDTO> getPinnedComments(long issueId)
CommentPinManager
getPinnedComments
in interface CommentPinManager
public boolean isFeatureEnabled()
CommentPinManager
isFeatureEnabled
in interface CommentPinManager
Copyright © 2002-2023 Atlassian. All Rights Reserved.