Package org.beangle.security

Examples of org.beangle.security.UserCategory


   * 注销会话
   */
  public OnlineActivity removeAuthentication(String sessionId) {
    OnlineActivity info = sessionRegistry.remove(sessionId);
    if (null != info) {
      UserCategory category = info.getCategory();
      OnlineProfile profile = ((OnlineProfile) profileMap.get(category));
      profile.left();
    }
    return info;
  }
View Full Code Here


    // 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

TOP

Related Classes of org.beangle.security.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.