Search in sources :

Example 1 with Checkpoint

use of org.apache.jackrabbit.jcr2spi.operation.Checkpoint in project jackrabbit by apache.

the class VersionManagerImpl method checkpoint.

public NodeEntry checkpoint(NodeState nodeState) throws RepositoryException {
    Checkpoint cp = Checkpoint.create(nodeState, this);
    workspaceManager.execute(cp);
    return workspaceManager.getHierarchyManager().getNodeEntry(cp.getNewVersionId());
}
Also used : Checkpoint(org.apache.jackrabbit.jcr2spi.operation.Checkpoint)

Example 2 with Checkpoint

use of org.apache.jackrabbit.jcr2spi.operation.Checkpoint in project jackrabbit by apache.

the class VersionManagerImpl method checkpoint.

public NodeEntry checkpoint(NodeState nodeState, NodeId activityId) throws RepositoryException {
    Checkpoint cp = Checkpoint.create(nodeState, activityId, this);
    workspaceManager.execute(cp);
    return workspaceManager.getHierarchyManager().getNodeEntry(cp.getNewVersionId());
}
Also used : Checkpoint(org.apache.jackrabbit.jcr2spi.operation.Checkpoint)

Aggregations

Checkpoint (org.apache.jackrabbit.jcr2spi.operation.Checkpoint)2