Package org.beangle.ems.security.restrict

Examples of org.beangle.ems.security.restrict.RestrictionHolder


  @SuppressWarnings("unchecked")
  public <T extends Restriction> RestrictionHolder getHolder() {
    Long restrictionHolderId = Params.getLong("restriction.holder.id");
    String restrictionType = Params.get("restrictionType");
    RestrictionHolder holer = null;
    if ("user".equals(restrictionType)) {
      holer = (RestrictionHolder) entityDao.get(User.class, restrictionHolderId);
    } else if ("group".equals(restrictionType)) {
      holer = (RestrictionHolder) entityDao.get(Group.class, restrictionHolderId);
    } else {
View Full Code Here

TOP

Related Classes of org.beangle.ems.security.restrict.RestrictionHolder

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.