Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisSetFolderRuleToPublication

int ctMemphisSetFolderRuleToPublication( pRCESJson request, ppRCESJson result )

Description:

Set existing folder list into a Publication. If no rules are added by a folder element, it will be assumed everything in the folder: include "*" wildcard rule.

Constraints:

  • "id" must be an existing Publication ID;
  • all "folderRuleList/folder" must be existing folder IDs (from FileTable);

Parameters:

  • request [IN] - Add Publication Files request in JSON format. For example:

{

"id": 0,

"folderRuleList": [

{

"id": 243,

"listType": "exclude",

"filenames": [

"customer.dat",

"product.dat"

],

"filenameWildcards": [

"tmp*",

"*.tmp"

],

"filenameRegex": [

"[^abc]",

"(def*|*.cfg)"

]

},

{

"id": 6438,

"listType": "exclude",

"filenames": [

"customer.dat",

"product.dat"

],

"filenameWildcards": [

"tmp*",

"*.tmp"

],

"filenameRegex": [

"[^abc]",

"(def*|*.cfg)"

]

}

]

}

  • result [OUT] - Result in JSON format. For example:

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

}

}

Return:

Error code

TOCIndex