Class CommentPropertyHelper
java.lang.Object
com.atlassian.jira.bc.issue.comment.property.CommentPropertyHelper
- All Implemented Interfaces:
EntityPropertyHelper<Comment>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.entity.property.EntityPropertyHelper
EntityPropertyHelper.CheckPermissionFunction<E extends WithId> -
Constructor Summary
ConstructorsConstructorDescriptionCommentPropertyHelper(CommentPermissionManager commentPermissionManager, CommentSearchManager commentSearchManager, I18nHelper i18n) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
CommentPropertyHelper
public CommentPropertyHelper(CommentPermissionManager commentPermissionManager, CommentSearchManager commentSearchManager, I18nHelper i18n)
-
-
Method Details
-
hasEditPermissionFunction
- Specified by:
hasEditPermissionFunctionin interfaceEntityPropertyHelper<Comment>- Returns:
- the function which will check if the provided user has permissions to edit the entity.
-
hasReadPermissionFunction
- Specified by:
hasReadPermissionFunctionin interfaceEntityPropertyHelper<Comment>- Returns:
- the function which will check if the provided user has permissions to view the entity.
-
getEntityByIdFunction
- Specified by:
getEntityByIdFunctionin interfaceEntityPropertyHelper<Comment>- Returns:
- the function which will get the entity for the provided id.
-
createSetPropertyEventBiFunction
public BiFunction<ApplicationUser,EntityProperty, createSetPropertyEventBiFunction()CommentPropertySetEvent> - Specified by:
createSetPropertyEventBiFunctionin interfaceEntityPropertyHelper<Comment>- Returns:
- the function which will create an instance of
EntityPropertySetEventfor the proper entity type.
-
createDeletePropertyEventBiFunction
public BiFunction<ApplicationUser,EntityProperty, createDeletePropertyEventBiFunction()CommentPropertyDeletedEvent> - Specified by:
createDeletePropertyEventBiFunctionin interfaceEntityPropertyHelper<Comment>- Returns:
- the function which will create an instance of
EntityPropertyDeletedEventfor the proper entity type.
-
getEntityPropertyType
- Specified by:
getEntityPropertyTypein interfaceEntityPropertyHelper<Comment>- Returns:
- the type of the entity property.
-