Examples of EntitlementCond


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

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

        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

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

        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

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

                        : 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

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

                        : 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

Examples of org.apache.syncope.core.persistence.dao.search.EntitlementCond

    @Test
    public void entitlements() {
        String fiqlExpression = SyncopeClient.getRoleSearchConditionBuilder().hasEntitlements("USER_LIST").query();
        assertEquals(SpecialAttr.ENTITLEMENTS + "==USER_LIST", fiqlExpression);

        EntitlementCond entCond = new EntitlementCond();
        entCond.setExpression("USER_LIST");
        SearchCond simpleCond = SearchCond.getLeafCond(entCond);

        assertEquals(simpleCond, SearchCondConverter.convert(fiqlExpression));
    }
View Full Code Here

Examples of org.apache.syncope.core.persistence.dao.search.EntitlementCond

                            resourceCond.setResourceName(value);
                            leaf = SearchCond.getLeafCond(resourceCond);
                            break;

                        case ENTITLEMENTS:
                            EntitlementCond entitlementCond = new EntitlementCond();
                            entitlementCond.setExpression(value);
                            leaf = SearchCond.getLeafCond(entitlementCond);
                            break;

                        default:
                            throw new IllegalArgumentException(
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.