Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Bean Shell Permission provides the ability to key in custom Java codes to define the permission checking.
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 |
|
Availability |
|
When writing your own code, these two objects are made available for you to ease your implementation.
Figure 2: Sample variables' values
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; }