Examples of FailingValidator


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

public class PermissionStoreValidatorProvider extends ValidatorProvider implements PermissionConstants {

    @Nonnull
    @Override
    public Validator getRootValidator(NodeState before, NodeState after) {
        FailingValidator validator = new FailingValidator(
                "Constraint", 41, "Attempt to modify permission store.");
        return new SubtreeValidator(validator, JCR_SYSTEM, REP_PERMISSION_STORE);
    }
View Full Code Here

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

         * Create a new validator that only throws a {@link CommitFailedException} whenever
         * there are changes not contained in the subtree rooted at {@code path}.
         * @param path
         */
        public ItemSaveValidator(String path) {
            this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                    "Failed to save subtree at " + path + ". There are " +
                            "transient modifications outside that subtree."),
                    newArrayList(elements(path)));
        }
View Full Code Here

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

         * Create a new validator that only throws a {@link CommitFailedException} whenever
         * there are changes not contained in the subtree rooted at {@code path}.
         * @param path
         */
        public ItemSaveValidator(String path) {
            this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                    "Failed to save subtree at " + path + ". There are " +
                            "transient modifications outside that subtree."),
                    newArrayList(elements(path)));
        }
View Full Code Here

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

public class PermissionStoreValidatorProvider extends ValidatorProvider implements PermissionConstants {

    @Nonnull
    @Override
    public Validator getRootValidator(NodeState before, NodeState after) {
        FailingValidator validator = new FailingValidator(
                "Constraint", 41, "Attempt to modify permission store.");
        return new SubtreeValidator(validator, JCR_SYSTEM, REP_PERMISSION_STORE);
    }
View Full Code Here

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

         * Create a new validator that only throws a {@link CommitFailedException} whenever
         * there are changes not contained in the subtree rooted at {@code path}.
         * @param path
         */
        public ItemSaveValidator(String path) {
            this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                    "Failed to save subtree at " + path + ". There are " +
                            "transient modifications outside that subtree."),
                    newArrayList(elements(path)));
        }
View Full Code Here

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

         * Create a new validator that only throws a {@link CommitFailedException} whenever
         * there are changes not contained in the subtree rooted at {@code path}.
         * @param path
         */
        public ItemSaveValidator(String path) {
            this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                    "Failed to save subtree at " + path + ". There are " +
                            "transient modifications outside that subtree."),
                    newArrayList(elements(path)));
        }
View Full Code Here

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

    @Nonnull
    @Override
    public Validator getRootValidator(
            NodeState before, NodeState after, CommitInfo info) {
        FailingValidator validator = new FailingValidator(
                "Constraint", 41, "Attempt to modify permission store.");
        return new SubtreeValidator(validator, JCR_SYSTEM, REP_PERMISSION_STORE);
    }
View Full Code Here

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

     * Create a new validator that only throws a {@link CommitFailedException} whenever
     * there are changes not contained in the subtree rooted at {@code path}.
     * @param path
     */
    public ItemSaveValidator(String path) {
        this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                "Failed to save subtree at " + path + ". There are " +
                        "transient modifications outside that subtree."),
                newArrayList(elements(path)));
    }
View Full Code Here

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

         * Create a new validator that only throws a {@link CommitFailedException} whenever
         * there are changes not contained in the subtree rooted at {@code path}.
         * @param path
         */
        public ItemSaveValidator(String path) {
            this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                    "Failed to save subtree at " + path + ". There are " +
                            "transient modifications outside that subtree."),
                    newArrayList(elements(path)));
        }
View Full Code Here

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

         * Create a new validator that only throws a {@link CommitFailedException} whenever
         * there are changes not contained in the subtree rooted at {@code path}.
         * @param path
         */
        public ItemSaveValidator(String path) {
            this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                    "Failed to save subtree at " + path + ". There are " +
                            "transient modifications outside that subtree."),
                    newArrayList(elements(path)));
        }
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.