Examples of TypePredicate


Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

        NodeBuilder rootAfter = after.builder();

        permissionRoot = getPermissionRoot(rootAfter);
        bitsProvider = new PrivilegeBitsProvider(new ImmutableRoot(after));

        isACL = new TypePredicate(after, NT_REP_ACL);
        isACE = new TypePredicate(after, NT_REP_ACE);
        isGrantACE = new TypePredicate(after, NT_REP_GRANT_ACE);

        Diff diff = new Diff("");
        after.compareAgainstBaseState(before, diff);
        apply();
        return rootAfter.getNodeState();
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

            this.ntNames = ntNames;
        }

        @Override
        public EventFilter createFilter(NodeState before, NodeState after) {
            TypePredicate predicate = new TypePredicate(
                    after.exists() ? after : before, ntNames);
            return new UniversalFilter(before, after, selector, predicate);
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

        this.path = "/";
        this.context = new LuceneIndexEditorContext(definition, analyzer,
                updateCallback);
        this.root = root;
        if (context.getDefinition().hasDeclaredNodeTypes()) {
            typePredicate = new TypePredicate(root, context.getDefinition().getDeclaringNodeTypes());
        } else {
            typePredicate = Predicates.alwaysTrue();
        }
        this.isDeleted = false;
        this.deletedMaxLevels = -1;
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

            this.ntNames = ntNames;
        }

        @Override
        public EventFilter createFilter(NodeState before, NodeState after, String basePath) {
            TypePredicate predicate = new TypePredicate(
                    after.exists() ? after : before, ntNames);
            return new UniversalFilter(
                    getChildNode(before, basePath),
                    getChildNode(after, basePath),
                    selector, predicate);
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

        }

        // get declaring types, and all their subtypes
        // TODO: should we reindex when type definitions change?
        if (definition.hasProperty(DECLARING_NODE_TYPES)) {
            this.typePredicate = new TypePredicate(
                    root, definition.getNames(DECLARING_NODE_TYPES));
        } else {
            this.typePredicate = null;
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

        }

        // get declaring types, and all their subtypes
        // TODO: should we reindex when type definitions change?
        if (definition.hasProperty(DECLARING_NODE_TYPES)) {
            this.typePredicate = new TypePredicate(
                    root, definition.getNames(DECLARING_NODE_TYPES));
        } else {
            this.typePredicate = null;
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.nodetype.TypePredicate

        this.propertyNames = newHashSet(definition.getNames(PROPERTY_NAMES));

        // get declaring types, and all their subtypes
        // TODO: should we reindex when type definitions change?
        if (definition.hasProperty(DECLARING_NODE_TYPES)) {
            this.typePredicate = new TypePredicate(
                    root, definition.getNames(DECLARING_NODE_TYPES));
        } else {
            this.typePredicate = NodeState.EXISTS;
        }
View Full Code Here

Examples of org.structr.core.predicate.TypePredicate

  public RandomRelatedNodes(RelationshipType relType, Direction direction, Class resultType, Notion notion, int maxDepth, int count) {

    super(relType, direction, maxDepth);

    // add type predicate
    this.addPredicate(new TypePredicate(resultType.getSimpleName()));
   
    this.resultType = resultType;

    this.setNotion(notion);
    this.count = count;
View Full Code Here

Examples of org.structr.core.predicate.TypePredicate

    super(relType, direction, maxDepth);

    // add type predicate
    if(resultType != null) {

      this.addPredicate(new TypePredicate(resultType.getSimpleName()));
      this.resultType = resultType;
    }

    // set comparator for sorting
    this.setComparator(comparator);
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.