Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Texo] Restricting queries to users
[Texo] Restricting queries to users [message #1694088] Thu, 30 April 2015 13:06 Go to next message
Mr Cur is currently offline Mr CurFriend
Messages: 31
Registered: September 2014
Member
In Texo, is it possible to:
1) login users somehow (present them first a login dialogue,
and thereafter grant access to JSONTexo)
2) and then restrict the allowed queries per user?

The Texo wiki hints to a facility to restrict queries.

Thanks.

-- Cur

Re: [Texo] Restricting queries to users [message #1694164 is a reply to message #1694088] Fri, 01 May 2015 09:37 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Cur,
This is not covered in Texo because authentication and authorization are often very specific functionalities which are
difficult to generalize.

But you can easily extend Texo to add this functionality yourselve. Texo has a simple component concept which allows you
to replace Texo internals with your own class. The best approach is to extend the Texo class you want to replace and add
your own custom logic:
https://wiki.eclipse.org/Texo/Components

Classes you could extend are for example:
JSONRestWebServiceHandler
JSONRestWebServiceServlet (and set your own servlet mapping)

Or create your own servlet which manages authentication which calls the webservice handler.

To restrict allowed queries you can extend the EntityManagerObjectStore and add your own custom code when it is called
to query for data. Then set your class as the component to be used by Texo in place of the EntityManagerObjectStore.

gr. Martin

On 30-04-15 15:06, Mr Cur wrote:
> In Texo, is it possible to:
> 1) login users somehow (present them first a login dialogue,
> and thereafter grant access to JSONTexo)
> 2) and then restrict the allowed queries per user?
>
> The Texo wiki hints to a facility to restrict queries.
>
> Thanks.
>
> -- Cur
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:[Edapt] Create a History programmatically
Next Topic:[EMF Forms] Databinding does not work for XMLResource based model element
Goto Forum:
  


Current Time: Thu Sep 24 13:45:02 GMT 2020

Powered by FUDForum. Page generated in 0.02152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top