Examples of CategoryProfile


Examples of org.beangle.security.auth.session.CategoryProfile

      HttpServletRequest request = ((ServletRequestAware) auth).getRequest();
      if (null == request) {
        return;
      }
      HttpSession session = request.getSession();
      CategoryProfile profile = authenticationManager.getSessionController()
          .getProfileProvider().getCategoryProfile(
              ((UserDetails) auth.getDetails()).getCategory());
      session.setMaxInactiveInterval(profile.getInactiveInterval() * 60);
      ((ServletRequestAware) auth).setRequest(null);
      UserDetails details = (UserDetails) auth.getDetails();
      if (null == details) {
        return;
      }
View Full Code Here

Examples of org.beangle.security.core.session.category.CategoryProfile

    OqlBuilder<?> cbuilder = OqlBuilder.from(CategoryProfileBean.class, "cp");
    cbuilder.where("cp.sessionProfile=:profile", getProfile());
    cbuilder.select("cp.category.title,cp.capacity,cp.userMaxSessions,cp.inactiveInterval");
    for (Object data : entityDao.search(cbuilder)) {
      Object[] datas = (Object[]) data;
      profiles.add(new CategoryProfile((String) datas[0], (Integer) datas[1], (Integer) datas[2],
          (Integer) datas[3]));
    }
    return profiles;

  }
View Full Code Here

Examples of org.beangle.security.core.session.category.CategoryProfile

  }

  public void saveOrUpdate(List<CategoryProfileBean> profiles) {
    entityDao.saveOrUpdate(profiles);
    for (CategoryProfileBean profile : profiles) {
      publish(new CategoryProfileUpdateEvent(new CategoryProfile(profile.getCategory().getTitle(),
          profile.getCapacity(), profile.getUserMaxSessions(), profile.getInactiveInterval())));
    }
  }
View Full Code Here

Examples of org.beangle.security.core.session.category.CategoryProfile

    OqlBuilder<?> cbuilder = OqlBuilder.from(GroupSessionProfileBean.class, "cp");
    cbuilder.where("cp.sessionProfile=:profile", getProfile());
    cbuilder.select("cp.group.name,cp.capacity,cp.userMaxSessions,cp.inactiveInterval");
    for (Object data : entityDao.search(cbuilder)) {
      Object[] datas = (Object[]) data;
      profiles.add(new CategoryProfile((String) datas[0], (Integer) datas[1], (Integer) datas[2],
          (Integer) datas[3]));
    }
    return profiles;

  }
View Full Code Here

Examples of org.beangle.security.core.session.category.CategoryProfile

  }

  public void saveOrUpdate(List<GroupSessionProfileBean> profiles) {
    entityDao.saveOrUpdate(profiles);
    for (GroupSessionProfileBean profile : profiles) {
      publish(new CategoryProfileUpdateEvent(new CategoryProfile(profile.getGroup().getName(),
          profile.getCapacity(), profile.getUserMaxSessions(), profile.getInactiveInterval())));
    }
  }
View Full Code Here

Examples of org.beangle.security.monitor.auth.session.CategoryProfile

    }
    SessionProfile profile = (SessionProfile) entityDao.get(SessionProfile.class,
        sessionProfileId);
    // initialize profile.categoryprofiles
    for (Long categoryId : profile.getCategoryProfiles().keySet()) {
      CategoryProfile categoryProfile = profile.getCategoryProfiles().get(categoryId);
      entityDao.initialize(categoryProfile);
    }
    return profile;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.