Class Comments
java.lang.Object
org.nuxeo.ecm.platform.comment.api.Comments
Deprecated.
Utility class to convert document model from/to comments, annotations or external entities.
- Since:
- 10.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
annotationToDocumentModel
(Annotation annotation, DocumentModel documentModel) Deprecated.since 11.1, unusedstatic void
commentToDocumentModel
(Comment comment, DocumentModel documentModel) Deprecated.since 11.1, useComment.getDocument()
withDocumentModelJsonReader
insteadstatic void
documentModelToAnnotation
(DocumentModel documentModel, Annotation annotation) Deprecated.since 11.1, unusedstatic void
documentModelToComment
(DocumentModel documentModel, Comment comment) Deprecated.since 11.1, unusedstatic void
documentModelToExternalEntity
(DocumentModel documentModel, ExternalEntity entity) Deprecated.since 11.1, unusedstatic void
externalEntityToDocumentModel
(ExternalEntity entity, DocumentModel documentModel) Deprecated.since 11.1, unusedstatic Annotation
newAnnotation
(DocumentModel annotationModel) Deprecated.since 11.1, useDocumentModel.getAdapter(Class)
withAnnotation
class insteadstatic Comment
newComment
(DocumentModel commentModel) Deprecated.since 11.1, useDocumentModel.getAdapter(Class)
withComment
class instead
-
Method Details
-
commentToDocumentModel
@Deprecated(since="11.1") public static void commentToDocumentModel(Comment comment, DocumentModel documentModel) Deprecated.since 11.1, useComment.getDocument()
withDocumentModelJsonReader
instead -
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, useDocumentModel.getAdapter(Class)
withComment
class instead -
newAnnotation
Deprecated.since 11.1, useDocumentModel.getAdapter(Class)
withAnnotation
class instead
-
Comment.getDocument()
orDocumentModel.getAdapter(Class)
instead