类 UserUtils

java.lang.Object
com.iplatform.base.util.UserUtils

public class UserUtils extends Object
  • 字段详细资料

  • 构造器详细资料

    • UserUtils

      public UserUtils()
  • 方法详细资料

    • acquireClientUserInfo

      public static final UserInfo acquireClientUserInfo(S_user_core user_core, String token)
      返回前端(PC)用户基本信息,电商系统使用该对象。
      参数:
      user_core -
      token -
      返回:
    • createSupervisor

      public static final com.walker.web.UserPrincipal<S_user_core> createSupervisor(String supervisorPassword)
      正式代码,创建超级管理员用户登录对象
      返回:
    • getUserInfo

      public static final S_user_core getUserInfo()
      工具方法: 返回当前登录用户对象。
      返回:
    • getCurrentUserPrincipal

      public static final com.walker.web.UserPrincipal<S_user_core> getCurrentUserPrincipal()
      返回当前登录用户,如果不存在返回:null
      返回:
    • toUserPrincipal

      public static final DefaultUserPrincipal toUserPrincipal(String userJson) throws Exception
      把用户缓存json字符串转换成对象。
      参数:
      userJson -
      返回:
      抛出:
      Exception
    • toRoleIdLongList

      public static final List<Long> toRoleIdLongList(List<String> roleIds)
      把角色ID字符串集合转成数值集合。
      参数:
      roleIds -
      返回: