Introduction

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


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
  • UIĀ 
  • UI Builder > Advanced Tools
  • UI Category (Figure 1)
  • Form
  • Form Builder > Advanced Tools
  • Form Section
  • List Builder > Advanced Tools
Availability
  • Joget DX Community Edition
  • Joget DX Enterprise & Professional Edition.


When writing your own code, these two objects are made available for you to ease your implementation.

Figure 2: Sample variables' values


Sample 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;
}





  • No labels