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.

● Activity<br />

● Validity<br />

● Attribute<br />

The following operators can be used to define value filters in the restrictions.<br />

Note: The activity and validity restrictions support only a subset of these operators.<br />

● IN <br />

● CP <br />

● EQ (=), LE (=) <br />

● BT <br />

● IS_NULL<br />

● NOT_NULL<br />

All of the above operators, except IS_NULL and NOT_NULL, accept empty strings (“”) as filter operands.<br />

The following are examples of how empty strings can be used with the filter operators:<br />

● For the IN operator: IN (“”, “A”, “B”) to filter on these exact values<br />

● As a lower limit in comparison operators, such as:<br />

○ BT (“”, “XYZ”), which is equivalent to NOT_NULL AND LE “XYZ”<br />

○ GT “”, which is equivalent to NOT_NULL<br />

○ LE “”, which is equivalent to EQ “”<br />

○ LT “”, which will always return false<br />

○ CP “”, which is equivalent to EQ “”<br />

The filter conditions CP “*” will also return rows with empty-string as values in the corresponding attribute.<br />

View Restriction<br />

This restriction specifies to which column view(s) the analytic privilege applies. It can be a single view, a list of<br />

views, or all views. An analytic privilege must have exactly one cube restriction.<br />

Example: IN ("Cube1", "Cube2")<br />

Note: When an analytic view is created in the <strong>SAP</strong> <strong>HANA</strong> modeler, automatically-generated views are<br />

included automatically in the cube restriction.<br />

Activity Restriction<br />

This restriction specifies the activities that the user is allowed to perform on the restricted view(s), for example,<br />

read data. An analytic privilege must have exactly one activity restriction.<br />

Example: EQ "read", or EQ "edit"<br />

Note: Currently, all analytic privileges created in the <strong>SAP</strong> <strong>HANA</strong> modeler are automatically configured to<br />

restrict access to READ activity only. This corresponds to SQL SELECT queries. This is due to the fact that<br />

the attribute, analytic, and calculation views are read-only views. This restriction is therefore not<br />

configurable.<br />

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

Setting Up Roles and Authorizations<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!