@Service public class ProductService { /** * @PreAuthorize -> the authorization rules are validated before calling the protected method * @PostAuthorize -> the method is called, and only then the aspect validates the authorization rules. * * @PreFilter -> the method needs to have the parameter of type Collection or array * -> the aspects intercepts the method call and validated the values inside..