Search in sources :

Example 1 with JcrChangeComment

use of com.thinkbiganalytics.metadata.modeshape.template.JcrChangeComment in project kylo by Teradata.

the class FeedSummary method setVersionComment.

public void setVersionComment(String comment) {
    // First remove any existing comment so the timestamp and user gets correctly set.
    JcrUtil.removeNode(getNode(), VERSION_COMMENT);
    Node chgNode = JcrUtil.getOrCreateNode(getNode(), VERSION_COMMENT, JcrChangeComment.NODE_TYPE);
    new JcrChangeComment(chgNode, comment != null ? comment : "");
}
Also used : JcrChangeComment(com.thinkbiganalytics.metadata.modeshape.template.JcrChangeComment) Node(javax.jcr.Node)

Aggregations

JcrChangeComment (com.thinkbiganalytics.metadata.modeshape.template.JcrChangeComment)1 Node (javax.jcr.Node)1