Sun Java System Portal Server 7.2 Developer's Guide

Address Book Schema

This section is a reference for the mobile address book application. During a default installation the SunMobileAppABService.xml file is placed in the /portal-server-installation-root/SUNWps/export/service directory.


Example C–2 Address Book Schema


<?xml version="1.0" encoding="ISO-8859-1"?>

<!--
  Copyright 2001 Sun Microsystems, Inc.  All rights reserved.
  PROPRIETARY/CONFIDENTIAL.  Use of this product is subject to license terms.

  MAP Address Book Service Definition
-->

<!DOCTYPE ServicesConfiguration
    PUBLIC "=//Sun ONE//Service Management Services (SMS) 1.0 DTD//EN"
    "file:%IDSAME_BASEDIR%/SUNWam/dtd/sms.dtd">

<ServicesConfiguration>
  <Service name="SunMobileAppABService" version="1.0">
    <Schema
      i18nFileName="SunMobileAppABService"
      serviceHierarchy="/app.configuration/SunMobileAppABService"
      i18nKey="abServiceDescription">
      <Global>
         <AttributeSchema name="serviceObjectClasses"
            type="list"
            syntax="string"
            i18nKey="">
            <DefaultValues>
               <Value>SunMobileAppABPerson</Value>
            </DefaultValues>
         </AttributeSchema>

         <AttributeSchema name="sunConfigurationTemplates"
                          type="list"
                          syntax="string"
                          any="display"
                          i18nKey="sunConfigurationTemplatesDescription">
         </AttributeSchema>

         <AttributeSchema name="sunMobileAppABJspAbNumLines"
            type="list"
            syntax="string"
            any="display"
            i18nKey="jspAbNumLines">
            <DefaultValues>
               <Value>default|9</Value>
            </DefaultValues>
         </AttributeSchema>
      </Global>

<!-- TBD as per ID6.0
      <Policy>
         <ActionSchema name="sunMobileAppABExecutable"
            type="single"
            syntax="boolean"
            any="display"
            cosQualifier="default"
            i18nKey="privilege">
            <DefaultValues>
               <Value>true</Value>
            </DefaultValues>
         </ActionSchema>
      </Policy>
-->

      <Dynamic>
         <AttributeSchema name="sunMobileAppABConfig"
            type="list"
            syntax="string"
            any="display"
            cosQualifier="merge-schemes"
            i18nKey="appConfig">
         </AttributeSchema>
            </Dynamic>

      <User>
         <AttributeSchema name="sunMobileAppABSortBy"
            type="single"
            syntax="string"
            any="display"
            i18nKey="sortBy">
               <DefaultValues>
                  <Value>fn</Value>
               </DefaultValues>
         </AttributeSchema>

         <AttributeSchema name="sunMobileAppABSortOrder"
            type="single_choice"
            syntax="string"
            any="display"
            i18nKey="sortOrder">
              <ChoiceValues>
                <ChoiceValue i18nKey="ascending">asc</ChoiceValue>
                <ChoiceValue i18nKey="descending">dsc</ChoiceValue>
                <ChoiceValue i18nKey="none">none</ChoiceValue>
              </ChoiceValues>
              <DefaultValues>
                <Value>asc</Value>
              </DefaultValues>
         </AttributeSchema>
         <AttributeSchema name="sunMobileAppABConfig"
            type="list"
            syntax="string"
            any="display"
            i18nKey="appConfig">
         </AttributeSchema>
      </User>
   </Schema>
  </Service>
</ServicesConfiguration>