Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Userview Permission Plugins are used for handling permissions and access rights in a userview.
Form Permission Plugins are used for handling permissions and access rights in a form and field element.
A useable Userview Permission plugin must extends org.joget.apps.userview.model.UserviewPermission abstract class.
A useable Form Permission plugin must extends org.joget.apps.userview.model.UserviewPermission abstract class and implements org.joget.apps.form.model.FormPermission interface.
Under wflow-core module
Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.
Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.
A base abstract class to develop a Userview/Form Permission plugin.
public abstract boolean isAuthorize()
Check the current user is authorized to proceed.
public java.util.Map getRequestParameters()
Gets request parameters
public void setRequestParameters(java.util.Map requestParameters)
Sets request parameters
public java.lang.Object getRequestParameter(java.lang.String requestParameter)
Convenience method to get a parameter value
public java.lang.String getRequestParameterString(java.lang.String requestParameter)
Convenience method to get a parameter String value.
Return Empty string instead of NULL.
public org.joget.directory.model.User getCurrentUser()
Gets current logged in user.
Return NULL if anonymous.
public void setCurrentUser(org.joget.directory.model.User currentUser)
Sets current logged in user.
Under wflow-core module
This interface is used to mark a Userview Permission Plugin is reusable in Form Builder.
No interface method is available in this interface.
Please refer to Plugin Properties Options for more information.
Bean Shell Permission
org.joget.apps.userview.lib.BeanShellPermission (wflow-core)
Department Permission
org.joget.apps.userview.lib.DepartmentPermission (wflow-core)