Question share from list / consulta compartir desde lista

Question share from list / consulta compartir desde lista

Español:
Buenas me gustaría saber si existe la Posibilidad de compartir por medio de una lista armada . 
Espero se comprenda la inquietud y disculpen la traducción.

Ingles:
Good I wonder if there is a possibility of sharing through an armed list. I hope the concern is understood and excuse the translation


  1. recordUsers
  2. {
  3.       email={user1@tes.com, user2@test.com........} (String)
  4. }
  5. recordItemShare
  6. {
  7.       type = {"section, form, view, page"} (String)
  8.       nameObject = {"form1, form2, section3, list1......"} (String)
  9.       userShare = { user1@tes.com}(String)
  10. }
  11. for each iUsers in recordUsers
  12. {
  13.       for each iItemShare in recordItemShare
  14.       {
  15.             if(Users.email= iItemShare.userShare)
  16.             {
  17.                   if(iItemShare.type="section")
  18.                   {
  19.                         share section(iItemShare.nameObject, iItemShare.userShare);
  20.                   }
  21.                   else if(iItemShare.type="form") 
  22.                   {
  23.                         share form( iItemShare.nameObject, iItemShare.userShare);
  24.                   }
  25.                   else  if(iItemShare.type="view")  
  26.                   {
  27.                         share view( iItemShare.nameObject, iItemShare.userShare);
  28.                   }
  29.                   else  if(iItemShare.type="page")  
  30.                   {
  31.                         share page( iItemShare.nameObject, iItemShare.userShare);
  32.                   }
  33.             }
  34.       }
  35. }

I await comments 
thank you.