D.6 Replication (Rep) Attribute Tags

D.6.1 The ADD Event Policy Rule for Database Replication

To view a sample ADD Event policy rule to submit database replication parameters on behalf of a newly created mailfile, click setmailfilerep.xml. You can use or modify the sample code for your own XML solutions.

D.6.2 Mailfile Database Replication Attribute Tags As They Are Submitted To the Shim

Below is a sample ADD Event containing mailfile database replication attribute tags as they are submitted to the Notes Driver shim. This sample modifies the replication settings of the newly created mailfile of the new Notes user and also creates a replica on server CN=server1/O=novell.

<nds dtdversion="2.0" ndsversion="8.x">
   <source>
  <product version="2.0.8.20050127 ">Identity Manager</product>
  <contact>Novell, Inc.</contact>
   </source>
   <input>
  <add  certify-user="true"
    class-name="Person"
    create-mail="true"
    dest-dn="CN=DaffyDuck/OU=eng/O=novell"
    drv-param-cert-id="eng-cert-id-file"
    drv-param-cert-pwd="eng-cert-id-password"
    event-id="BLACKCAP-NDS#20050331215122#1#1"
    mail-acl-manager-name="CN=Notes Driver/O=novell"
    mailfile-rep-abstract="false"
    mailfile-rep-clear-history="false"
    mailfile-rep-cutoff-delete="false"
    mailfile-rep-cutoff-interval="240"
    mailfile-rep-dest-server="CN=server1/O=novell"
    mailfile-rep-disabled="false"
    mailfile-rep-dont-send-local-security-updates="false"
    mailfile-rep-entry-remove="false"
    mailfile-rep-ignore-deletes="false"
    mailfile-rep-ignore-dest-deletes="false"
    mailfile-rep-immediate="CN=server1/O=novell"
    mailfile-rep-include-acl="true"
    mailfile-rep-include-agents="true"
    mailfile-rep-include-documents="true"
    mailfile-rep-include-forms="true"
    mailfile-rep-include-formulas="true"
    mailfile-rep-new-db-name="mail/daffyduck_rep1.nsf"
    mailfile-rep-new-server="CN=server1/O=novell"
    mailfile-rep-priority="LOW"
    mailfile-rep-src-server="CN=server2/O=novell"
    mailfile-rep-view-list="Inbox;Sent;Calendar;Meetings"
    qualified-src-dn="O=DirXML\OU=Notes\OU=Users\OU=eng\CN=DaffyDuck"
    src-dn="\novell_tree\DirXML\Notes\Users\eng\DaffyDuck"
    src-entry-id="40729"
    timestamp="1112305882#22">
     <add-attr attr-name="FullName">
        <value timestamp="1112305882#22" type="string">DaffyDuck</value>
     </add-attr>
     <add-attr attr-name="LastName">
        <value timestamp="1112305882#7" type="string">Duck</value>
     </add-attr>
     <add-attr attr-name="FirstName">
        <value timestamp="1112305882#5" type="string">Daffy</value>
     </add-attr>
     <add-attr attr-name="InternetAddress">
        <value>DaffyDuck@novell.com</value>
     </add-attr>
  </add>
   </input>
</nds>

D.6.3 Sample Modify Event Policy Rule

To view sample code for a Modify Event policy rule to submit database replication parameters, see setsyncdbrep.xml. You can use or modify the code sample in your own XML solutions.

D.6.4 Modify Event Attribute Tags As They Are Submitted To the Shim

A sample Modify Event containing database replication attribute tags as submitted to the Notes Driver shim. This sample modifies the synchronized .nsf database (in this case names.nsf):

<nds dtdversion="2.0" ndsversion="8.x">
   <source>
  <product version="2.0.8.20050127 ">Identity Manager</product>
  <contact>Novell, Inc.</contact>
   </source>
   <input>
  <modify       class-name="Group"
      event-id="BLACKCAP-NDS#20050401191642#1#1"
      qualified-src-dn="O=DirXML\OU=Notes\OU=Groups\CN=Engineering"
      rep-abstract="false"
      rep-clear-history="false"
      rep-cutoff-delete="false"
      rep-cutoff-interval="240"
      rep-dest-server="CN=server1/O=novell"
      rep-disabled="false"
      rep-dont-send-local-security-updates="true"
      rep-entry-remove="false"
      rep-ignore-deletes="false"
      rep-ignore-dest-deletes="false"
      rep-immediate="CN=server1/O=novell"
      rep-include-acl="true"
      rep-include-agents="true"
      rep-include-documents="true"
      rep-include-forms="true"
      rep-include-formulas="true"
      rep-priority="HIGH"
      rep-src-server="CN=server2/O=novell"
      rep-view-list="People;People By Category;Groups;Groups By Category"
      src-dn="\novell_tree\DirXML\Notes\Groups\Engineering"
      src-entry-id="40743"
      timestamp="1112383002#1">
    <association state="associated">3EEB6FC36CBE4D3687256FD60069C721</association>
    <modify-attr attr-name="ListDescription">
       <add-value>
      <value timestamp="1112383002#1" type="string">Software Engineering Group</value>
       </add-value>
    </modify-attr>
  </modify>
   </input>
</nds>