Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Suggestions for approaches to security and queries?

Yes, you can pass parameters to additional criteria based on the role. Also, when using multitenancy, tenants can set per entity manager. Both additional criteria parameters and tenants are set/specified through properties on the entity manager.

Hope that helps.

Cheers,
Guy

On 30/06/2011 10:59 AM, Laird Nelson wrote:
On Thu, Jun 30, 2011 at 10:38 AM, Guy Pelletier <guy.pelletier@xxxxxxxxxx> wrote:
Have a look at @AdditionalCriteria or our @Multitenant solution.
http://wiki.eclipse.org/EclipseLink/Development/AdditionalCriteria

Excellent!  That's a good starting point.

Is there a way to apply this dynamically?  For example, if a user is in a particular role, different additional criteria might need to be specified.

Also, what does the "this" refer to?  The query itself, or the entity in question (I'm assuming the latter)?

Best,
Laird

_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top