ca.gc.aafc.dina.security.DinaAdminOnlyAuthorizationService Maven / Gradle / Ivy
package ca.gc.aafc.dina.security;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
@Service
public class DinaAdminOnlyAuthorizationService implements DinaAuthorizationService {
@Override
@PreAuthorize("hasDinaRole(@currentUser, 'DINA_ADMIN')")
public void authorizeCreate(Object entity) {
}
@Override
@PreAuthorize("hasDinaRole(@currentUser, 'DINA_ADMIN')")
public void authorizeUpdate(Object entity) {
}
@Override
@PreAuthorize("hasDinaRole(@currentUser, 'DINA_ADMIN')")
public void authorizeDelete(Object entity) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy