Class AbstractReactivePermissionDefinitionService<T extends PermissionDefinition>

java.lang.Object
com.power4j.fist.security.core.authorization.service.reactive.AbstractReactivePermissionDefinitionService<T>
All Implemented Interfaces:
ReactivePermissionDefinitionService<T>

public abstract class AbstractReactivePermissionDefinitionService<T extends PermissionDefinition> extends Object implements ReactivePermissionDefinitionService<T>
Since:
1.0
Author:
CJ (power4j@outlook.com)
  • Constructor Details

    • AbstractReactivePermissionDefinitionService

      public AbstractReactivePermissionDefinitionService()
  • Method Details

    • getPermissionDefinition

      public reactor.core.publisher.Mono<List<T>> getPermissionDefinition(String serviceName, org.springframework.http.HttpMethod method)
      Description copied from interface: ReactivePermissionDefinitionService
      获取权限信息
      Specified by:
      getPermissionDefinition in interface ReactivePermissionDefinitionService<T extends PermissionDefinition>
      Parameters:
      serviceName - 服务名
      method - 接口方法
      Returns:
      无权限信息返回空集合
    • loadFromCache

      @Nullable protected List<T> loadFromCache(String serviceName, org.springframework.http.HttpMethod method)
    • updateCache

      protected void updateCache(String serviceName, org.springframework.http.HttpMethod method, List<T> data)
    • removeCache

      protected void removeCache(String serviceName, org.springframework.http.HttpMethod method)
    • removeCache

      protected void removeCache(String serviceName)
    • fetch

      protected abstract reactor.core.publisher.Mono<List<T>> fetch(String serviceName, org.springframework.http.HttpMethod method)
      获取数据
      Parameters:
      serviceName -
      method -
      Returns:
      无数据返回 empty
    • getCache

      protected abstract Optional<org.springframework.cache.Cache> getCache()
      Cache
      Returns:
      返回empty表示关闭缓存