How to implement authorisation on table columns
Can anyone suggest a smart way to use Weblogic platform capabilities to implement
a table column security/authorisation "control". ie. control on a column by column
basis who can view or update a column? Scenario - a primary data owner "owns"
a set of records in a database, but would like to give (or delegate) selected
access to groups of users to view and/or update the content of certain fields
in the recordset.
Seems like this is probably not that uncommon a requirement but can't seem to
find any design patterns for this.
Dean Tine wrote:
Can anyone suggest a smart way to use Weblogic platform capabilities to implement
a table column security/authorisation "control". ie. control on a column by column
basis who can view or update a column? Scenario - a primary data owner "owns"
a set of records in a database, but would like to give (or delegate) selected
access to groups of users to view and/or update the content of certain fields
in the recordset.
Seems like this is probably not that uncommon a requirement but can't seem to
find any design patterns for this.The first question is, if you are going through an application server
why do you need to do anything clever at all? You can check the role of
authenticated users and grant or deny access based on that (i.e. some
dynamically generated SQL dependent on role)?
If you really need support at the DBMS level, you can use SQL VIEWs.
Create a view containing the appropriate columns and grant permissions
to that view to the appropriate users. With an app server you will need
multiple connection pools though and it quickly gets messy.
Alternatively use stored procedures. Depending on your DBMS this might
be required (if views aren't updatable) or could give better
performance. Or worse performance.
Robert
Similar Messages
-
How to deselect a select table column?
Hi!
I've implemented a table with selectable columns.
This is working fine, but I'm not clear how to deselect the selected table column with code.
How to do so?
Thanks for any hints!
PeterHi Peter,
Try this code
DATA lo_el_element TYPE REF TO if_wd_context_element.
* Make row selected
lo_el_element->set_selected( abap_true ).
* Make row De-selected
lo_el_element->clear_selection( ).
Hope you get the hint.
Regards
Nawal Kishor Mittal -
UIX: How to add linked view table columns to the Read-only table
Hi
I have two tables
T1: ID, STAFF_ID, NOTE
T2: STAFF_ID, USERNAME
I have created corresponding entity objects (E1, E2), views (V1, V2), association A(E1->E2 as *..1 using STAFF_ID) and viewlink VL(V1->V2 as *..1 using association A).
My model in AppModule looks like
V1
----V2 via VL
Now I have single UIX page in which I drop V1 as Read-only table. The table displays columns correctly: ID, STAFF_ID, NOTE
What I want is to add a column STAFF_ID from the V2 into this table. I have tried to drop it into the table but when the page is run it does not display anything in that column. It has to do something with binding.
I have done similar test with dropping V1 as read-only FORM and then added STAFF_ID from V2 as messageTextInput and everything is rendered correctly.
Anyone knows how to do the same thing but with table?Yes that is true but I would like to give another example where this may not apply.
Say I have 3 tables
CLIENT(INDIVIDUAL_ID,...)
ADDRESS(ADDRESS_ID,...)
ADDRESS_HISTORY(ADDRESS_ID, INDIVIDUAL_ID,BEST_ADDRESS)
where ADDRESS_HISTORY is intersection table in CLIENT to ADDRESS many to many relationship.
Suppose I have VO2 that consists of ADDRESS and ADDRESS_HISTORY entities (corresponding association exists) and user needs to add new address for the selected customer in VO1 (made from CLIENT entity). There are several issues here:
1) An input form made out of VO2 must contain an entry for BEST_ADDRESS flag but since it will be read-only, seems that this approach may not work. However, I found a post re:Updating view objects with multiple entities that provides workaround this.
2) In that case assume that I use DBSequence to automatically add ADDRESS_ID when user inputs new record in this input form. I am using DB Trigger on ADDRESS table and have selected ADDRESS_ID in ADDRESS entity as DBSequence. Now observe that VO2 would contain another ADDRESS_ID from ADDRESS_HISTORY entity which has to be automatically populated with the same value. How?
In a nutshell my question relates to the problem how to automatically populate intersection table when new record is added to the detail. But the trick is that some attributes of the intersection table must be inserted by the user in the form..
Please advise -
How to insert & in a table column
Dear all,
How can I insert & in a table column
create table test(det varchar2(2));
In this table I want to insert & symbol.
How can I insert & symbol inthis table.
ThanksYou should use:
SQL> set define offto switch off the "&" symbol as the defined subsitution variable character.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch8.htm#sthref1566
then use:
SQL> set define &to turn it back on again. -
How to reference Item with Table Column
Hi Community,
we want to reference Table Column with an Item. This Item is a Select-List wich includes a Date. Befor doing something, you have to select this date. After that we want to create a new row in with a date-column. This date should be the same as in this Item. We are using a tool which is called HTML-DB. We reached that there is shown the date, but there is no value. It is an updateable report row.
How can we copy this value from the Item in this new column?
I am sorry for my english, but I hope everyone understands our problem.
Greez RobI did it another way. We are using an old HTML DB version (v1.6). And I think it is a bug to reference a date with a column. I have this opinion because we copied the table but we changed the format. we are using varchar instead of date, and it is working without problems.
We also tried &px_name and it didn't work.
Thx anyway! -
How to find real owner.table.column in a view
This seems pretty easy but I haven't been able to locate a way using the dba_views or all_views to pinpoint the exact owner.table.column that a given view column is based on.
I can retrieve the text of the view from dba_views, but I don't see something like all_tab_columns that has a second set of owner, table and column_name columns to show what the underlying column in a view is.
e.g. create me.view zz as select a.acp,b.acno from tom.tab1 a, fred.tab2 b where a.key = b.key
desc me.zz
acp varchar2(4)
acno number
Now I would like to select something like the following from all_tab_columns:
select column_name,orig_owner, orig_table, orig_column from all_tab_columns where owner = 'ME' and table_name = 'ZZ'
acp tom tab1 acp
acno fred tab2 acno
Does such a view exist to extract this information?Robert,
By hosed do you mean there is no way to get this information from an Oracle view? I'm not sure what you mean by sys.all_views.owner, that just tells the owner of the view itself, not the owner.table.column of each column in the view. If the view is all based on a single table then obviously I can figure out the information, but many/most views join several tables, even from different schemas.
What I am looking for is the equivalent of all_view_columns which has view column information as well as the base table owner.table.column. -quinn -
How to save and retrive table column values added via view enhancement
Hi,
I want to enhance standard webdynpro component FITE_VC_REVIEW.
I want to add new column to Fight Info Table and also to Hotel Info table.I can do UI changes via view enhancement .
First Approach: I add new fields to Flight Info and Hotel Info structure.
Create an additional Coolum in Flight Info and Hotel Info Table and Bind it to newly created field in structures.
Question :
What all changes I have to make to save and retrieve values from database table.
Kindly guide with Steps
Second Approach: I create a new table/structure for my requirement and bind table column to these fields.
Question:
What all changes I have to make to save and retrieve values from database table.
Kindly guide with Steps
And which approach will be good.
Regards,
Madhvikano ans yet
-
How to save and retrieve table column values added via view enhancement
Hi,
I want to enhance standard webdynpro component FITE_VC_REVIEW.
I want to add new column to Fight Info Table and also to Hotel Info table.
First Approach: I add new fields to Flight Info and Hotel Info structure.
Create an additional Coolum in Flight Info and Hotel Info Table and Bind it to newly created field in structures.
Question
What all changes I have to make to save and retrieve values from database table.
Kindly guide with Steps
Second Approach: I create a new table/structure for my requirement and bind table column to these fields.
Question:
What all changes I have to make to save and retrieve values from database table.
Kindly guide with Steps
And which approach will be good.
Regards,
Madhvika
Moderator message: please have a look in the dedicated "Web Dynpro ABAP" forum.
Edited by: Thomas Zloch on Feb 16, 2011 3:02 PMno ans yet
-
How to get only selected table columns from a DB table to be display in pag
hi i have some 18 columns in my database table, but i need to add only the selected columns to be added to my table component. How can i do it. any idea regarding this. Please help me out to solve this problem.
Thank You in Adavnce.This is an ambiguous question but I will give 2 answers for 2 interpretations
1 In the Outline window, right-click the rowset in the Session bean (or whatever bean you put the rowset in, by default it is the session bean). In the top pane, select or clear the checkboxes to determine which columns are obtained by the query.
2 Right click the Table component and choose Table Layout, move the columns you don't want to the left panel
Resources: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents.html
If you meant a different question, please clarify -
Hi,
I'm trying to create a link column in a table by declaring one column as link type and set its linkColumnKey to another column which contains the actual text of the http URL. I'd like to hide the second column in the table. How do I do that? One of the posts I found said that I can set the column type to USER and an empty title, then the column won't be displayed since I don't have a renderer. However, the column still gets displayed.
Any help would be appreciated.
Thanks,
JennyTry this
this.model.getColumn("col1").setType(TableColumnType.LINK);
this.model.getColumn("col1").setLinkClickTarget("_blank"); //to open in new win
this.model.getColumn("col1 Opportunities").setLinkColumnKey("col2"); -
How to implement row span and column span in JTable.
Hi,
How do we implement Col span and row span in JTable as in Html.
Kindly help.
Thank YouAlthough I suppose you could extend JTable to support column and row spans, this would involve a lot of of work and quite a few hacks. I think you will be better off either creating a new custom JComponent with an appropriate model for this purpose or using an existing solution such as [JIDE Grids|http://www.jidesoft.com/products/grids.htm] which includes a CellSpanTable.
-
Web Dynpro ABAP: How to do checkboxes in table column?
Hi,
In Web Dynpro for ABAP, I have a table, where one column consists of check boxes, and the user should be able to check some boxes in some lines. In the context of my view, I created a node tied to a DDIC structure, with some attributes. The attribute where I want to see the checkboxes is of type boolean. In the layout I create an element of type table. Then I create the binding to the context node and for the columns I use cell editor of the appropriate type, that is, checkbox. However, when I test my application, there are no checkboxes at all. What am I doing wrong?
Thanks,
Ira>
Jenny Karunakaran wrote:
> Hi Jung,
>
> Thanks for the reply. But I dont know how to assign value set to this attribute(i.e. Context atribute to which filter value property is bound). Can I use a supply function for this ?
>
>
> Regards,
> Jenny
No. A value set and a supply function are two completely different things. You use this Context API to populate the value set for an attribute:
IF_WD_CONTEXT_NODE_INFO=>SET_ATTRIBUTE_VALUE_SET
Value Sets are also how ByKey UI elements (like the DropDownByKey) are built. Here is a help document that discusses value sets - but in the context of the ByKey UI elements. The process is the same for creating the value set however:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm -
Can anyone describe how to cut and paste table columns in Data Modeler?
A number of times I have tried using the copy and paste columns functionality in Data Modeler, but in all circumstances when I've copied a set of columns from a table (by highlighting the column set and pressing the copy columns button), opened a new table, and pressed the paste columns at the end button, nothing has happened. is there some unintuitive thing that I need to do?
Ok, thanks.
I see I left "Copy" out of the first reply I sent.
1. Create a table or tables, say tables A and B.
2. Expand the table which has the columns you want to copy, say table A, in the browser
3. Shift (or ctrl) select the columns and select COPY from the context menu.
4. Click in the table you want to copy to, say table B, in the diagram and right-click to use the context menu , select paste
or select the table B in the browser and right-click, select paste.
Are you using the copy in the menu?
There was a bug in our Early Adopter that required you continued to hold the keys, but this has been addressed - you can read this thread to see how things were handled there: Re: Data Model: set of columns -
How to find out the table column that is required for index
hi all,
i want to the column required for index in one schema.
what are the ways to achieve the same.To know what columns to index you must, not should, but must, know your data, know how it will be used, and know how your WHERE clause filters will affect how the data is accessed.
Building indexes based on some rule is a waste of CPU, disk i/o, and space.
To build indexes that enhance rather than degrade a system requires research and the use of explain plan reports generated with DBMS_XPLAN.
http://www.morganslibrary.org/library.html -
How to find out which table/column is causing an error
Oracle database 10gR1.
Whiling running a process in a commercial software, I got an error "ORA-01858 A non-numeric character was found where a numeric was expected".
Are there anyway I can check the log file in the database to find out exactly which table/field is throwing this kind error?
Thanks.Are there anyway I can check the log file in the database to find out exactly which table/field is throwing this kind error?This is an application error & is not logged by Oracle by default in alert_SID.log
Maybe you are looking for
-
Error while deleting the Data Source
Hi gurus, I am getting an error while deleting a Data Source - "Source system XXXXX not found RSAR205". but that source system no more available. Is there any way to delete the Data Source. Thanks in advance. CK.
-
PSE7 for Mac crashes as soon as I try to open it.
My PSE7 has been working perfectly, and I went to open it a few days ago and it crashed as soon as I tried to open it. The blue screen comes up and then an error message appears that says: The application Photoshop Elements quit unexpectedly. I've
-
My contacts wont sync with my macbook pro, what do I do?
Specifically my iMessages. I have the app Messages on my mac and I can use it no problem. However, I can not see who is texting me because none of the contacts from my phone will transfer over to my Mac. Is there an easier way to do this other than h
-
Are cp file extensions created with Captivate 4 compatable with Captivate 8?
Are cp file extensions created with Captivate 4 compatable with Captivate 8?
-
How do I go about fixing my rear camera lens? It's all foggy (maybe scratched)
so every time i go into the camera setting for the rear camera it is always foggy and takes horrible pics. is it possibly scratched or broke somehow? any way to fix this? how much it costs? covered under warranty?