inheritSharings
This method is used to inherit the sharings from parent folder to the file.
void inheritSharings(List<String> wipIdList, String currentFolderId)
Parameters:
wipIdList:Â List of Salesforce.com IDs of "file" records(either attachments or S-Drive Folder files) as a String.
currentFolderId:Â Id of the parent folder of the file for sharing.
Example code:
List<String> wipIdList = new List <String>();
wipIdList .add(uploadRequestInfos .fileWipId);
cg.SDriveTools.inheritSharings(wipIdList, currentFolderId);
UploadRequestInfo |
String fileName{get; set;} |
Â
ResultObject |
String status {get;set;}// success – fail |