Spring security  and @PostFilter
i have this object

<code>
@Service
public class myBr {

   @PostFilter("filterObject.cellule.getId()==2")
   public List<Bibliotheque> getB() {
	    return super.getAll();
    }
	
	
    public List<Bibliotheque> getA() {
        return getB();
    }

</code>

When i call from a test :

myBr.getB() the @PostFilter is applied
but when i call myBr.getA() , this method is calling getB() the postfilter is not working.


is there a way to handle this ?

Regards
Spring security  and @PostFilter
===

i have this object

<code>
@Service
public class myBr {

   @PostFilter("filterObject.cellule.getId()==2")
   public List<Bibliotheque> getB() {
	    return super.getAll();
    }
	
	
    public List<Bibliotheque> getA() {
        return getB();
    }

</code>

When i call from a test :

myBr.getB() the @PostFilter is applied
but when i call myBr.getA() , this method is calling getB() the postfilter is not working.


is there a way to handle this ?

Regards