Package org.beangle.security.blueprint

Examples of org.beangle.security.blueprint.UserCategory


        return redirect("admin", "info.save.failure");
      }
    }
    Long categoryId = getLong("removeCategoryId");
    if (null != categoryId) {
      UserCategory category = entityDao.get(UserCategory.class, categoryId);
      if (null != category) {
        try {
          entityDao.remove(category);
        } catch (Exception e) {
          return redirect("admin", "info.remove.failure");
View Full Code Here


  public Map<Object, LimitProfile> getProfiles() {
    List<CategoryProfile> profiles = entityDao.getAll(CategoryProfile.class);
    Map<Object, LimitProfile> profileMap = CollectUtils.newHashMap();
    for (CategoryProfile profile : profiles) {
      UserCategory category = entityDao
          .get(UserCategory.class, profile.getCategory().getId());
      profileMap.put(category, new LimitProfile(category, profile.getCapacity(),
          profile.getInactiveInterval(), profile.getInactiveInterval()));
    }
    return profileMap;
View Full Code Here

TOP

Related Classes of org.beangle.security.blueprint.UserCategory

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.