Package com.jpoweredcart.common.entity.user

Examples of com.jpoweredcart.common.entity.user.UserGroup


      userDetails.userId = user.getId();
      userDetails.salt = user.getSalt();
      userDetails.password = user.getPassword();
      userDetails.username = user.getUsername();
      userDetails.enabled = user.getStatus()==1;
      UserGroup userGroup = userService.getSystemUserGroupById(user.getUserGroupId());
      if(userGroup!=null){
        userDetails.authorities.add(userGroup.getName());
        String permString = userGroup.getPermission();
        userDetails.permissions = UserPermissions.unserializePermissions(permString);
      }
     
      logger.debug("Found user username={}, enabled={}", username, userDetails.enabled);
     
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.user.UserGroup

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.