hi all,

forgot to mention that the custom CollectionProxy class must provide a constructor with the same signature as ListProxy does:

public MyCustomCollectionProxy(PBKey aKey, Class aCollClass, Query aQuery)
...

jakob


Jakob Braeuchi wrote:

hi all,

the class to be used for CollectionProxy can now be configured in OJB.properties:

...
#----------------------------------------------------------------------------------------
# CollectionProxy class
#----------------------------------------------------------------------------------------
# The optional CollectionProxy entry defines the class to be used for CollectionProxies
# if this entry is null org.apache.ojb.broker.accesslayer.ListProxy is used for Lists
# and org.apache.ojb.broker.accesslayer.CollectionProxy for Collections
#
#CollectionProxyClass=
#
...

hth
jakob

Jakob Braeuchi wrote:

hi bill,

i'll hava a look at it.

jakob

V B Skrypnyk wrote:

Hello,

I woner if it would be difficult to provide a mechanism to specify a custom **collection** proxy in the <collection-descriptor> instead of the default provided CollectionProxy or ListProxy (or at least be able to change the default type in the OJB.properties). The reason is that I want to be able to enforce certain security rules in all my queries where I would join the requested collection query to a custom acl table and retrieve only permissable entries. I can easily achieve that using my own Reference proxies and enforce the rules in the business logic for free form user queries, but I also want to intercept all object relationship queries as well to make these security rules consistent.

--Bill.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to