IBM TIM4.6的Service包简述

本文详细介绍了IBM TIM4.6服务包的组成,包括SunPortalService.jar的内容,如resource.def定义服务和账户,schema.dsml描述LDAP模式,SunPortalAccount.xml和SunPortalService.xml定义表单。服务包包含系统配置、协议属性、账户定义和服务定义,用于定制Sun Portal的集成和服务管理。
摘要由CSDN通过智能技术生成

 比如创建一个服务包SunPortalService.jar,那么里面的内容有

       --META-INF

       --SunPortalService

                                  --resource.def

                                  --schema.dsml

                                  --SunPortalAccount.xml

                                  --SunPortalService.xml

 

     resource.def定义了Service和Account,详细内容是

                    <?xml version="1.0" encoding="UTF-8"?>

<!-- ***************************************************************** -->
<!-- Licensed Materials - Property of IBM                              -->
<!--                                                                   -->
<!-- Source File Name = resource.def                                   -->
<!--                                                                   -->
<!-- (C) COPYRIGHT IBM Corp. 2003 All Rights Reserved                  -->
<!--                                                                   -->
<!-- US Government Users Restricted Rights - Use, duplication or       -->
<!-- disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
<!-- ***************************************************************** -->

<!-- This document describes the resource definition for an example service. -->

<Resource>
  <!-- The system profile contains an overall description and any specific -->
  <!-- properties to be used for communications. -->
  <SystemProfile>
    <Name>SunPortalService</Name>  
    <Description>Sun Portal Service</Description>
    <BehaviorProperties>
      <!-- The service provider factory should have the value used to -->
      <!-- instantiate the DSMLv2 protocol module.-->
      <Property Name = "com.ibm.itim.remoteservices.ResourceProperties.SERVICE_PROVIDER_FACTORY"
                Value = "com.ibm.itim.remoteservices.provider.dsml2.DSML2ServiceProviderFactory"/>
    </BehaviorProperties>
  </SystemProfile>

  <!-- Protocol properties add values from the service instance to request messages to the  -->
  <!-- end point. -->
  <ProtocolProperties>
      <Property Name  = "url" LDAPName = "erurl"/>
      <Property Name  = "principal"
                LDAPName = "erUid" />
      <Property Name  = "credentials"
                LDAPName = "erPassword" />
  </ProtocolProperties>

  <!--  Defines a profile for the custom account type. -->
  <AccountDefinition ClassName = "SunPortalAccount"
                     Description = "Sun Portal Account">
  </AccountDefinition>

  <!--  Defines a profile for the custom service type. -->
  <ServiceDefinition ServiceProfileName = "SunPortalService"
       ServiceClass = "SunPortalService"
                     AttributeName = "erServiceName"
                     AccountClass = "SunPortalAccount"
                     AccountProfileName = "SunPortalAccount"
                     Description = "Sun Portal Account">
  </ServiceDefinition>
 
</Resource>

 

     schema.dsml是定义Service和Account的LDAP模式,描述对象类所拥有的属性。

                          <?xml version="1.0" encoding="UTF-8"?>

<!-- ***************************************************************** -->
<!-- Licensed Materials - Property of IBM                              -->
<!--                                                                   -->
<!-- Source File Name = schema.dsml                                    -->
<!--                                                                   -->
<!-- (C) COPYRIGHT IBM Corp. 1999, 2002 All Rights Reserved            -->
<!--                                                                   -->
<!-- US Government Users Restricted Rights - Use, duplication or       -->
<!-- disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
<!-- ***************************************************************** -->

<!-- ***************************************************************** -->
<!-- This document is a Directory Service Markup Language (DSML)       -->
<!-- description of an example service and account data model.         -->
<!-- ***************************************************************** -->

<dsml>

  <directory-schema>

    <!-- ******************************************************** -->
    <!-- attribute definitions                                    -->
    <!-- ******************************************************** -->
 

    <!-- ******************************************************** -->
    <!-- class definitions                                        -->
    <!-- ******************************************************** --> 
    <class superior="top">
        <name>SunPortalService</name>
        <description>Sun Portal Service</description>
        <object-identifier>cmcc-SunPortalService-oid</object-identifier>
        <attribute ref="erservicename" required="true" />
        <attribute ref="erurl" required="true" />
        <attribute ref="eruid" required="true" />
        <attribute ref="erpassword" required="true" />
        <attribute ref="ernamingattribute" required="false" />
        <attribute ref="namingcontexts" required="true" />
        <attribute ref="erCategory" required="false" />
    </class>

    <class superior="top">
        <name>SunPortalAccount</name>
        <description>Sun Portal Account</description>
        <object-identifier>cmcc-SunPortalAccount-oid</object-identifier>
        <attribute ref="eruid" required="true" />
        <attribute ref="cn" required="false" />
        <attribute ref="erpassword" required="false"  />
    </class>

  </directory-schema>

</dsml>
 

      SunPortalAccount.xml是Account的表单定义文件。

          <page>
<body>
<form action="formvalidator0">
<formElement name="data.eruid" label="$eruid" required="true">
<input name="data.eruid" size="50" type="text"/>
<constraint><type>REQUIRED</type><parameter>true</parameter></constraint></formElement>
<formElement name="data.cn" label="$cn" >
<input name="data.cn" size="50" type="text"/>
<constraint><type>REQUIRED</type><parameter>true</parameter></constraint></formElement>
</form>
</body>
</page>

 

      SunPortalService.xml是Service的表单定义文件。

     <page>
<body>
<form action="formvalidator0">
<formElement name="data.erservicename" label="$erservicename" required="true">
<input name="data.erservicename" size="50" type="text"/>
<constraint><type>REQUIRED</type><parameter>true</parameter></constraint></formElement>

<formElement name="data.erurl" label="$erurl" required="true">
<input name="data.erurl" size="50" type="text"/>
<constraint><type>REQUIRED</type><parameter>true</parameter></constraint></formElement>

<formElement name="data.eruid" label="$eruid" required="true">
<input name="data.eruid" size="50" type="text"/>
<constraint><type>REQUIRED</type><parameter>true</parameter></constraint></formElement>

<formElement name="data.erpassword" label="$erpassword" required="true">
<input name="data.erpassword" size="50" type="password"/>
<constraint><type>REQUIRED</type><parameter>true</parameter></constraint></formElement>

<formElement name="data.namingcontexts" label="$namingcontexts">
<input name="data.namingcontexts" size="50" type="text"/>
</formElement>

<formElement name="data.erCategory" label="$erCategory">
<input name="data.erCategory" size="50" type="text"/>
</formElement>

<formElement name="data.ernamingattribute" label="$ernamingattribute">
<input name="data.ernamingattribute" size="50" type="text"/>
</formElement>

<formElement name="data.owner" label="$owner">
<searchControl operator="1" type="input" attribute="cn" orgSubTreeSearch="true" category="Person" class="Person">
<comboItem></comboItem>
</searchControl>
</formElement>

<formElement name="data.erprerequisite" label="$erprerequisite">
<searchControl operator="1" type="input" attribute="erservicename" orgSubTreeSearch="true" category="Service" class="DSMLInfo">
<comboItem></comboItem>
</searchControl>
</formElement>

</form>
</body>
</page>

       

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值