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:
- First replication:
• Verify the object store and folders.
• The same object store and folders are found at target. - Verify the document at the target side.
• The number of documents are the same. - Verify the permission setup.
• The permission setups are the same. - Check whether the copy at the target side is editable or not.
• The documents on the target Object Store must be READ-ONLY. - Verify the document change – Upload a new document at the source.
• A new document should be synced to the target, with identical permissions. - Upload a new version of the document at the source.
• A new version of the document should be found at the target. - Change the permissions of the document at the source.
• The permissions must be updated at the target.
(Within the READONLY specifications!) - Remove a document at the source.
• The same document should be removed at the target. - Modify the document attribute.
• The same attribute change is applied at the target. - Move the document from one folder to another folder at the source.
• The same change is applied at the target. - Change the replication frequency.
• The target copy should be refreshed as per the frequency setting. - Verify the folder change – Create a new folder at the source.
• A new folder should be synced to the target, with identical permissions. - 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. - Remove a folder at the source Object Store.
• The same folder should be removed at the target Object Store. - 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