@Component public class DefaultAlloyContentHandler extends AlloyContentHandler
BASIC_TYPE| 构造器和说明 |
|---|
DefaultAlloyContentHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
anonymousOwnerKey()
返回一个匿名情况下的 key,这个通常是固定的一个值,
在没有登录的情况下用户都将使用这个key
|
boolean |
isLogin()
是否登录,如果已经登录就用 ownerKey 否则就是 anonymousOwnerKey
|
byte[] |
ownerKey()
数据拥有者,一般为用户ID 或者 租户ID 商户ID等,不可超出32长度
|
RuntimeException |
throwNotLoginException()
在未登录的情况下提交了 AlloyId 数据,触发异常
|
decode, decodeObject, encode, encodeObject, fill, getKey, getKeypublic byte[] anonymousOwnerKey()
AlloyContentHandleranonymousOwnerKey 在类中 AlloyContentHandlerpublic byte[] ownerKey()
AlloyContentHandlerownerKey 在类中 AlloyContentHandlerpublic boolean isLogin()
AlloyContentHandlerisLogin 在类中 AlloyContentHandlerpublic RuntimeException throwNotLoginException()
AlloyContentHandlerthrowNotLoginException 在类中 AlloyContentHandlerCopyright © 2024. All rights reserved.