Seperate entity by user (Table Row Ownership // Data - Segregation) [message #1760406] |
Wed, 26 April 2017 16:59 |
|
I use (scout 6.0.200) on (eclipse neon.2 Release 4.6.2)
The idea:
I want to separet the entities by the user.
Only user1 can see the content from "A". The user "administrator" can see the content from "A plus B".
I have a lot of entities ...
* Punching
* Embossing
* etc.
The entities have their own TablePages.
Now i create an segretation-table on postgres (or similar)
user | stock
=========================================================
user1 | A
user2 | B
administrator | A + B
All entity-table have also a "stock-column":
punching_id | mass | etc. | stock
===================================================
1234 | 13g | ... | A
5678 | 12kg | ... | B
Now i want to adjust all select-statements to consider the stock per user.
And these are my two problems (also not the select-statement -> wich user is it) ...
(A)
I think i must create a login page (username / password) to identify the user. But .... how? There is such a thing in eclipse scout framework? Someone has a tip?
(B)
In wich segmentation can i save the logged user? (to access the name in the select-statements)
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04031 seconds