Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Bean Shell Permission allows one to write its ownPermission provides the ability to key in custom Java codingcodes to determinedefine the permission checking. |
Name | Description | |
---|---|---|
Plugin Name | Bean Shell Permission | Figure 1: Sample BeanShell permission to allow only |
Label | Bean Shell Script | |
Applicable for |
|
| |
Availability |
|
|
|
...
Figure 1: Sample screenshot of Bean Shell Permission in Userview Category
When writing your own code, these 2 two objects are made available for your 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; } |
...