[
https://issues.jboss.org/browse/TEIIDDES-1548?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-1548:
----------------------------------------
Currently my UI treats condition and mask elements as independent except that they may
reference the same column. In order to tweak the UI, I'd need more definition on the
relationship/use-case?
Question: Are there limitations on what columns can have condition and/or mask? If
Permission for column_A is currently allow-read == FALSE?
Add GUI handling for permission conditions
------------------------------------------
Key: TEIIDDES-1548
URL:
https://issues.jboss.org/browse/TEIIDDES-1548
Project: Teiid Designer
Issue Type: Feature Request
Reporter: Steven Hawkins
Assignee: Barry LaFond
Fix For: 8.2
Attachments: add-allowed-language-dialog.png, add-column-mask-dialog.png,
add-row-based-security-dialog.png, allowed-languages-tab.png, column-mask-tab.png,
row-based-security-tab.png
A common request is to implement row based security. Teiid has added the ability to
define a permission condition for this purpose:
<permission>
<resource-name>...</resource-name>
<condition>sql</condition>
...
</permission>
The sql should resolve against the resource specified, ideally designer would check that
as well.
See TEIID-2311 and the reference for how these conditions are applied.
{code:title=vdb.xml snippet}
<data-role name="base-role" any-authenticated="true">
<description>Conditional access</description>
<permission>
<resource-name>modelName.tblName</resource-name>
<condition
constraint="false">column1=user()</condition>
</permission>
</data-role>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira