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 own custom Java coding to determine permission. |
Name | Description |
---|---|
Plugin Name | Bean Shell Permission |
Label | Bean Shell Script |
Applicable for |
|
Availability |
|
...
Shell权限 允许用户编写自己的自定义Java代码来确定权限。 |
名称 | 描述 |
---|---|
插件名称 | Bean Shell权限 |
标签 | Bean Shell脚本 |
适用于 |
|
可用性 |
|
图1:Userview类别的Bean Shell权限示例截图
在编写自己的代码时,可以使用这两个对象来简化实现。
图2:示例变量的值
Figure 1: Sample screenshot of Bean Shell Permission in Userview Category
When writing your own code, these 2 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; } |
...