msiAdmWriteRulesFromStructIntoFile ( msParam_t *  inIrbFileNameParam,
msParam_t *  inCoreRuleStruct,
ruleExecInfo_t *  rei 
)
Description:
This is a microservice that writes into a given file the contents of a given rule structure. The file can be in 'server/config/reConfigs/' or any path on the server local file system.
Module:
core
Since:
2.5
Author:
Arcot Rajasekar
Date:
2010
Note:
This microservice requires iRODS administration privileges.
Writes a file (in irb format) with rules from a rule structure.
Example Usage:
See clients/icommands/test/rules3.0/
Parameters:
[in] inIrbFileNameParam - a msParam of type STR_MS_T, which is either a base-name in which case the file will be written into the 'server/config/reConfigs/' directory with an .irb extension, or a full file path in another directory on the server.
[in] inCoreRuleStruct - a msParam of type RuleStruct_MS_T
[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:
A new rule file is created
Returns:
integer
Return values:
0 on success
Precondition:
none
Postcondition:
none
See also:
msiAdmReadRulesFromFileIntoStruct, msiAdmInsertRulesFromStructIntoDB, msiGetRulesFromDBIntoStruct

Definition at line 651 of file ruleAdminMS.c.

Generated on Fri Mar 15 13:40:30 2013 for iRODS Documentation by  doxygen 1.6.3