Class PlatformCommentService
- java.lang.Object
-
- com.flowable.platform.security.service.AbstractPlatformSecurityService
-
- com.flowable.platform.service.comment.PlatformCommentService
-
- All Implemented Interfaces:
com.flowable.platform.security.permission.PermissionServiceRegistryAware
,org.springframework.beans.factory.Aware
public class PlatformCommentService extends com.flowable.platform.security.service.AbstractPlatformSecurityService
-
-
Field Summary
Fields Modifier and Type Field Description protected CommentService
commentService
protected java.lang.Integer
defaultListResponseSize
-
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
-
Constructor Summary
Constructors Constructor Description PlatformCommentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<CommentInstanceRepresentation>
commentMapper(java.util.List<Comment> comments)
CommentInstanceRepresentation
createComment(java.lang.String scopeId, java.lang.String scopeType, java.lang.String commentContent)
void
deleteComment(Comment comment, java.lang.String scopeId, java.lang.String scopeType)
Comment
getComment(java.lang.String commentId)
org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation>
getComments(CommentQueryRequest request)
CommentInstanceRepresentation
updateComment(Comment comment, java.lang.String scopeId, java.lang.String scopeType, java.lang.String updatedContent)
-
Methods inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
currentUserHasAdminRights, currentUserIsSuperAdmin, fetchCasePermissionMappings, fetchCasePermissionMappings, fetchCaseSecurityPolicyModel, fetchPermissions, fetchPermissionsForTask, fetchProcessPermissionMappings, fetchProcessPermissionMappings, fetchProcessSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModelForCaseInstance, fetchSecurityPolicyModelForProcessInstance, fetchSecurityPolicyModelForTask, fetchSecurityPolicyModelForTask, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappingsForCase, fetchTaskPermissionMappingsForProcess, fetchTaskSecurityPolicyModelForCase, fetchTaskSecurityPolicyModelForProcess, filterPermissionsForRole, getCmmnExtensionElementValue, getCurrentGroupKeys, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
-
-
-
-
Field Detail
-
defaultListResponseSize
@Value("${flowable.platform.rest.default-list-response-size:100}") protected java.lang.Integer defaultListResponseSize
-
commentService
@Autowired protected CommentService commentService
-
-
Method Detail
-
getComments
public org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation> getComments(CommentQueryRequest request)
-
createComment
public CommentInstanceRepresentation createComment(java.lang.String scopeId, java.lang.String scopeType, java.lang.String commentContent)
-
getComment
public Comment getComment(java.lang.String commentId)
-
updateComment
public CommentInstanceRepresentation updateComment(Comment comment, java.lang.String scopeId, java.lang.String scopeType, java.lang.String updatedContent)
-
deleteComment
public void deleteComment(Comment comment, java.lang.String scopeId, java.lang.String scopeType)
-
commentMapper
protected java.util.List<CommentInstanceRepresentation> commentMapper(java.util.List<Comment> comments)
-
-