Uses of Class
com.bytedesk.core.rbac.token.TokenEntity
Packages that use TokenEntity
-
Uses of TokenEntity in com.bytedesk.core.rbac.token
Methods in com.bytedesk.core.rbac.token that return TokenEntityModifier and TypeMethodDescriptionprotected TokenEntityTokenRestService.doSave(TokenEntity entity) TokenRestService.handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, TokenEntity entity) Methods in com.bytedesk.core.rbac.token that return types with arguments of type TokenEntityModifier and TypeMethodDescriptionprotected org.springframework.data.jpa.domain.Specification<TokenEntity>TokenRestService.createSpecification(TokenRequest request) protected org.springframework.data.domain.Page<TokenEntity>TokenRestService.executePageQuery(org.springframework.data.jpa.domain.Specification<TokenEntity> spec, org.springframework.data.domain.Pageable pageable) TokenRestService.findByAccessToken(String accessToken) 根据accessToken查找Token实体TokenRepository.findByUserUidAndTypeAndRevokedFalseAndDeletedFalseAndExpiresAtAfter(String userUid, String type, ZonedDateTime now) 通过用户UID、类型、未撤销、未删除和过期时间查询有效令牌TokenRepository.findFirstByAccessTokenAndRevokedFalseAndDeletedFalse(String accessToken) 通过访问令牌查找Token实体static org.springframework.data.jpa.domain.Specification<TokenEntity>TokenSpecification.search(TokenRequest request, AuthService authService) Methods in com.bytedesk.core.rbac.token with parameters of type TokenEntityModifier and TypeMethodDescriptionTokenRestService.convertToResponse(TokenEntity entity) protected TokenEntityTokenRestService.doSave(TokenEntity entity) TokenRestService.handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, TokenEntity entity) voidTokenEntityListener.onPostPersist(TokenEntity token) voidTokenEntityListener.onPostUpdate(TokenEntity token) voidTokenRestService.touchLastActiveAtIfNeeded(TokenEntity entity) 在 token 被成功校验/使用后,按需更新最近活跃时间。Method parameters in com.bytedesk.core.rbac.token with type arguments of type TokenEntityModifier and TypeMethodDescriptionprotected org.springframework.data.domain.Page<TokenEntity>TokenRestService.executePageQuery(org.springframework.data.jpa.domain.Specification<TokenEntity> spec, org.springframework.data.domain.Pageable pageable) -
Uses of TokenEntity in com.bytedesk.core.rbac.token.event
Fields in com.bytedesk.core.rbac.token.event declared as TokenEntityMethods in com.bytedesk.core.rbac.token.event that return TokenEntityModifier and TypeMethodDescriptionAbstractTokenEvent.getToken()private TokenEntityAbstractTokenEvent.snapshot(TokenEntity source) Methods in com.bytedesk.core.rbac.token.event with parameters of type TokenEntityModifier and TypeMethodDescriptionprivate TokenEntityAbstractTokenEvent.snapshot(TokenEntity source) Constructors in com.bytedesk.core.rbac.token.event with parameters of type TokenEntityModifierConstructorDescriptionprotectedAbstractTokenEvent(Object source, TokenEntity token) TokenCreateEvent(TokenEntity token) TokenUpdateEvent(TokenEntity token)