28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.1.4 OData Security Considerations<br />

Enabling access to data by means of OData can create some security-related issues that you need to consider and<br />

address, for example, the data you want to expose, who can start the OData service, and so on.<br />

If you want to use OData to expose data to users and clients in <strong>SAP</strong> <strong>HANA</strong> application services, you need to bear<br />

in mind the security considerations described in the following list:<br />

● Data Access<br />

Restrict user select authorization for tables/views exposed by the OData service<br />

● OData Service<br />

Restrict authorization rights to start the OData service<br />

● OData Statistical content<br />

Restrict access to the URL/Path used to expose OData content in the Web browser<br />

8.1.5 Defining the Data an OData Service Exposes<br />

An OData service exposes data stored in database tables or views as OData collections for analysis and display by<br />

client applications. However, first of all, you need to ensure that the tables and views to expose as an OData<br />

collection actually exist.<br />

To define the data to expose using an OData service, you must perform at least the following tasks:<br />

1. Create a database schema.<br />

2. Create a simple database table to expose with an OData service.<br />

3. Create a simple database view to expose with an OData service.<br />

This step is optional; you can expose tables directly. In addition, you can create a repository view (for<br />

example, Analytic, Attribute, Calculation).<br />

4. Grant select privileges to the tables and views to be exposed with the OData service.<br />

8.1.6 Creating an OData Service Definition<br />

The OData service definition is a configuration file you use to specify which data (for example, views or tables) is<br />

exposed as an OData collection for analysis and display by client applications.<br />

An OData service for <strong>SAP</strong> <strong>HANA</strong> XS is defined in a text file with the file suffix .xsodata, for example,<br />

OdataSrvDef.xsodata. The file resides in the package hierarchy of the OData application and must contain at<br />

least the entry service {}, which would generate an operational OData service with an empty service catalog and<br />

an empty metadata file.<br />

Prerequisites for the creation of an OData service definition:<br />

● <strong>SAP</strong> <strong>HANA</strong> studio/client installed and configured<br />

● <strong>SAP</strong> <strong>HANA</strong> database user available with repository privileges (for example, to add packages)<br />

● A <strong>SAP</strong> <strong>HANA</strong> development system added to (and available in) <strong>SAP</strong> <strong>HANA</strong> studio, for example, in either the<br />

Navigator view or the <strong>SAP</strong> <strong>HANA</strong> Repositories view<br />

● A working development environment including a repository workspace, a package structure for your OData<br />

application, and a shared project to enable you to synchronize changes to the OData project files in the local<br />

file system with the repository<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Defining Web-based Data Access<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!