ca.gc.aafc.dina.security.auth.PermissionAuthorizationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
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