Class Comments
- java.lang.Object
-
- org.nuxeo.ecm.platform.comment.api.Comments
-
@Deprecated(since="11.1") public class Comments extends Object
Deprecated.since 11.1, useComment.getDocument()orDocumentModel.getAdapter(Class)insteadUtility class to convert document model from/to comments, annotations or external entities.- Since:
- 10.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidannotationToDocumentModel(Annotation annotation, DocumentModel documentModel)Deprecated.since 11.1, unusedstatic voidcommentToDocumentModel(Comment comment, DocumentModel documentModel)Deprecated.since 11.1, useComment.getDocument()withDocumentModelJsonReaderinsteadstatic voiddocumentModelToAnnotation(DocumentModel documentModel, Annotation annotation)Deprecated.since 11.1, unusedstatic voiddocumentModelToComment(DocumentModel documentModel, Comment comment)Deprecated.since 11.1, unusedstatic voiddocumentModelToExternalEntity(DocumentModel documentModel, ExternalEntity entity)Deprecated.since 11.1, unusedstatic voidexternalEntityToDocumentModel(ExternalEntity entity, DocumentModel documentModel)Deprecated.since 11.1, unusedstatic AnnotationnewAnnotation(DocumentModel annotationModel)Deprecated.since 11.1, useDocumentModel.getAdapter(Class)withAnnotationclass insteadstatic CommentnewComment(DocumentModel commentModel)Deprecated.since 11.1, useDocumentModel.getAdapter(Class)withCommentclass instead
-
-
-
Method Detail
-
commentToDocumentModel
@Deprecated(since="11.1") public static void commentToDocumentModel(Comment comment, DocumentModel documentModel)
Deprecated.since 11.1, useComment.getDocument()withDocumentModelJsonReaderinstead
-
annotationToDocumentModel
@Deprecated(since="11.1") public static void annotationToDocumentModel(Annotation annotation, DocumentModel documentModel)
Deprecated.since 11.1, unused
-
externalEntityToDocumentModel
@Deprecated(since="11.1") public static void externalEntityToDocumentModel(ExternalEntity entity, DocumentModel documentModel)
Deprecated.since 11.1, unused
-
documentModelToComment
@Deprecated(since="11.1") public static void documentModelToComment(DocumentModel documentModel, Comment comment)
Deprecated.since 11.1, unused
-
documentModelToAnnotation
@Deprecated(since="11.1") public static void documentModelToAnnotation(DocumentModel documentModel, Annotation annotation)
Deprecated.since 11.1, unused
-
documentModelToExternalEntity
@Deprecated(since="11.1") public static void documentModelToExternalEntity(DocumentModel documentModel, ExternalEntity entity)
Deprecated.since 11.1, unused
-
newComment
@Deprecated(since="11.1") public static Comment newComment(DocumentModel commentModel)
Deprecated.since 11.1, useDocumentModel.getAdapter(Class)withCommentclass instead
-
newAnnotation
@Deprecated(since="11.1") public static Annotation newAnnotation(DocumentModel annotationModel)
Deprecated.since 11.1, useDocumentModel.getAdapter(Class)withAnnotationclass instead
-
-