BOS Portal培训_Portlet开发.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 提纲 Portlet介绍 基本开发流程 高级用法 常用方法及接口 开发规范与约束 常见问题 其他 沙盘演练 沙盘演练 开发一个简单Portlet 感谢观看 金蝶软件(中国)有限公司 * * * * * * * * * * * * * * * * * * * * * * * * * * * * 常用方法及接口 Portlet操作接口 使用接口com.kingdee.eas.portal.IPortalServiceFacade,提供以下方法 禁用Portlet(含批量处理):disablePortlet 启用Portlet(含批量处理):enablePortlet 作废Portlet:deletePortlet 新增Portlet(无返回值):addPortlet 新增Portlet(返回新建ID):addPortletReturnId 更新Portlet:update 刷新Portlet缓存:refreshPortletCache 获取Portlet:getPortlet 常用方法及接口 所有与Portlet相关的操作,如添加、删除、更新等,都必须使用该接口,不要直接调用IPortlet接口对Portlet进行操作 进行Portlet操作(获取Portlet除外)后,在最后务必使用refreshPortletCache来刷新Portlet缓存数据 IPortalServiceFacade service = PortalServiceFacadeFactory. getRemoteInstance(); service.enablePortlet(portletID); service.refreshPortletCache(); 常用方法及接口 业务设置接口 对PortletExtInfo的操作,由于PortletInfo包含PortletExtInfo,因此同样通过接口com.kingdee.eas.portal.IPortalServiceFacade进行 举例如下:(portletInfo为PortletInfo的实例) 添加PortletExtInfo: PortletExtInfo portletExtInfo = new PortletExtInfo(); portletExtInfo.setTitle(自定义Portlet标题); portletExtInfo.setBizDefUrl(/html/custom/testPortletDefSetting.jsp); portletExtInfo.setBizInsUrl(/html/custom/testPortletInsSetting.jsp); portletInfo.setPortletExt(portletExtInfo); 常用方法及接口 业务设置接口 IPortalServiceFacade psf = PortalServiceFacadeFactory.getLocalInstance(ctx); // 如果portletInfo是新增,则 psf.addPortlet(portletInfo); // 如果portletInfo是修改,则 //psf.update(portletInfo.getId(), portletInfo); 修改PortletExtInfo: PortletExtInfo portletExtInfo = portletInfo.getPortletExt(); portletExtInfo.setTitle(修改自定义Portlet标题); IPortalServiceFacade psf = PortalServiceFacadeFactory.getLocalInstance(ctx); psf.update(portletInfo.getId(), portletInfo); 常用方法及接口 业务设置接口 删除PortletExtInfo: portletInfo.setPortletExt(null); IPortalServiceFacade psf = PortalServiceFacadeFactory.getLocalInstance(ctx); psf.update(portletInfo.getId(), portletInfo); 常用方法及接口 Portlet业务设置页面JS接口 在Portlet运行期的业务设置页面中,关闭设置窗口后刷新Portlet内容 场景:当用户进行业务设置(如设置显示条目数量等)后,关闭

文档评论(0)

bbnm58850 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档