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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Related Links<br />

Note:<br />

○ The technical name used for an attribute view attribute is /$. Hence, in the above example, the technical name for<br />

CUST_ID is mypackage/CUSTOMER$CUST_ID. This implies that if there is any other<br />

attribute view “STORE” which is a part of the analytic privilege and has CUST_ID as its<br />

attribute, it will not get restricted.<br />

○ Any analytic view that is part of the privilege’s secured list of models and has this attribute<br />

view as its required object, gets restricted using the technical name. In the example<br />

above, if an analytic view contains the attribute views CUSTOMER and STORE, both<br />

CUST_ID attributes are handled independently, because their internal technical name<br />

used for the privilege check are mypackage/CUSTOMER$CUST_ID and<br />

myotherpackage/STORE$UST_ID.<br />

○ If Applicable to all information models is selected, any analytic view (even if not part of the<br />

secured models) having this attribute view as its required object, also gets restricted.<br />

Structure of Analytic Privileges [page 332]<br />

An analytic privilege consists of a set of restrictions against which user access to a particular attribute view,<br />

analytic view, or calculation view is verified. Each restriction controls the authorization check on the restricted<br />

view using a set of value filters. A value filter defines a check condition that verifies whether or not the values<br />

of the view (or view columns) qualify for user access.<br />

Runtime Authorization Check of Analytic Privileges [page 337]<br />

When a user requests access to data stored in an attribute, analytic, or calculation view, an authorization<br />

check based on analytic privileges is performed and the data returned to the user is filtered accordingly.<br />

Access to a view and the way in which results are filtered depend on whether the view is independent or<br />

associated with other modeling views (dependent views).<br />

Dynamic Value Filters in the Attribute Restriction of Analytic Privileges [page 336]<br />

The attribute restriction of an analytic privilege specifies the value range that the user is permitted to access<br />

using value filters. In addition to static scalar values, stored procedures can be used to define filters. This<br />

allows user-specific filter conditions to be determined dynamically in runtime, for example, by querying<br />

specified tables or views. As a result, the same analytic privilege can be applied to many users, while the filter<br />

values for authorization can be updated and changed independently in the relevant database tables. In<br />

addition, application developers have full control not only to design and manage such filter conditions, but also<br />

to design the logic for obtaining the relevant filter values for the individual user at runtime.<br />

Creation and Management of Analytic Privileges [page 338]<br />

Analytic privileges can be created, dropped, and changed in the <strong>SAP</strong> <strong>HANA</strong> modeler and using SQL<br />

statements. The <strong>SAP</strong> <strong>HANA</strong> modeler should be used in all cases except if you are creating analytic privileges<br />

that use dynamic procedure-based value filters.<br />

Example: Creating an Analytic Privilege with Dynamic Value Filter [page 339]<br />

This example shows you how to create an analytic privilege that contains a dynamic procedure-based value<br />

filter and a fixed value filter in the attribute restriction.<br />

344<br />

P U B L I C<br />

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

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

Setting Up Roles and Authorizations

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

Saved successfully!

Ooh no, something went wrong!