Class BackendPermissionsEvaluator

java.lang.Object
es.samfc.learning.backend.security.permissions.BackendPermissionsEvaluator
All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean, org.springframework.security.access.PermissionEvaluator

public class BackendPermissionsEvaluator extends Object implements org.springframework.security.access.PermissionEvaluator
  • Constructor Details

    • BackendPermissionsEvaluator

      public BackendPermissionsEvaluator(PlayerService playerService)
  • Method Details

    • hasPermission

      public boolean hasPermission(org.springframework.security.core.Authentication authentication, Object targetDomainObject, Object permission)
      Specified by:
      hasPermission in interface org.springframework.security.access.PermissionEvaluator
    • hasPermission

      public boolean hasPermission(org.springframework.security.core.Authentication authentication, Serializable targetId, String targetType, Object permission)
      Specified by:
      hasPermission in interface org.springframework.security.access.PermissionEvaluator