...
- 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.
Abstract Class
org.joget.apps.userview.model.UserviewPermission
...
Abstract Methods
isAuthorize
public abstract boolean isAuthorize()
Check the current user is authorized to proceed.
Utility Methods
getRequestParameters
public java.util.Map getRequestParameters()
Gets request parameters
setRequestParameters
public void setRequestParameters(java.util.Map requestParameters)
Sets request parameters
getRequestParameter
public java.lang.Object getRequestParameter(java.lang.String requestParameter)
Convenience method to get a parameter value
getRequestParameterString
public java.lang.String getRequestParameterString(java.lang.String requestParameter)
Convenience method to get a parameter String value.
Return Empty string instead of NULL.
getCurrentUser
public org.joget.directory.model.User getCurrentUser()
Gets current logged in user.
Return NULL if anonymous.
setCurrentUser
public void setCurrentUser(org.joget.directory.model.User currentUser)
Sets current logged in user.
Interface
org.joget.apps.form.model.FormPermission
...
- Please refer to Plugin Properties Options for more information.
Tutorials
- Bean Shell Permission
org.joget.apps.userview.lib.BeanShellPermission (wflow-core) - Department Permission
org.joget.apps.userview.lib.DepartmentPermission (wflow-core) - Group Permission
org.joget.apps.userview.lib.GroupPermission (wflow-core) - Logged In User Permission
org.joget.apps.userview.lib.LoggedInUserPermission (wflow-core) - Organization Permission
org.joget.apps.userview.lib.OrganizationPermission (wflow-core) - User Permission
org.joget.apps.userview.lib.UserPermission (wflow-core)Not available right now