Package org.beangle.security.monitor.auth.session

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


    if (null == profileProvider) {
      loaded = true;
      logger.warn("Cannot load profile for  profileProvider not found!");
      return;
    }
    SessionProfile sessionProfile = profileProvider.getProfile();
    if (null != sessionProfile) {
      for (CategoryProfile cp : sessionProfile.getCategoryProfiles().values()) {
        int initOnline=0;
        OnlineProfile existed=profileMap.get(cp.getCategory());
        if(null!=existed){
          initOnline=existed.getOnline();
        }
View Full Code Here


        return null;
      } else {
        sessionProfileId = profileIds.get(0);
      }
    }
    SessionProfile profile = (SessionProfile) entityDao.get(SessionProfile.class,
        sessionProfileId);
    // workground for lazy loading
    OqlBuilder<CategoryProfile> builder=OqlBuilder.from(CategoryProfile.class,"cp");
    builder.where("cp.sessionProfile=:profile",profile);
    Map<Long,CategoryProfile> categoryMap=MapUtil.newHashMap();
    for (CategoryProfile categoryProfile: entityDao.search(builder)) {
      UserCategory uc=entityDao.get(UserCategory.class, categoryProfile.getCategory().getId());
      categoryProfile.setCategory(uc);
      categoryMap.put(uc.getId(),categoryProfile);
    }
    profile.setCategoryProfiles(categoryMap);
    return profile;
  }
View Full Code Here

        return null;
      } else {
        sessionProfileId = profileIds.get(0);
      }
    }
    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

Related Classes of org.beangle.security.monitor.auth.session.SessionProfile

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.