Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition定义
Bean Shell Permission allows one to write its own custom Java coding to determine permission.
NameDescription
Plugin NameBean Shell Permission
LabelBean Shell Script
Applicable for
  • Userview
  • Userview Category
  • Form
  • Form Section
  • File Upload
  • Image Upload
Availability
  • Joget Workflow v5 Community Edition
  • Joget Workflow v5 Enterprise Edition

...

Shell权限 允许用户编写自己的自定义Java代码来确定权限。
名称描述
插件名称Bean Shell权限
标签Bean Shell脚本
适用于
  • 用户视图
  • Userview类别
  • 形成
  • 表格部分
  • 上传文件
  • 图像上传
可用性
  • joget工作流v5社区版
  • joget工作流v5企业版


Image Added

图1:Userview类别的Bean Shell权限示例截图

在编写自己的代码时,可以使用这两个对象来简化实现。

Image Added

图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.

Image Removed

Figure 2: Sample variables' values

Code Block
titleSample Usage
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;
}

...