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);
}
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);
}
Aggregations