Examples of VisibleEditor


Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

    //----------------------------------------------------------< Iterable >--

    @Override
    public Iterator<T> iterator() {
        CommitFailedException e = EditorDiff.process(
                new VisibleEditor(new MoveDetector(this)),
                before, after);
        if (e != null) {
            LOG.error("Error while extracting observation events", e);
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new CompositeEditor(
                new VersionEditor(versionStorage, builder),
                new VersionStorageEditor(versionStorage, builder)));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

            // no primary type on the root node, set the hardcoded default
            primary = "rep:root";
            builder.setProperty(JCR_PRIMARYTYPE, primary, NAME);
        }

        Editor editor = new VisibleEditor(
                new TypeEditor(afterTypes, primary, mixins, builder));
        if (modifiedTypes.isEmpty()) {
            return editor;
        } else {
            // Some node types were modified, so scan the entire repository
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

                // no primary type on the root node, set the hardcoded default
                primary = "rep:root";
                builder.setProperty(JCR_PRIMARYTYPE, primary, NAME);
            }

            return new VisibleEditor(
                    new TypeEditor(types, primary, mixins, builder));
        } else {
            return null;
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

            // no primary type on the root node, set the hardcoded default
            primary = "rep:root";
            builder.setProperty(JCR_PRIMARYTYPE, primary, NAME);
        }

        Editor editor = new VisibleEditor(
                new TypeEditor(afterTypes, primary, mixins, builder));
        if (modifiedTypes.isEmpty()) {
            return editor;
        } else {
            // Some node types were modified, so scan the entire repository
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder version = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new VersionEditor(version, builder));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

            Set<String> modifiedTypes =
                    registration.getModifiedTypes(beforeTypes);
            if (!modifiedTypes.isEmpty()) {
                // Some node types were modified, so scan the repository
                // to make sure that the modified definitions still apply.
                Editor editor = new VisibleEditor(new TypeEditor(
                        strict, modifiedTypes, afterTypes,
                        primary, mixins, builder));
                CommitFailedException exception =
                        EditorDiff.process(editor, MISSING_NODE, after);
                if (exception != null) {
                    throw exception;
                }
            }
        }

        return new VisibleEditor(new TypeEditor(
                strict, null, afterTypes, primary, mixins, builder));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new CompositeEditor(
                new VersionEditor(versionStorage, builder, info),
                new SubtreeEditor(
                        new VersionStorageEditor(versionStorage, builder),
                            JCR_SYSTEM, JCR_VERSIONSTORAGE)));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

        NodeBuilder system = builder.child(JCR_SYSTEM);
        if (!system.hasChildNode(JCR_VERSIONSTORAGE)) {
            return null;
        }
        NodeBuilder versionStorage = system.child(JCR_VERSIONSTORAGE);
        return new VisibleEditor(new CompositeEditor(
                new VersionEditor(versionStorage, builder, info),
                new VersionStorageEditor(versionStorage, builder)));
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.VisibleEditor

            // no primary type on the root node, set the hardcoded default
            primary = "rep:root";
            builder.setProperty(JCR_PRIMARYTYPE, primary, NAME);
        }

        Editor editor = new VisibleEditor(
                new TypeEditor(strict, afterTypes, primary, mixins, builder));
        if (modifiedTypes.isEmpty()) {
            return editor;
        } else {
            // Some node types were modified, so scan the entire repository
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.