Class PlatformCommentService
- java.lang.Object
-
- com.flowable.platform.security.service.AbstractPlatformSecurityService
-
- com.flowable.platform.service.comment.PlatformCommentService
-
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
public class PlatformCommentService extends AbstractPlatformSecurityService
-
-
Field Summary
Fields Modifier and Type Field Description protected CasePermissionService
casePermissionService
protected CmmnHistoryService
cmmnHistoryService
static String
COMMENTS_ONLY_ON_ROOT
protected CommentService
commentService
protected Integer
defaultListResponseSize
protected HistoryService
historyService
protected ProcessPermissionService
processPermissionService
protected TaskPermissionService
taskPermissionService
-
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 List<CommentInstanceRepresentation>
commentMapper(List<Comment> comments)
protected boolean
commentsOnlyOnRoot(String scopeType, String scopeId)
CommentInstanceRepresentation
createComment(String scopeId, String scopeType, String commentContent)
void
deleteComment(Comment comment, String scopeId, String scopeType)
Comment
getComment(String commentId)
DataResponse<CommentInstanceRepresentation>
getComments(CommentQueryRequest request)
protected EntityLinkInfo
getRootEntityLink(String scopeType, String scopeId)
CommentInstanceRepresentation
updateComment(Comment comment, String scopeId, String scopeType, 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, getCurrentSecurityScope, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
-
-
-
-
Field Detail
-
COMMENTS_ONLY_ON_ROOT
public static final String COMMENTS_ONLY_ON_ROOT
- See Also:
- Constant Field Values
-
defaultListResponseSize
@Value("${flowable.platform.rest.default-list-response-size:100}") protected Integer defaultListResponseSize
-
commentService
@Autowired protected CommentService commentService
-
taskPermissionService
@Autowired protected TaskPermissionService taskPermissionService
-
processPermissionService
@Autowired protected ProcessPermissionService processPermissionService
-
casePermissionService
@Autowired protected CasePermissionService casePermissionService
-
historyService
@Autowired protected HistoryService historyService
-
cmmnHistoryService
@Autowired protected CmmnHistoryService cmmnHistoryService
-
-
Method Detail
-
getComments
public DataResponse<CommentInstanceRepresentation> getComments(CommentQueryRequest request)
-
createComment
public CommentInstanceRepresentation createComment(String scopeId, String scopeType, String commentContent)
-
updateComment
public CommentInstanceRepresentation updateComment(Comment comment, String scopeId, String scopeType, String updatedContent)
-
getRootEntityLink
protected EntityLinkInfo getRootEntityLink(String scopeType, String scopeId)
-
commentMapper
protected List<CommentInstanceRepresentation> commentMapper(List<Comment> comments)
-
-