Examples of OtherNodeTypeRelationFilter


Examples of org.structr.core.entity.OtherNodeTypeRelationFilter

            final Relation relation = AbstractNode.getRelationshipForType(relationshipType);
            final Class destNodeType = relation.getOtherType(typedIdResource.getEntityClass());
            final Set partialResult = new LinkedHashSet<>(typeResource.doGet(sortKey, sortDescending, NodeFactory.DEFAULT_PAGE_SIZE, NodeFactory.DEFAULT_PAGE, null).getResults());

            // filter list according to end node type
            final Set<GraphObject> set = Iterables.toSet(Iterables.filter(new OtherNodeTypeRelationFilter(securityContext, sourceNode, destNodeType), source.getRelationships(relationshipType)));

            // intersect partial result with result list
            set.retainAll(partialResult);

            final List<GraphObject> finalResult = new LinkedList<>(set);
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.