ca.gc.aafc.dina.security.auth.DinaAdminCUDAuthorizationService 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
The newest version!
package ca.gc.aafc.dina.security.auth;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
@Service
public class DinaAdminCUDAuthorizationService extends PermissionAuthorizationService {
@Override
@PreAuthorize("hasDinaRole(@currentUser, 'DINA_ADMIN')")
public void authorizeCreate(Object entity) {
}
@Override
public void authorizeRead(Object entity) {
}
@Override
@PreAuthorize("hasDinaRole(@currentUser, 'DINA_ADMIN')")
public void authorizeUpdate(Object entity) {
}
@Override
@PreAuthorize("hasDinaRole(@currentUser, 'DINA_ADMIN')")
public void authorizeDelete(Object entity) {
}
@Override
public String getName() {
return "DinaAdminCUDAuthorizationService";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy