msiAdmReadRulesFromFileIntoStruct ( msParam_t *  inIrbFileNameParam,
msParam_t *  outCoreRuleStruct,
ruleExecInfo_t *  rei 
)
Description:
This is a microservice that reads the given file in the configuration directory 'server/config/reConfigs' or any file in the server local file system and reads them into a rule structure.
Module:
core
Since:
2.5
Author:
Arcot Rajasekar
Date:
2010
Note:
This microservice requires iRODS administration privileges.
Adds the given rules from an irb-file to a given rule structure.
Example Usage:
See clients/icommands/test/rules3.0/
Parameters:
[in] inIrbFileNameParam - a msParam of type STR_MS_T, a Rules file in irb format, either in 'server/config/reConfigs/' and without the .irb extension, or a full file path in another directory on the server.
[out] outCoreRuleStruct - a msParam of type RuleStruct_MS_T (can be NULL in which case it is allocated)
[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:
msiAdmInsertRulesFromStructIntoDB, msiGetRulesFromDBIntoStruct, msiAdmWriteRulesFromStructIntoFile

Definition at line 580 of file ruleAdminMS.c.

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