Examples of makeSelfAsNewParentIds()


Examples of com.sishuok.es.common.plugin.entity.Tree.makeSelfAsNewParentIds()

        Tree target = createTree(root.getId(), root.makeSelfAsNewParentIds());
        flush();
        treeService.move(source, target, "inner");
        clear();
        assertEquals(target.getId(), treeService.findOne(source.getId()).getParentId());
        assertEquals(target.makeSelfAsNewParentIds(), treeService.findOne(source.getId()).getParentIds());
        assertEquals(Integer.valueOf(1), treeService.findOne(source.getId()).getWeight());
    }

    @Test
    public void testMoveAsChildWithChild() {
View Full Code Here

Examples of com.sishuok.es.sys.organization.entity.Job.makeSelfAsNewParentIds()

        }

        if (search.containsSearchKey("job")) {
            Job job = (Job) search.getValue("job");
            query.setParameter("jobId", job.getId());
            query.setParameter("jobParentIds", job.makeSelfAsNewParentIds() + "%");
        }
    }

}
View Full Code Here

Examples of com.sishuok.es.sys.organization.entity.Organization.makeSelfAsNewParentIds()

        super.setValues(query, search);

        if (search.containsSearchKey("organization")) {
            Organization organization = (Organization) search.getValue("organization");
            query.setParameter("organizationId", organization.getId());
            query.setParameter("organizationParentIds", organization.makeSelfAsNewParentIds() + "%");
        }

        if (search.containsSearchKey("job")) {
            Job job = (Job) search.getValue("job");
            query.setParameter("jobId", job.getId());
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.