Class StpInterfaceDefaultImpl

java.lang.Object
cn.dev33.satoken.stp.StpInterfaceDefaultImpl
All Implemented Interfaces:
StpInterface

public class StpInterfaceDefaultImpl extends Object implements StpInterface
StpInterface 接口默认的实现类

如果开发者没有实现 StpInterface 接口,则框架会使用此默认实现类,所有方法都返回空集合,即:用户不具有任何权限和角色。

Since:
1.10.0
Author:
click33
  • Constructor Details

    • StpInterfaceDefaultImpl

      public StpInterfaceDefaultImpl()
  • Method Details

    • getPermissionList

      public List<String> getPermissionList(Object loginId, String loginType)
      Description copied from interface: StpInterface
      返回指定账号id所拥有的权限码集合
      Specified by:
      getPermissionList in interface StpInterface
      Parameters:
      loginId - 账号id
      loginType - 账号类型
      Returns:
      该账号id具有的权限码集合
    • getRoleList

      public List<String> getRoleList(Object loginId, String loginType)
      Description copied from interface: StpInterface
      返回指定账号id所拥有的角色标识集合
      Specified by:
      getRoleList in interface StpInterface
      Parameters:
      loginId - 账号id
      loginType - 账号类型
      Returns:
      该账号id具有的角色标识集合