msiAdmInsertRulesFromStructIntoDB ( msParam_t *  inIrbBaseNameParam,
msParam_t *  inCoreRuleStruct,
ruleExecInfo_t *  rei 
)
Description:
This is a microservice that reads the contents of a rule structure and writes them as a new rule base set by populating the core rule tables of the iCAT. It also maintains versioning of the rule base in the iCAT by giving an older version number to the existing base set of rules.
Module:
core
Since:
2.5
Author:
Arcot Rajasekar
Date:
2010
Note:
This microservice requires iRODS administration privileges.
Adds rules to the iCAT rule base.
Example Usage:
See clients/icommands/test/rules3.0/
Parameters:
[in] inIrbBaseNameParam - a msParam of type STR_MS_T, which is name of the base that is being added.
[in] inCoreRuleStruct - a msParam of type RuleStruct_MS_T containing the rules.
[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:
icat rule-tables get modified
Side Effect:
none
Returns:
integer
Return values:
0 on success
Precondition:
none
Postcondition:
none
See also:
msiAdmReadRulesFromFileIntoStruct, msiGetRulesFromDBIntoStruct, msiAdmWriteRulesFromStructIntoFile

Definition at line 659 of file ruleAdminMS.c.

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