Package org.apache.syncope.common.search

Examples of org.apache.syncope.common.search.EntitlementCond


                }

                break;

            case ENTITLEMENT:
                final EntitlementCond entitlementCond = new EntitlementCond();
                entitlementCond.setExpression(searchConditionWrapper.getFilterName());

                if (searchConditionWrapper.isNotOperator()) {
                    nodeCond = NodeCond.getNotLeafCond(entitlementCond);
                } else {
                    nodeCond = NodeCond.getLeafCond(entitlementCond);
View Full Code Here


        assertFalse(matchingRoles.isEmpty());
    }

    @Test
    public void searchByEntitlement() throws InvalidSearchConditionException {
        final EntitlementCond userListCond = new EntitlementCond();
        userListCond.setExpression("USER_LIST");

        final EntitlementCond userReadcond = new EntitlementCond();
        userReadcond.setExpression("USER_READ");

        final NodeCond searchCondition = NodeCond.getAndCond(NodeCond.getLeafCond(userListCond),
                NodeCond.getLeafCond(userReadcond));
        assertTrue(searchCondition.isValid());
View Full Code Here

        assertFalse(matchingRoles.isEmpty());
    }

    @Test
    public void searchByEntitlement() throws InvalidSearchConditionException {
        final EntitlementCond userListCond = new EntitlementCond();
        userListCond.setExpression("USER_LIST");

        final EntitlementCond userReadcond = new EntitlementCond();
        userReadcond.setExpression("USER_READ");

        final NodeCond searchCondition = NodeCond.getAndCond(NodeCond.getLeafCond(userListCond),
                NodeCond.getLeafCond(userReadcond));
        assertTrue(searchCondition.isValid());
View Full Code Here

                        : NodeCond.getLeafCond(resourceCond);

                break;

            case ENTITLEMENT:
                final EntitlementCond entitlementCond = new EntitlementCond();
                entitlementCond.setExpression(searchConditionWrapper.getFilterName());

                nodeCond = searchConditionWrapper.isNotOperator()
                        ? NodeCond.getNotLeafCond(entitlementCond)
                        : NodeCond.getLeafCond(entitlementCond);
                break;
View Full Code Here

                        : NodeCond.getLeafCond(resourceCond);

                break;

            case ENTITLEMENT:
                final EntitlementCond entitlementCond = new EntitlementCond();
                entitlementCond.setExpression(searchConditionWrapper.getFilterName());

                nodeCond = searchConditionWrapper.isNotOperator()
                        ? NodeCond.getNotLeafCond(entitlementCond)
                        : NodeCond.getLeafCond(entitlementCond);
                break;
View Full Code Here

TOP

Related Classes of org.apache.syncope.common.search.EntitlementCond

Copyright © 2018 www.massapicom. 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.