Announcement Announcement Module
Collapse
No announcement yet.
Use ProxyFactoryBean programmatically Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use ProxyFactoryBean programmatically

    Hi there!
    Is it possible to use the ProxyFactoryBean programmtically?
    I have to write an "DB Entity Interceptor": A proxy should filter entities by security aspects (e.g. User A is not allowed to see Entity B -> remove it from search results).
    The methodinterceptor is generated and when for example "listB"-Method is called, the ProxyBeanFactory intercepts the call, delegates to the interceptor. The interceptor checks then the security permissions.
    However, I am not so sure, how I can surpass my MethodInterceptor to the ProxyBeanFactory and how to get the Proxy-Object from it. Any idea?

    Or do you know another workaround for my problem?

    Thanks!
Working...
X