- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.2k
Closed
Labels
status: duplicateA duplicate of another issueA duplicate of another issue
Description
Summary
I plan to implement my own PermissionEvaluator, but the methods signatures don't allow me to use reactive types.
Actual Behavior
public class MyPermissionEvaluator implements PermissionEvaluator {
  @Override
  public boolean hasPermission(Authentication authentication, Object targetDomainObject, Object permission) {
    // db calls, so reactive return types
  }
  @Override
  public boolean hasPermission(Authentication authentication, Serializable targetId, String targetType, Object permission) {
    // db calls, so reactive return types
  }
}Expected Behavior
public class MyPermissionEvaluator implements PermissionEvaluator {
  @Override
  public Mono<Boolean> hasPermission(Authentication authentication, Object targetDomainObject, Object permission) {
    // db calls, so reactive return types
  }
  @Override
  public Mono<Boolean> hasPermission(Authentication authentication, Serializable targetId, String targetType, Object permission) {
    // db calls, so reactive return types
  }
}Version
5.0.2.RELEASE
Metadata
Metadata
Assignees
Labels
status: duplicateA duplicate of another issueA duplicate of another issue