All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.gc.aafc.dina.security.auth.PermissionAuthorizationService Maven / Gradle / Ivy

The newest version!
package ca.gc.aafc.dina.security.auth;

import ca.gc.aafc.dina.security.spring.SecurityChecker;

import javax.inject.Inject;
import java.util.Set;

/**
 * Authorization service that can return the permissions for an object. Extend this service to enable.
 */
public abstract class PermissionAuthorizationService implements DinaAuthorizationService {

  @Inject
  public SecurityChecker checker;

  @Override
  public Set getPermissionsForObject(Object target) {
    return checker.getPermissionsForObject(target, this);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy