Package org.beangle.ems.security.profile

Examples of org.beangle.ems.security.profile.UserProfile


    Resource resource = getResource();
    // if (resource.getEntities().isEmpty()) { return Collections.emptyList(); }
    // List<Restriction> realms = restrictionMap.get(resource.getId());
//    User user = entityDao.get(User.class, getUserId());
    // if (null == realms) {
    UserProfile profile = getUserProfile();
    List<Restriction> holders = restrictionService.getRestrictions(profile, resource);
    // restrictionMap.put(resource.getId(), realms);
    // }
    // 没有权限就报错
    if (holders.isEmpty()) { throw new AccessDeniedException(SecurityContextHolder.getContext()
View Full Code Here


        .getAuthentication(), resource.getName()); }
    return holders;
  }

  protected Object getUserPropertyValue(String name) {
    UserProfile profile = getUserProfile();
    if (null == profile) return null;
    else return restrictionService.getPropertyValue(name, profile);
  }
View Full Code Here

    Resource resource = getResource();
    // if (resource.getEntities().isEmpty()) { return Collections.emptyList(); }
    // List<Restriction> realms = restrictionMap.get(resource.getId());
//    User user = entityDao.get(User.class, getUserId());
    // if (null == realms) {
    UserProfile profile = getUserProfile();
    List<Restriction> holders = restrictionService.getRestrictions(profile, resource);
    // restrictionMap.put(resource.getId(), realms);
    // }
    // 没有权限就报错
    if (holders.isEmpty()) { throw new AccessDeniedException(SecurityContextHolder.getContext()
View Full Code Here

        .getAuthentication(), resource.getName()); }
    return holders;
  }

  protected Object getUserPropertyValue(String name) {
    UserProfile profile = getUserProfile();
    if (null == profile) return null;
    else return restrictionService.getPropertyValue(name, profile);
  }
View Full Code Here

TOP

Related Classes of org.beangle.ems.security.profile.UserProfile

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.