Search in sources :

Example 1 with JcrEntityDraftVersion

use of com.thinkbiganalytics.metadata.modeshape.versioning.JcrEntityDraftVersion in project kylo by Teradata.

the class DraftVersionProviderMixin method createDraftVersion.

@Override
default EntityVersion<PK, T> createDraftVersion(PK entityId, boolean includeContent) {
    Node versionable = createDraftEntity(entityId);
    T entity = includeContent ? asEntity(entityId, versionable) : null;
    return new JcrEntityDraftVersion<>(versionable, entityId, entity);
}
Also used : JcrEntityDraftVersion(com.thinkbiganalytics.metadata.modeshape.versioning.JcrEntityDraftVersion) Node(javax.jcr.Node)

Example 2 with JcrEntityDraftVersion

use of com.thinkbiganalytics.metadata.modeshape.versioning.JcrEntityDraftVersion in project kylo by Teradata.

the class DraftVersionProviderMixin method createDraftVersion.

@Override
default EntityVersion<PK, T> createDraftVersion(PK entityId, ID versionId, boolean includeContent) {
    Node versionable = createDraftEntity(entityId, versionId);
    T entity = includeContent ? asEntity(entityId, versionable) : null;
    return new JcrEntityDraftVersion<>(versionable, entityId, entity);
}
Also used : JcrEntityDraftVersion(com.thinkbiganalytics.metadata.modeshape.versioning.JcrEntityDraftVersion) Node(javax.jcr.Node)

Aggregations

JcrEntityDraftVersion (com.thinkbiganalytics.metadata.modeshape.versioning.JcrEntityDraftVersion)2 Node (javax.jcr.Node)2