Package org.beangle.ems.security.restrict.model

Examples of org.beangle.ems.security.restrict.model.RestrictPatternBean


        "id;name,1;group1,2;group2");
    field.setKeyName("id");
    field.setPropertyNames("name");
    RestrictEntity entity = new RestrictEntityBean("user", User.class);
    entity.getFields().add(field);
    RestrictPattern pattern = new RestrictPatternBean(entity,
        "exists(from {alias}.groups as g where g.group in(:groups))");
    Restriction restriction = new UserRestrictionBean(null, pattern);
    restriction.setItem(field, "id;name,1;group1");
    OqlBuilder<User> builder = OqlBuilder.from(User.class);
    restrictionService.apply(builder, CollectUtils.newArrayList(restriction));
View Full Code Here

TOP

Related Classes of org.beangle.ems.security.restrict.model.RestrictPatternBean

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.