Package org.beangle.security.web.session.category

Examples of org.beangle.security.web.session.category.LimitProfile


    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


  public void setUp() {
    int profileNum = 10;
    Map<Object, LimitProfile> profiles = CollectUtils.newHashMap();
    for (int i = 0; i < profileNum; i++) {
      Object category = String.valueOf(i);
      profiles.put(category, new LimitProfile(category, 1000, 15, 1));
    }
    profileProvider = new LimitProfileProviderImpl();
    profileProvider.setProfiles(profiles);
    controller = new ConcurrentSessionStrategy();
    //controller.setProfileProvider(profileProvider);
View Full Code Here

TOP

Related Classes of org.beangle.security.web.session.category.LimitProfile

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.