Package cn.dev33.satoken.stp
Class StpInterfaceDefaultImpl
java.lang.Object
cn.dev33.satoken.stp.StpInterfaceDefaultImpl
- All Implemented Interfaces:
StpInterface
对
StpInterface 接口默认的实现类
如果开发者没有实现 StpInterface 接口,则框架会使用此默认实现类,所有方法都返回空集合,即:用户不具有任何权限和角色。
- Since:
- 1.10.0
- Author:
- click33
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPermissionList(Object loginId, String loginType) 返回指定账号id所拥有的权限码集合getRoleList(Object loginId, String loginType) 返回指定账号id所拥有的角色标识集合Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.dev33.satoken.stp.StpInterface
isDisabled
-
Constructor Details
-
StpInterfaceDefaultImpl
public StpInterfaceDefaultImpl()
-
-
Method Details
-
getPermissionList
Description copied from interface:StpInterface返回指定账号id所拥有的权限码集合- Specified by:
getPermissionListin interfaceStpInterface- Parameters:
loginId- 账号idloginType- 账号类型- Returns:
- 该账号id具有的权限码集合
-
getRoleList
Description copied from interface:StpInterface返回指定账号id所拥有的角色标识集合- Specified by:
getRoleListin interfaceStpInterface- Parameters:
loginId- 账号idloginType- 账号类型- Returns:
- 该账号id具有的角色标识集合
-