Package org.apache.syncope.core.persistence.dao.search

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


                            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

Related Classes of org.apache.syncope.core.persistence.dao.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.