use of org.alfresco.repo.version.traitextender.VersionServiceTrait in project alfresco-repository by Alfresco.
the class VirtualVersionServiceExtension method deleteVersionHistory.
@Override
public void deleteVersionHistory(NodeRef nodeRef) throws AspectMissingException {
VersionServiceTrait theTrait = getTrait();
Reference reference = Reference.fromNodeRef(nodeRef);
if (reference == null) {
theTrait.deleteVersionHistory(nodeRef);
} else {
NodeRef materialNode = smartStore.materialize(reference);
theTrait.deleteVersionHistory(materialNode);
}
}
Aggregations