Package org.beangle.security.core.session.category

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


  }

  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

    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

  }

  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

TOP

Related Classes of org.beangle.security.core.session.category.CategoryProfile

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.