msiMergeDataCopies ( msParam_t *  objPath,
msParam_t *  currentColl,
msParam_t *  masterColl,
msParam_t *  status,
ruleExecInfo_t *  rei 
)
Description:
Custom microservice for NARA consolidation rule
Module:
ERA
Since:
2.2
Author:
Antoine de Torcy
Date:
2009-05-22
Note:
   Takes an object, a current home collection and a master collection:
   1) If the object is an orphan (no corresponding object in the master collection) 
      it is moved to the master collection.
   2) If there is a corresponding object in the master collection, their 
      checksums are compared.
      2a) If the checksums match, the object is registered as a replica of 
          the master object. Its physical file is rearranged accordingly to ensure
          consistency between logical and physical paths. 
      2b) If the checksums do not match, the object is flagged for manual check:
          It gets a new metadata attribute whose name is "CHECKSUM_MISMATCH" and
          whose value is the checksum of the master object.
Example Usage:
See clients/icommands/test/rules3.0/
Parameters:
[in] objPath - A DataObjInp_MS_T or a STR_MS_T with the target object's path.
[in] currentColl - A CollInp_MS_T or a STR_MS_T with the current collection's path.
[in] masterColl - A CollInp_MS_T or a STR_MS_T with the master collection's path.
[out] status - An INT_MS_T containing the operation status.
[in,out] rei - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation.
Session Variables Used:
None
Session Variables Modified:
None
iCAT Attributes Used:
None
iCAT Attributes Modified:
None
Side Effect:
None
Returns:
integer
Return values:
0 on success
Precondition:
None
Postcondition:
None
See also:
None

Definition at line 2059 of file eraMS.c.

Generated on Mon Jun 25 14:02:14 2012 for iRODS Documentation by  doxygen 1.6.3