Sun N1 Service Provisioning System 5.1 XML Schema Reference Guide

Sample XML for the <resourceDescriptor> Element

The following example shows an <resourceDescriptor> element for a directory resource.


<?xml version ="1.0" encoding="UTF-8"?>
<resourceDescriptor
      xmlns="http://www.sun.com/schema/SPS"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sun.com/schema/SPS 	           
 	                    resourceDescriptor.xsd"
      schemaVersion="5.1">
  <entryList>
    <defaultEntry>
      <settings
        owner="root"
        group="wheel"
        permissions="664"/>
    </defaultEntry>

    <!-- This directory overrides all of the default settings -->
    <entry
         name="root">
      <settings
        owner="gprabhu"
        group="bin"
        permissions="777"/>
    </entry>

   <!-- This directory overrides the owner and group, but will have   
	   perms of "664" from the defaultEntry -->
    <entry
        name="root/nestedDirectory" >
      <settings
        owner="gprabhu"
        group="wheel"/>
    </entry>

    <!-- This file overrides the group and perms, but will have owner 
     of "root" from the defaultEntry -->
    <entry
         name="root/nestedDirectory/fileThatWillUseSomeDefaults.txt" >
      <settings
        group="bin"
        permissions="777"/>
    </entry>

    <!-- This file overrides none of the settings in the defaultEntry,
 	   so it will inherit all of them.
         In practice, this entry would probably be omitted entirely. -->
    <entry
         name="root/nesteddirectory/fileThatWillUseAllDefaults.txt" >
      <settings/>
    </entry>
  </entryList>
</resourceDescriptor>

The following example shows an <resourceDescriptor> element for a file resource.


<?xml version ="1.0" encoding="UTF-8"?>
<resourceDescriptor xmlns="http://www.sun.com/schema/SPS"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.sun.com/schema/SPS resourceDescriptor.xsd"
 schemaVersion="5.1">
  <entryList>
    <!-- There is no <defaultEntry> in this <entryList>, so anything not
         specified in the <settings> element for this entry uses the
         settings determined at check-in time. -->
    <entry name="root">
      <settings owner="terry" group="bin" permissions="777"/>
    </entry>
  </entryList>
</resourceDescriptor>