Hi,
I was testing Spring Acegi Security's AfterInvocationProviderManager which deals with domain object instance security (ACL).
With ibatis caching enabled and queryForList(), I realised that returned result list was the actual cached list.
With AfterInvocationProviderManager performing object filtering of the returned list, unauthorised objects in the returned list were removed. Which means the objects were actually removed from the cached list. Subsequent invocations of the same queryForList() would return a smaller list.
Is there any way to configure ibatis to return a copy of the cached list instead of the actual cached list?
My current workaround is to return a shallow copy of the cached list.
Thanks,
Eric
I was testing Spring Acegi Security's AfterInvocationProviderManager which deals with domain object instance security (ACL).
With ibatis caching enabled and queryForList(), I realised that returned result list was the actual cached list.
With AfterInvocationProviderManager performing object filtering of the returned list, unauthorised objects in the returned list were removed. Which means the objects were actually removed from the cached list. Subsequent invocations of the same queryForList() would return a smaller list.
Is there any way to configure ibatis to return a copy of the cached list instead of the actual cached list?
My current workaround is to return a shallow copy of the cached list.
Thanks,
Eric
What will the world find in 2020?
Leave a part of your 2006 in the Yahoo! Time Capsule. Contribute now!
