The Replication Program Introduction- A Replication Java Program for IBM FileNet Object Stores

This Java program consists of 4116 lines of Java code calling methods from the FileNet 5.x Java APIs to replicate documents and folders from a selected Folder location in a source Object Store to a selected Target Object Store on a different server. (See the section code lists in this chapter.)
The Target documents are copied with exact GUIDS, Version Series ID, and Security profile and folder linkage as in the source Object Store, except that the Group and User security are set to Read Only for the Replicated Folder and Document Properties and Content.
One exception Group and User are left with their originally defined security levels.
The Replication program also detects security and property changes in the Source Object store and the removal/move of Documents and Folders and faithfully copies the changes to the target object store.
This program was built to satisfy the following requirements:
a) It can be rerun from any starting date and updates the Target replica with all changes; there is no need to reset the target object store as the program has been designed to check and ignore existing Documents or Folders already replicated.
b) The tests for specifications and functionality of the program are as follows:

  1. First replication:
    • Verify the object store and folders.
    • The same object store and folders are found at target.
  2. Verify the document at the target side.
    • The number of documents are the same.
  3. Verify the permission setup.
    • The permission setups are the same.
  4. Check whether the copy at the target side is editable or not.
    • The documents on the target Object Store must be READ-ONLY.
  5. Verify the document change – Upload a new document at the source.
    • A new document should be synced to the target, with identical permissions.
  6. Upload a new version of the document at the source.
    • A new version of the document should be found at the target.
  7. Change the permissions of the document at the source.
    • The permissions must be updated at the target.
    (Within the READONLY specifications!)
  8. Remove a document at the source.
    • The same document should be removed at the target.
  9. Modify the document attribute.
    • The same attribute change is applied at the target.
  10. Move the document from one folder to another folder at the source.
    • The same change is applied at the target.
  11. Change the replication frequency.
    • The target copy should be refreshed as per the frequency setting.
  12. Verify the folder change – Create a new folder at the source.
    • A new folder should be synced to the target, with identical permissions.
  13. Verify the folder change – Amend the name of an existing folder at the source.
    • The Folder Name change should be synced to the target Object Store.
  14. Remove a folder at the source Object Store.
    • The same folder should be removed at the target Object Store.
  15. Verify the target Object Store copy is still accessible if the source Object Store copy is stopped.
    • The target copy should still be accessible for read.

Leave a Reply

Your email address will not be published. Required fields are marked *