diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/IXGroupData.cs (renamed from OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.cs) | 60 |
1 files changed, 36 insertions, 24 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.cs b/OpenSim/Data/IXGroupData.cs index a88fe88..2965e8c 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.cs +++ b/OpenSim/Data/IXGroupData.cs | |||
@@ -25,35 +25,47 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using OpenSim.Framework.Servers.HttpServer; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using OpenMetaverse; | ||
31 | using OpenSim.Framework; | ||
29 | 32 | ||
30 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 33 | namespace OpenSim.Data |
31 | { | 34 | { |
35 | public class XGroup | ||
36 | { | ||
37 | public UUID groupID; | ||
38 | public UUID ownerRoleID; | ||
39 | public string name; | ||
40 | public string charter; | ||
41 | public bool showInList; | ||
42 | public UUID insigniaID; | ||
43 | public int membershipFee; | ||
44 | public bool openEnrollment; | ||
45 | public bool allowPublish; | ||
46 | public bool maturePublish; | ||
47 | public UUID founderID; | ||
48 | public ulong everyonePowers; | ||
49 | public ulong ownersPowers; | ||
32 | 50 | ||
33 | /// <remarks> | 51 | public XGroup Clone() |
34 | /// The handler delegates are not noteworthy. The allocator allows | 52 | { |
35 | /// a given handler to optionally subclass the base RequestData | 53 | return (XGroup)MemberwiseClone(); |
36 | /// structure to carry any locally required per-request state | 54 | } |
37 | /// needed. | 55 | } |
38 | /// </remarks> | ||
39 | |||
40 | public delegate void RestMethodHandler(RequestData rdata); | ||
41 | public delegate RequestData RestMethodAllocator(OSHttpRequest request, OSHttpResponse response, string path); | ||
42 | 56 | ||
43 | /// <summary> | 57 | /// <summary> |
44 | /// This interface exports the generic plugin-handling services | 58 | /// Early stub interface for groups data, not final. |
45 | /// available to each loaded REST services module (IRest implementation) | ||
46 | /// </summary> | 59 | /// </summary> |
47 | 60 | /// <remarks> | |
48 | internal interface IRestHandler | 61 | /// Currently in-use only for regression test purposes. Needs to be filled out over time. |
62 | /// </remarks> | ||
63 | public interface IXGroupData | ||
49 | { | 64 | { |
50 | 65 | bool StoreGroup(XGroup group); | |
51 | string MsgId { get; } | 66 | XGroup[] GetGroups(string field, string val); |
52 | string RequestId { get; } | 67 | XGroup[] GetGroups(string[] fields, string[] vals); |
53 | 68 | bool DeleteGroups(string field, string val); | |
54 | void AddPathHandler(RestMethodHandler mh, string path, RestMethodAllocator ma); | 69 | bool DeleteGroups(string[] fields, string[] vals); |
55 | void AddStreamHandler(string httpMethod, string path, RestMethod method); | ||
56 | |||
57 | } | 70 | } |
58 | 71 | } \ No newline at end of file | |
59 | } | ||