You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Daniel Szegedi <ds...@gibmbh.de> on 2014/07/17 14:05:37 UTC

Pre-filtering an ODataService with Apache Olingo

Hi all,

I have implemented an ODataService, generated by a Service-Factory class, which uses JPA-Entities like in the tutorial in the documentation (persistenceUnitName). Additionally I realized a Basic User Authentication. Now I want to pre-filter the ODataService so that the user only sees the data, he is allowed to see (filter criteria should be the userId). Is that possible? The aim is, that the ServiceFactory generates the ODataService, which fits to the user (the ODataService should only contain data, where the userId fits).

Thanks in advance for any kind of tips.

Mit engagierten Grüßen / best regards

i. A. Daniel Szegedi
Developer New-Technology
--------------------------------------------------------------------------
G.I.B Gesellschaft für Information und Bildung mbH
Birlenbacher Str. 18 - TECHNOLOGIEZENTRUM -
D-57078 Siegen

Tel. :   +49 271 89038 0
Fax :   +49 271 89038 99
Web: www.gibmbh.de <http://www.gibmbh.de>


Sitz der Gesellschaft: Siegen; Amtsgericht Siegen HR B 3920
Geschäftsführer: Michael Schuster

SAP Business Partner + SAP  Service Partner + SAP Software Partner

  
Der Inhalt dieser Nachricht ist vertraulich und nur für den angegebenen Empfänger bestimmt. Jede Form der
Kenntnisnahme oder Weitergabe durch Dritte ist unzulässig. Sollte diese Nachricht nicht für Sie bestimmt sein,
so bitten wir Sie, sich mit uns per E-Mail oder telefonisch in Verbindung zu setzen und alle  Kopien zu vernichten.
Vielen Dank

This message is confidential and may be privileged, and maybe not used or disseminated by anyone other than
the intended recipient. If received in error, please notify the sender immediately, and destroy all copies. Thank you.

RE: Pre-filtering an ODataService with Apache Olingo

Posted by "V.A, Chandan" <ch...@sap.com>.
Hello Daniel,
Please see the attached email. There was a similar discussion in line with your below query. Unfortunately :( the discussion did not go further. I would like to revive this discussion once again. If you are ok with the solution proposed please create a JIRA ticket @- https://issues.apache.org/jira/browse/OLINGO , and we can go ahead in introducing this feature in JPA processor library.

Thanks,
Kind Regards
Chandan VA

From: Bolz, Michael [mailto:michael.bolz@sap.com]
Sent: Wednesday, July 23, 2014 12:30 PM
To: user@olingo.apache.org; chandanva@apache.org
Subject: Re: Pre-filtering an ODataService with Apache Olingo

* PGP - S/MIME Signed by an unverified key: 7/23/2014 at 12:29:53 PM
Hi Daniel,

Unfortunately I can only explain how to realize such a use case with an own "Processor" implementation (and then without the JPA Service Factory).
But perhaps Chandan as expert for the JPA extension can help here.
@Chandan: Can you please assist  ;o)

Kind regards,
Michael

From: Daniel Szegedi <ds...@gibmbh.de>>
Reply-To: "user@olingo.apache.org<ma...@olingo.apache.org>" <us...@olingo.apache.org>>
Date: Donnerstag, 17. Juli 2014 14:05
To: "user@olingo.apache.org<ma...@olingo.apache.org>" <us...@olingo.apache.org>>
Subject: Pre-filtering an ODataService with Apache Olingo

Hi all,

I have implemented an ODataService, generated by a Service-Factory class, which uses JPA-Entities like in the tutorial in the documentation (persistenceUnitName). Additionally I realized a Basic User Authentication. Now I want to pre-filter the ODataService so that the user only sees the data, he is allowed to see (filter criteria should be the userId). Is that possible? The aim is, that the ServiceFactory generates the ODataService, which fits to the user (the ODataService should only contain data, where the userId fits).

Thanks in advance for any kind of tips.

Mit engagierten Gr��en / best regards

i. A. Daniel Szegedi
Developer New-Technology
--------------------------------------------------------------------------
G.I.B Gesellschaft f�r Information und Bildung mbH
Birlenbacher Str. 18 - TECHNOLOGIEZENTRUM -
D-57078 Siegen

Tel. :   +49 271 89038 0
Fax :   +49 271 89038 99
Web: www.gibmbh.de <http://www.gibmbh.de>





Sitz der Gesellschaft: Siegen; Amtsgericht Siegen HR B 3920
Gesch�ftsf�hrer: Michael Schuster

SAP Business Partner + SAP  Service Partner + SAP Software Partner

Der Inhalt dieser Nachricht ist vertraulich und nur f�r den angegebenen Empf�nger bestimmt. Jede Form der Kenntnisnahme oder Weitergabe durch Dritte ist unzul�ssig. Sollte diese Nachricht nicht f�r Sie bestimmt sein, so bitten wir Sie, sich mit uns per E-Mail oder telefonisch in Verbindung zu setzen und alle  Kopien zu vernichten. Vielen Dank

This message is confidential and may be privileged, and maybe not used or disseminated by anyone other than the intended recipient. If received in error, please notify the sender immediately, and destroy all copies. Thank you.
* D046871 <mi...@sap.com>>
* Issuer: SAP-AG - Unverified


Re: Pre-filtering an ODataService with Apache Olingo

Posted by "Bolz, Michael" <mi...@sap.com>.
Hi Daniel,

Unfortunately I can only explain how to realize such a use case with an own
"Processor" implementation (and then without the JPA Service Factory).
But perhaps Chandan as expert for the JPA extension can help here.
@Chandan: Can you please assist  ;o)

Kind regards,
Michael

From:  Daniel Szegedi <ds...@gibmbh.de>
Reply-To:  "user@olingo.apache.org" <us...@olingo.apache.org>
Date:  Donnerstag, 17. Juli 2014 14:05
To:  "user@olingo.apache.org" <us...@olingo.apache.org>
Subject:  Pre-filtering an ODataService with Apache Olingo

Hi all,
 
I have implemented an ODataService, generated by a Service-Factory class,
which uses JPA-Entities like in the tutorial in the documentation
(persistenceUnitName). Additionally I realized a Basic User Authentication.
Now I want to pre-filter the ODataService so that the user only sees the
data, he is allowed to see (filter criteria should be the userId). Is that
possible? The aim is, that the ServiceFactory generates the ODataService,
which fits to the user (the ODataService should only contain data, where the
userId fits).
 
Thanks in advance for any kind of tips.
 
Mit engagierten Grüßen / best regards
   
i. A. Daniel Szegedi
Developer New-Technology
--------------------------------------------------------------------------
G.I.B Gesellschaft für Information und Bildung mbH
Birlenbacher Str. 18 - TECHNOLOGIEZENTRUM -
D-57078 Siegen  
   
Tel. :   +49 271 89038 0
Fax :   +49 271 89038 99
Web: www.gibmbh.de  <http://www.gibmbh.de>


 

Sitz der Gesellschaft: Siegen; Amtsgericht Siegen HR B 3920
Geschäftsführer: Michael Schuster

SAP Business Partner + SAP  Service Partner + SAP Software Partner

Der Inhalt dieser Nachricht ist vertraulich und nur für den angegebenen
Empfänger bestimmt. Jede Form der Kenntnisnahme oder Weitergabe durch Dritte
ist unzulässig. Sollte diese Nachricht nicht für Sie bestimmt sein, so
bitten wir Sie, sich mit uns per E-Mail oder telefonisch in Verbindung zu
setzen und alle  Kopien zu vernichten. Vielen Dank

This message is confidential and may be privileged, and maybe not used or
disseminated by anyone other than the intended recipient. If received in
error, please notify the sender immediately, and destroy all copies. Thank
you.