Usages
- 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 Userview Permission/ Form Permission Plugin abstract class.
- A useable Form Permission plugin must extends Userview Permission/ Form Permission Plugin abstract class and implements Userview Permission/ Form Permission Plugin interface.
...
用法
抽象类
org.joget.apps.userview.model.UserviewPermission
Under wflow在wflow-core modulecore模块下
- Extended org扩展org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.ExtDefaultPlugin。请参阅 插件基本抽象类和接口。
- 已实现orgImplemented 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.
Method Detail
Abstract Methods
isAuthorize
public abstract boolean isAuthorize()
Check the current user is authorized to proceed.
...
- PropertyEditable。请参阅 插件基本抽象类和接口。
开发Userview / Form权限插件的基本抽象类。
方法细节
抽象方法
isAuthorize
公共抽象布尔isAuthorize()
检查当前用户是否有权继续。
效用方法
getRequestParameters
public java.util.Map getRequestParameters()getRequestParameters()
获取请求参数Gets request parameters
setRequestParameters
public void setRequestParameters(javasetRequestParameters(java.util.Map requestParameters)requestParameters)
设置请求参数Sets request parameters
getRequestParameter
public java.lang.Object getRequestParameter(javagetRequestParameter(java.lang.String requestParameter)requestParameter)
便捷方法获取参数值Convenience method to get a parameter value
getRequestParameterString
public java.lang.String getRequestParameterString(javagetRequestParameterString(java.lang.String requestParameter)
Convenience method to get a parameter String value.
requestParameter)
便捷方法获取参数字符串值。
返回 空字符串而不是NULL。Return Empty string instead of NULL.
getCurrentUser
public org.joget.directory.model.User getCurrentUser()
Gets current logged in user.
Return NULL if anonymous.
getCurrentUser()
获取当前登录的用户。
如果匿名返回 NULL。
setCurrentUser
public void setCurrentUser(orgsetCurrentUser(org.joget.directory.model.User currentUser)
Sets current logged in user.
...
currentUser)
设置当前登录的用户。
接口
org.joget.apps.form.model.FormPermission
Under wflow在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.
Plugin Properties Options
- Please refer to Plugin Properties Options for more information.
Tutorials
core模块下
这个接口用来标记一个UserView权限插件在Form Builder中是可重用的。
在这个界面中没有可用的接口方法。
插件属性选项
教程
相关的社区插件
- Bean Shell权限Bean Shell Permission
org.joget.apps.userview.lib.BeanShellPermission (wflow-core)Department PermissionBeanShellPermission(wflow-core) - 部门权限
org.joget.apps.userview.lib.DepartmentPermission (wflow-core)DepartmentPermission(wflow-core) - 组权限Group Permission
org.joget.apps.userview.lib.GroupPermission (wflow-core)Logged In User PermissionGroupPermission(wflow-core) - 登录用户权限
org.joget.apps.userview.lib.LoggedInUserPermission (wflow-core)LoggedInUserPermission(wflow-core) - 组织权限Organization Permission
org.joget.apps.userview.lib.OrganizationPermission (wflow-core)User PermissionOrganizationPermission(wflow-core) - 用户权限
org.joget.apps.userview.lib.UserPermission (wflow-core)
...
- UserPermission(wflow-core)