Restrictions on Toolbar and Menu

Description

Hi,

Toolbar and menu should be customized upon role and/or window.
For instance, we should fordib role X to delete records, or role Y to export data.

The principle is to only record restriction.

Please find attached a quick description

Environment

None

Attachments

3

Activity

Show:

Nicolas MicoudMarch 29, 2012 at 7:14 PM

Hi Carlos,

Thanks for the scripts.
I've started to work on a generic method and it seems to work !

Please find attached:

  • new X and I classes

  • MToolBarButtonRestrict (full class)

  • APanel (patch)

  • migration scripts (which contain minor modifications to AD_ToolBarButtonRestrict table)

Please review.

I'll start my own fork later (tbayen say he will try to write some documentation, so i'll follow it).

Now, let's talk about 'ToolBar button' window.

I'm not sure that making Classname mandatory is a good thing.
For instance, 'Print' is common to APanel, Viewer and CWindowToolbar
So, if we want to forbid people to print through the whole application, it should be done with a blank Classname field (one record is better than 3 ?)

WDYT ?

Regards,

Nicolas

Carlos RuizMarch 28, 2012 at 11:46 PM

Hi Nicolas

According to what we agreed on weekly meeting ( http://bit.ly/H0VwR8 ) I'm uploading the scripts for the creation of the tables AD_ToolBarButton and AD_ToolBarButtonRestrict - and also the initial records for swing window toolbar and zk window toolbar.

Regards,

Carlos Ruiz

Carlos RuizFebruary 9, 2012 at 4:42 AM

Transcribing here the summary of what was discussed on weekly meeting http://goo.gl/NWoql

Create a table AD_VisualComponent
Columns: the usual plus

  • VisualGroup for "Toolbar Window", "Toolbar Report Viewer", "Toolbar Jasper Viewer", "About window", "Other window components" (like the record info button)

  • SeqNo

  • Name

  • Component Type

  • Java class (to implement some sort of configurable interface in future)

Create a table AD_VisualComponentRestrict - to register restrictions per role
Columns: the usual plus

  • AD_VisualComponent_ID

  • AD_Role_ID

Regards,

Carlos Ruiz

Fixed

Details

Assignee

Reporter

Labels

Affects versions

Priority

Created January 31, 2012 at 1:53 PM
Updated March 13, 2014 at 2:18 PM
Resolved April 5, 2012 at 12:40 PM