External module "post/comment/comment.service"
Functions
createComment
- createComment(user: any, node: any, body: any, requestAnonymous?: boolean): Promise<any>
-
Parameters
-
user: any
-
node: any
-
body: any
-
Default value requestAnonymous: boolean = false
Returns Promise<any>
deleteComment
- deleteComment(comment: any): Promise<void>
-
Parameters
Returns Promise<void>
findCommentById
- findCommentById(commentId: any): Promise<any>
-
Parameters
Returns Promise<any>
findCommentsByUser
- findCommentsByUser(user: any): Promise<any>
-
Parameters
Returns Promise<any>
findCommentsByUserAndEvent
- findCommentsByUserAndEvent(userId: any, eventId: any): Promise<any>
-
Parameters
Returns Promise<any>
findCommentsSortedForDisplay
- findCommentsSortedForDisplay(node: any): Promise<any>
-
Parameters
Returns Promise<any>
findCommentsToUser
- findCommentsToUser(user: any, options?: any): Promise<any>
-
Parameters
-
user: any
-
Default value options: any = {}
Returns Promise<any>
findOwnAnonymousCommentIds
- findOwnAnonymousCommentIds(user: any, nodeId: any, nodeType: any): Promise<any>
-
Parameters
-
user: any
-
nodeId: any
-
nodeType: any
Returns Promise<any>
isOwnAnonymousComment
- isOwnAnonymousComment(comment: any, user: any): Promise<boolean>
-
Parameters
Returns Promise<boolean>
Creates and persists a new comment.