Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

Definition
English
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
title
Bean Shell Permission provides the ability to key in custom Java codes to define the permission checking.

...


Image Added

Figure 1: Sample BeanShell permission to allow only
username "admin" to view the menu category.

NameDescription
Plugin NameBean Shell Permission
LabelBean Shell Script
Applicable for
  • Userview
  • Userview
> Advance
  • > Advanced Tools
  • Userview Category (Figure 1)
  • Form
  • Form
> Advance
  • > Advanced Tools
  • Form Section
  • Datalist
> Advance
  • > Advanced Tools
Availability
  • Joget
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
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;
}

...