We use a thread local to store the organization of our user, and have
custom createCriteria() methods in our DAO's to add restrictions on
the organization.

Martijn

On Tue, Oct 20, 2009 at 10:14 PM, Roman Ilin <[email protected]> wrote:
> Hi *,
>
> I develop WebApplication where database records belong to different
> organizations.
> I use AjaxFallbackDefaultDataTable to present tabular data. User from
> some organization is allowed to see his organization data only.
> To reach this I implement custom IDataProvider for every table.
>
> Is there some way to have generic IDataProvider which constraints
> shown data rows.
> Pagination and sorting, filtering of data should work as well :)
>
> I have the same problem with DropDownChoice. There choices depend on
> logged in user/organization.
>
> I read Wicket Security Wasp/Swarm tutorials but haven't found this
> functionality there.
> You can have secure model but you can't restrict list of models.
>
> Or I'm wrong?
>
>
> Regards
>
> Roman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to