Warning |
---|
Introduced in v5, the API Domain Whitelist setting in General Settings needs to be configured to allow JSON API requests. If a request is from a non-whitelisted domain, the response will be a HTTP 400 Bad Request.在v5中引入,需要配置“ 常规设置”中的“API域白名单”设置以允许JSON API请求。如果请求来自非白名单域,则响应将是HTTP 400错误请求。 |
Usages
用法
- 用于为系统的AJAX调用提供额外的HTML页面或Web服务。
- 一个可用的Web Service插件需要扩展
- Used to provide additional HTML page or Web Service for AJAX call for the system.
- A usable Web Service Plugin need to extends org.joget.plugin.base.ExtDefaultPlugin abstract class and implements Web Service Plugin interface.
- Web Service Plugin can be any plugin from other plugin types which implemented Web Service Plugin interface.
...
接口
org.joget.plugin.base.PluginWebSupport
- Under wflow在wflow-plugin-base modulebase模块下
- Interface for Web Service Plugin插件的接口
...
方法细节
...
接口方法
webService
网络服务
public void webService(javaxwebService(javax.servlet.HttpServletRequest request, javaxrequest,javax.servlet.HttpServletResponse response) throwsresponse)throws javax.servlet.ServletException, javaServletException,java.io.IOException
Work similar to a Servlet.
...
类似于Servlet的工作。
URL模式
{Context Path}/web/json/plugin/{Plugin Class Name}/service
{Context Path}/web/json/app/{App Id}/{App Version}/plugin/{Plugin Class Name}/service
- Example:例:
http:
- This pattern allowed you to retrieve app definition in your implementation by using this code:这个模式允许你使用下面的代码在你的实现中检索应用程序的定义:
AppDefinition appDef = AppUtil.getCurrentAppDefinition();
Plugin Properties Options
插件属性选项
Tutorials
相关的社区插件
- 部门权限Department Permission
org.joget.apps.userview.lib.DepartmentPermission (wflow-core)DepartmentPermission(wflow-core) - 电子邮件工具Email Tool
org.joget.apps.app.lib.EmailTool (wflow-core)EmailTool(wflow-core) - 组权限Group Permission
org.joget.apps.userview.lib.GroupPermission (wflow-core)InboxGroupPermission(wflow-core) - 收件箱
org.joget.apps.userview.lib.InboxMenu (wflow-core)Organization PermissionInboxMenu(wflow-core) - 组织权限
org.joget.apps.userview.lib.OrganizationPermission (wflow-core)OrganizationPermission(wflow-core) - 运行进程Run Process
org.joget.apps.userview.lib.RunProcess (wflow-core)Subform
orgRunProcess(wflow-core) - 子表单
表单org.joget.apps.form.lib.SubForm (wflow-core)SubForm(wflow-core) - 用户通知User Notification
org.joget.apps.app.lib.UserNotificationAuditTrail (wflow-core)User PermissionUserNotificationAuditTrail(wflow-core) - 用户权限
org.joget.apps.userview.lib.UserPermission (wflow-core)
...
- UserPermission(wflow-core)