Enterprise 2.0 Service使用之Document

三月 5, 2010 in Oracle 融合中间件

概述

对于企业级应用来说,Document Management是非常重要的内容,WebCenter中也提供了Document Service以满足文档管理的需求。使用WebCenter提供的Document Service的前提是建立一个Content Repository,而该Content Repository既可以直接连接文件系统,也可以连接到Content Server(例如:UCM等)

为演示方便,这里主要介绍直接连接到文件系统的方式。

基本步骤

1、创建Content Repository
2、使用Document Service

实现

1、创建WebCenter Application

2、创建Content Repository

1)在“Application Resources”面板中创建Content Repository

2) 填写相应的连接信息,选择“Repository Type”为“File System”,根据需要显示的文件路径,填写“Base Path”,填写超时时间,勾选“Set as primary connection for document service”(由于Document Service同一时间只能连接一个Content Repository),完成后点击“Test Connection”,如果成功,则点击Finish完成创建

说 明:很多情况下,此处的“Repository Type”会选择“Content Server”,对于Oracle Fusion应用来说,通常会选择UCM作为其Content Server,而在此情况下,由于一般的Content Server中都有其安全性及权限管理,因此可以将其注册成为External Application,并关联至此,设置方法如图所示(其他步骤类似):

3)创建成功后,在“Application Resources”中可以查看刚创建成功的Content Repository,并可以展开其节点,查看具体的文件


3、使用Document Service

1)从“Application Resources”中拖动刚创建成功的Content Server到页面,可以看到有三种方式,首先选择“Documents – List View”

2)编辑Task Flow Binding信息,其中的showFolders属性默认为false,需要设置其为true,以便于在列表中看到文件夹

3)重复1)步骤,这次以“Document – Document Manager”展现

4)保持其Task Flow Binding信息为默认即可,也可根据需要进行修改

5)从“Application Resources”中创建成功的Content Server的文件列表中选择任意文件(非文件夹)拖动到页面,以ADF Go Link展现

6)保存并运行应用
运行后的Document Manager中可以查看文件系统中的文件,并对文件进行新建(html)、复制、粘贴、删除等常规操作,还可以进行文件上传

对于刚以Go Link展现的单个文件,可以通过该Go Link点击并大概该页面

4、基于Content Repository创建Data Control

1) 为使开发更为灵活,使Content Repository的功能更能在WebCenter Application中发挥,还可以基于创建成功的Content Repository创建Data Control,在该Data Control中具有Content Repository常用的方法,可以方便地进行调用,并生成对应的页面。从“Application Resources”中选择该Content Repository,点击鼠标右键,选择“Create Data Control”

2)填入相应的Data Control的基本信息,点击“OK”完成

3)完成之后在“Data Controls”面板中就能看到该Content Repository暴露出的常用业务方法了,可以根据需要进行调用

详细代码请查看:howtoservicedocument.rar

相关文章:

  1. Enterprise 2.0 Service使用之RSS
  2. Enterprise 2.0 Service使用之Mail

4 responses to Enterprise 2.0 Service使用之Document

  1. 图一个都看不到呢?

  2. 现在可以显示,可能是网络问题

  3. 图一个都看不到呢?
    http://www.itwz.net

Leave a reply

You must be logged in to post a comment.