1
0

RegionCombinerPermissionModule.cs 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Collections.Generic;
  29. using OpenMetaverse;
  30. using OpenSim.Framework;
  31. using OpenSim.Region.Framework.Interfaces;
  32. using OpenSim.Region.Framework.Scenes;
  33. namespace OpenSim.Region.RegionCombinerModule
  34. {
  35. public class RegionCombinerPermissionModule
  36. {
  37. private Scene m_rootScene;
  38. public RegionCombinerPermissionModule(Scene RootScene)
  39. {
  40. m_rootScene = RootScene;
  41. }
  42. #region Permission Override
  43. public bool BypassPermissions()
  44. {
  45. return m_rootScene.Permissions.BypassPermissions();
  46. }
  47. public void SetBypassPermissions(bool value)
  48. {
  49. m_rootScene.Permissions.SetBypassPermissions(value);
  50. }
  51. public bool PropagatePermissions()
  52. {
  53. return m_rootScene.Permissions.PropagatePermissions();
  54. }
  55. public uint GenerateClientFlags(UUID userid, UUID objectidid)
  56. {
  57. return m_rootScene.Permissions.GenerateClientFlags(userid,objectidid);
  58. }
  59. public bool CanAbandonParcel(UUID user, ILandObject parcel, Scene scene)
  60. {
  61. return m_rootScene.Permissions.CanAbandonParcel(user,parcel);
  62. }
  63. public bool CanReclaimParcel(UUID user, ILandObject parcel, Scene scene)
  64. {
  65. return m_rootScene.Permissions.CanReclaimParcel(user, parcel);
  66. }
  67. public bool CanDeedParcel(UUID user, ILandObject parcel, Scene scene)
  68. {
  69. return m_rootScene.Permissions.CanDeedParcel(user, parcel);
  70. }
  71. public bool CanDeedObject(UUID user, UUID @group, Scene scene)
  72. {
  73. return m_rootScene.Permissions.CanDeedObject(user,@group);
  74. }
  75. public bool IsGod(UUID user, Scene requestfromscene)
  76. {
  77. return m_rootScene.Permissions.IsGod(user);
  78. }
  79. public bool CanDuplicateObject(int objectcount, UUID objectid, UUID owner, Scene scene, Vector3 objectposition)
  80. {
  81. return m_rootScene.Permissions.CanDuplicateObject(objectcount, objectid, owner, objectposition);
  82. }
  83. public bool CanDeleteObject(UUID objectid, UUID deleter, Scene scene)
  84. {
  85. return m_rootScene.Permissions.CanDeleteObject(objectid, deleter);
  86. }
  87. public bool CanEditObject(UUID objectid, UUID editorid, Scene scene)
  88. {
  89. return m_rootScene.Permissions.CanEditObject(objectid, editorid);
  90. }
  91. public bool CanEditParcelProperties(UUID user, ILandObject parcel, GroupPowers g, Scene scene)
  92. {
  93. return m_rootScene.Permissions.CanEditParcelProperties(user, parcel, g);
  94. }
  95. public bool CanInstantMessage(UUID user, UUID target, Scene startscene)
  96. {
  97. return m_rootScene.Permissions.CanInstantMessage(user, target);
  98. }
  99. public bool CanInventoryTransfer(UUID user, UUID target, Scene startscene)
  100. {
  101. return m_rootScene.Permissions.CanInventoryTransfer(user, target);
  102. }
  103. public bool CanIssueEstateCommand(UUID user, Scene requestfromscene, bool ownercommand)
  104. {
  105. return m_rootScene.Permissions.CanIssueEstateCommand(user, ownercommand);
  106. }
  107. public bool CanMoveObject(UUID objectid, UUID moverid, Scene scene)
  108. {
  109. return m_rootScene.Permissions.CanMoveObject(objectid, moverid);
  110. }
  111. public bool CanObjectEntry(UUID objectid, bool enteringregion, Vector3 newpoint, Scene scene)
  112. {
  113. return m_rootScene.Permissions.CanObjectEntry(objectid, enteringregion, newpoint);
  114. }
  115. public bool CanReturnObjects(ILandObject land, UUID user, List<SceneObjectGroup> objects, Scene scene)
  116. {
  117. return m_rootScene.Permissions.CanReturnObjects(land, user, objects);
  118. }
  119. public bool CanRezObject(int objectcount, UUID owner, Vector3 objectposition, Scene scene)
  120. {
  121. return m_rootScene.Permissions.CanRezObject(objectcount, owner, objectposition);
  122. }
  123. public bool CanRunConsoleCommand(UUID user, Scene requestfromscene)
  124. {
  125. return m_rootScene.Permissions.CanRunConsoleCommand(user);
  126. }
  127. public bool CanRunScript(UUID script, UUID objectid, UUID user, Scene scene)
  128. {
  129. return m_rootScene.Permissions.CanRunScript(script, objectid, user);
  130. }
  131. public bool CanCompileScript(UUID owneruuid, int scripttype, Scene scene)
  132. {
  133. return m_rootScene.Permissions.CanCompileScript(owneruuid, scripttype);
  134. }
  135. public bool CanSellParcel(UUID user, ILandObject parcel, Scene scene)
  136. {
  137. return m_rootScene.Permissions.CanSellParcel(user, parcel);
  138. }
  139. public bool CanTakeObject(UUID objectid, UUID stealer, Scene scene)
  140. {
  141. return m_rootScene.Permissions.CanTakeObject(objectid, stealer);
  142. }
  143. public bool CanTakeCopyObject(UUID objectid, UUID userid, Scene inscene)
  144. {
  145. return m_rootScene.Permissions.CanTakeObject(objectid, userid);
  146. }
  147. public bool CanTerraformLand(UUID user, Vector3 position, Scene requestfromscene)
  148. {
  149. return m_rootScene.Permissions.CanTerraformLand(user, position);
  150. }
  151. public bool CanLinkObject(UUID user, UUID objectid)
  152. {
  153. return m_rootScene.Permissions.CanLinkObject(user, objectid);
  154. }
  155. public bool CanDelinkObject(UUID user, UUID objectid)
  156. {
  157. return m_rootScene.Permissions.CanDelinkObject(user, objectid);
  158. }
  159. public bool CanBuyLand(UUID user, ILandObject parcel, Scene scene)
  160. {
  161. return m_rootScene.Permissions.CanBuyLand(user, parcel);
  162. }
  163. public bool CanViewNotecard(UUID script, UUID objectid, UUID user, Scene scene)
  164. {
  165. return m_rootScene.Permissions.CanViewNotecard(script, objectid, user);
  166. }
  167. public bool CanViewScript(UUID script, UUID objectid, UUID user, Scene scene)
  168. {
  169. return m_rootScene.Permissions.CanViewScript(script, objectid, user);
  170. }
  171. public bool CanEditNotecard(UUID notecard, UUID objectid, UUID user, Scene scene)
  172. {
  173. return m_rootScene.Permissions.CanEditNotecard(notecard, objectid, user);
  174. }
  175. public bool CanEditScript(UUID script, UUID objectid, UUID user, Scene scene)
  176. {
  177. return m_rootScene.Permissions.CanEditScript(script, objectid, user);
  178. }
  179. public bool CanCreateObjectInventory(int invtype, UUID objectid, UUID userid)
  180. {
  181. return m_rootScene.Permissions.CanCreateObjectInventory(invtype, objectid, userid);
  182. }
  183. public bool CanEditObjectInventory(UUID objectid, UUID editorid, Scene scene)
  184. {
  185. return m_rootScene.Permissions.CanEditObjectInventory(objectid, editorid);
  186. }
  187. public bool CanCopyObjectInventory(UUID itemid, UUID objectid, UUID userid)
  188. {
  189. return m_rootScene.Permissions.CanCopyObjectInventory(itemid, objectid, userid);
  190. }
  191. public bool CanDeleteObjectInventory(UUID itemid, UUID objectid, UUID userid)
  192. {
  193. return m_rootScene.Permissions.CanDeleteObjectInventory(itemid, objectid, userid);
  194. }
  195. public bool CanResetScript(UUID prim, UUID script, UUID user, Scene scene)
  196. {
  197. return m_rootScene.Permissions.CanResetScript(prim, script, user);
  198. }
  199. public bool CanCreateUserInventory(int invtype, UUID userid)
  200. {
  201. return m_rootScene.Permissions.CanCreateUserInventory(invtype, userid);
  202. }
  203. public bool CanCopyUserInventory(UUID itemid, UUID userid)
  204. {
  205. return m_rootScene.Permissions.CanCopyUserInventory(itemid, userid);
  206. }
  207. public bool CanEditUserInventory(UUID itemid, UUID userid)
  208. {
  209. return m_rootScene.Permissions.CanEditUserInventory(itemid, userid);
  210. }
  211. public bool CanDeleteUserInventory(UUID itemid, UUID userid)
  212. {
  213. return m_rootScene.Permissions.CanDeleteUserInventory(itemid, userid);
  214. }
  215. public bool CanTeleport(UUID userid, Scene scene)
  216. {
  217. return m_rootScene.Permissions.CanTeleport(userid);
  218. }
  219. #endregion
  220. }
  221. }