Package org.apache.jackrabbit.oak.plugins.version

Examples of org.apache.jackrabbit.oak.plugins.version.ReadOnlyVersionManager


        String versionableUuid = TreeUtil.getString(a, JcrConstants.JCR_UUID);
        vhPath = getVersionHistoryPath(versionableUuid, vs);
    }

    private String getVersionHistoryPath(String vUUID, final Tree vs) {
        ReadOnlyVersionManager vMgr = new ReadOnlyVersionManager() {
            @Nonnull
            @Override
            protected Tree getVersionStorage() {
                return vs;
            }

            @Nonnull
            @Override
            protected Root getWorkspaceRoot() {
                return root;
            }

            @Nonnull
            @Override
            protected ReadOnlyNodeTypeManager getNodeTypeManager() {
                throw new UnsupportedOperationException();
            }
        };
        return VersionConstants.VERSION_STORE_PATH + '/' + vMgr.getVersionHistoryPath(vUUID);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.version.ReadOnlyVersionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.