Introduction
English |
---|
Panel |
---|
borderColor | green |
---|
borderWidth | 1 |
---|
titleBGColor | #ddffcc |
---|
borderStyle | solid |
---|
title | Definition |
---|
|
Bean Shell Permission provides the ability to key in custom Java codes to define the permission checking. |
...
Image Added
...
Image Removed
Figure 1: Sample BeanShell permission to allow only
username "admin" to view the menu category.
Name | Description |
---|
Plugin Name | Bean Shell Permission |
Label | Bean Shell Script |
Applicable for | |
> Advance - > Advanced Tools
- Userview Category (Figure 1)
- Form
- Form
|
> Advance - > Advanced Tools
- Form Section
- Datalist
|
> Advance Workflow - DX Community Edition
- Joget
|
Workflow - DX Enterprise & Professional Edition.
|
When writing your own code, these two objects are made available for your you to ease your implementation.
Figure 2: Sample variables' values
Code Block |
---|
|
System.out.println( user.getFirstName() ); //will print "Admin"
System.out.println( requestParams.get("appId") ); //will print "hr_expense";
if (user.getFirstName().equalsIgnoreCase("Admin")) {
return true;
} else {
return false;
} |
...