msiSetDefaultResc ( msParam_t *  xdefaultRescList,
msParam_t *  xoptionStr,
ruleExecInfo_t *  rei 
)
Description:
This microservice sets the default resource and query resource metadata for the subsequent use based on an input array and condition given in the dataObject Input Structure.
Module:
core
Since:
pre-2.1
Author:
Mike Wan
Date:
2006-11
Note:
This function is mandatory even no defaultResc is specified (null) and should be executed right after the screening function msiSetNoDirectRescInp.
Example Usage:
See clients/icommands/test/rules3.0/
Parameters:
[in] xdefaultRescList - Required - a msParam of type STR_MS_T which is a list of -delimited resourceNames. It is a resource to use if no resource is input. A "null" means there is no defaultResc.
[in] xoptionStr - a msParam of type STR_MS_T which is an option (preferred, forced, random) with random as default. A "forced" input means the defaultResc will be used regardless of the user input. The forced action only apply to to users with normal privilege.
[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:
rei->doinp->condInput, rei->rsComm->proxyUser.authInfo.authFlag
Session Variables Modified:
rei->rgi gets set to a group (possibly singleton) list of resources in the preferred order.
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 67 of file reSysDataObjOpr.c.

Generated on Thu Nov 14 16:43:27 2013 for iRODS Documentation by  doxygen 1.6.3