尽展体育的魅力,创造历史辉煌!2008让我们为奥运加油,为中国加油!
 
 奥运金牌榜
  
  高级搜索
  首页   技术论坛   博客   产品中心   资源中心   银弹在线   商城  





Oracle BPEL的研究(7)Identity Service 与组织结构和权限的处理    
#1楼
给作者发送短消息 给作者发送短消息 实名会员 
查看用户其他信息
总分 10 分
财富 110 goCom币
威望 21
排名 :(
段位 新手必读
    在工作流中,与组织模型的交互是非常重要的功能,能否提供对多种组织存储方式的支持,以及能够满足复杂的组织结构支持,对工作流系统来说,是非常重要的。      本篇就简要介绍Oracle BPEL Workflow Service中的Identity Service。Identity Service是Workflow Service中很重要的服务,主要完成用户、组的查找,以及授权和认证。可以通过OracleAS JAAS Provider(JAZN)、Oracle内嵌的Directory服务、第三方LDAP服务器、或者客户自定义的存储实现。     在工作流中,与组织模型的交互是非常重要的功能,能否提供对多种组织存储方式的支持,以及能够满足复杂的组织结构支持,对工作流系统来说,是非常重要的。      本篇就简要介绍Oracle BPEL Workflow Service中的Identity Service。Identity Service是Workflow Service中很重要的服务,主要完成用户、组的查找,以及授权和认证。可以通过OracleAS JAAS Provider(JAZN)、Oracle内嵌的Directory服务、第三方LDAP服务器、或者客户自定义的存储实现。 Identity Service的配置文件        Identity Service的配置文件名为is_config.xml,默认在%SOA_Oracle_Home%bpelsystemservicesconfi 目录下,其schema文件存储在%SOA_Oracle_Home%bpelsystemservicesschemais_config.xsd。 在http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABBDHFF 网页上有详细的结构介绍,此处不再累述。       Identity Servie支持三种plugin方式:JAZN provider, third-party LDAP directories, or custom repository plug-ins,分别是通过providerType属性来声明,值分别为JAZN, LDAP, or CUSTOM 如下是默认is_config.xml内容
  1. <ISConfiguration xmlns="http://www.oracle.com/pcbpel/identityservice/isconfig">  
  2.   
  3.    <configurations>  
  4.   
  5.       <configuration realmName="jazn.com">  
  6.   
  7.          <provider providerType="JAZN" name="XML" service="Identity">  
  8.   
  9.             <property name="usersPropertiesFile" value="users-properties.xml"/>  
  10.   
  11.          </provider>  
  12.   
  13.       </configuration>  
  14.   
  15.    </configurations>  
  16.   
  17. </ISConfiguration>  

         注意:如果providerType为JAZN,则需要声明realmName属性,并且其值必须为jazn.xml作包含的ream名称。jazn.xml在 %SOA_Oracle_Home%j2eeoc4j_soaconfig 目录下,参考jazn.xml和system-jazn-data.xml文件。       当然,你可以使用custom repository方式,如下例子。其中客户自己实现的Identity Service必须实现oracle.tip.pc.services.identity.BPMIdentityService这个接口类

  1. <?xml version = "1.0" encoding = "UTF-8"?>  
  2.   
  3. <ISConfiguration xmlns="http://www.oracle.com/pcbpel/identityservice/isconfig">  
  4.   
  5.    <configurations>  
  6.   
  7.       <configuration realmName="jazn.com">  
  8.   
  9.          <provider providerType="<FONT color=#0000ff>JAZN</FONT>" name="xml" service="<FONT color=#ff0000>Identity</FONT>">  
  10.   
  11.             <property name="userPropertiesFile" value="users-properties.xml"/>  
  12.   
  13.          </provider>  
  14.   
  15.          <FONT color=#0000ff><provider providerType="CUSTOM"    
  16.   
  17.                    name="CustomPlugIn" service="<FONT color=#ff0000>Authentication</FONT>"  
  18.   
  19.                    class="package.name.CustomAuthenticationService" /></FONT>      
  20.   
  21.       </configuration>  
  22.   
  23.    </configurations>  
  24.   
  25. </ISConfiguration>  

       其中,针对provider中的service类型,主要有三种:Identity、Authentication、Authorization,默认是Identity。 采用XML-Based JAZN Provider 参考: http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABDGHAG 使用Oracle Internet Direcatory 参考: http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABDAGFH 使用第三方LDAP Server 参考: http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABHBEGH 使用客户自定义的存储实现   其实,最主要是对oracle.tip.pc.services.identity.BPMIdentityService这个接口的实现。这个内容改天再详细叙述。

定义group的owner 参考: http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABBHBBB

 




发表回复
账号用户名   密码   登录
内容:url email imgsrc image code quote
范例 Example
bold italic underline linethrough   


 [更多...]