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 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 Detail
-
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") public static Comment newComment(DocumentModel commentModel)
Deprecated.since 11.1, useDocumentModel.getAdapter(Class)
withComment
class instead
-
newAnnotation
@Deprecated(since="11.1") public static Annotation newAnnotation(DocumentModel annotationModel)
Deprecated.since 11.1, useDocumentModel.getAdapter(Class)
withAnnotation
class instead
-
-