Modifier and Type |
Method and Description |
DocumentModel |
createComment(DocumentModel docModel,
DocumentModel comment) |
DocumentModel |
createComment(DocumentModel docModel,
DocumentModel parent,
DocumentModel child) |
DocumentModel |
createComment(DocumentModel docModel,
String comment) |
DocumentModel |
createComment(DocumentModel docModel,
String comment,
String author)
Creates a comment document model, filling its properties with given info and linking it to given document.
|
DocumentModel |
createLocatedComment(DocumentModel docModel,
DocumentModel comment,
String path)
Creates a comment document model.
|
void |
deleteComment(DocumentModel docModel,
DocumentModel comment) |
List<DocumentModel> |
getComments(DocumentModel docModel) |
List<DocumentModel> |
getComments(DocumentModel docModel,
DocumentModel parent) |
List<DocumentModel> |
getDocumentsForComment(DocumentModel comment)
Gets documents in relation with a particular comment.
|
DocumentModel |
getThreadForComment(DocumentModel comment)
Gets thread in relation with a given comment (post or comment)
|
protected DocumentModel |
internalCreateComment(CoreSession session,
DocumentModel docModel,
DocumentModel comment,
String path) |