diff options
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/IEstateDataService.cs')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IEstateDataService.cs | 64 |
1 files changed, 63 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IEstateDataService.cs b/OpenSim/Region/Framework/Interfaces/IEstateDataService.cs index 95c9659..7066cf2 100644 --- a/OpenSim/Region/Framework/Interfaces/IEstateDataService.cs +++ b/OpenSim/Region/Framework/Interfaces/IEstateDataService.cs | |||
@@ -34,12 +34,74 @@ namespace OpenSim.Region.Framework.Interfaces | |||
34 | { | 34 | { |
35 | public interface IEstateDataService | 35 | public interface IEstateDataService |
36 | { | 36 | { |
37 | /// <summary> | ||
38 | /// Load estate settings for a region. | ||
39 | /// </summary> | ||
40 | /// <param name="regionID"></param> | ||
41 | /// <param name="create">If true, then an estate is created if one is not found.</param> | ||
42 | /// <returns></returns> | ||
37 | EstateSettings LoadEstateSettings(UUID regionID, bool create); | 43 | EstateSettings LoadEstateSettings(UUID regionID, bool create); |
44 | |||
45 | /// <summary> | ||
46 | /// Load estate settings for an estate ID. | ||
47 | /// </summary> | ||
48 | /// <param name="estateID"></param> | ||
49 | /// <returns></returns> | ||
38 | EstateSettings LoadEstateSettings(int estateID); | 50 | EstateSettings LoadEstateSettings(int estateID); |
51 | |||
52 | /// <summary> | ||
53 | /// Load/Get all estate settings. | ||
54 | /// </summary> | ||
55 | /// <returns>An empty list if no estates were found.</returns> | ||
56 | List<EstateSettings> LoadEstateSettingsAll(); | ||
57 | |||
58 | /// <summary> | ||
59 | /// Store estate settings. | ||
60 | /// </summary> | ||
61 | /// <remarks> | ||
62 | /// This is also called by EstateSettings.Save()</remarks> | ||
63 | /// <param name="es"></param> | ||
39 | void StoreEstateSettings(EstateSettings es); | 64 | void StoreEstateSettings(EstateSettings es); |
65 | |||
66 | /// <summary> | ||
67 | /// Get estate IDs. | ||
68 | /// </summary> | ||
69 | /// <param name="search">Name of estate to search for. This is the exact name, no parttern matching is done.</param> | ||
70 | /// <returns></returns> | ||
40 | List<int> GetEstates(string search); | 71 | List<int> GetEstates(string search); |
72 | |||
73 | /// <summary> | ||
74 | /// Get the IDs of all estates owned by the given user. | ||
75 | /// </summary> | ||
76 | /// <returns>An empty list if no estates were found.</returns> | ||
77 | List<int> GetEstatesByOwner(UUID ownerID); | ||
78 | |||
79 | /// <summary> | ||
80 | /// Get the IDs of all estates. | ||
81 | /// </summary> | ||
82 | /// <returns>An empty list if no estates were found.</returns> | ||
83 | List<int> GetEstatesAll(); | ||
84 | |||
85 | /// <summary> | ||
86 | /// Link a region to an estate. | ||
87 | /// </summary> | ||
88 | /// <param name="regionID"></param> | ||
89 | /// <param name="estateID"></param> | ||
90 | /// <returns>true if the link succeeded, false otherwise</returns> | ||
41 | bool LinkRegion(UUID regionID, int estateID); | 91 | bool LinkRegion(UUID regionID, int estateID); |
92 | |||
93 | /// <summary> | ||
94 | /// Get the UUIDs of all the regions in an estate. | ||
95 | /// </summary> | ||
96 | /// <param name="estateID"></param> | ||
97 | /// <returns></returns> | ||
42 | List<UUID> GetRegions(int estateID); | 98 | List<UUID> GetRegions(int estateID); |
99 | |||
100 | /// <summary> | ||
101 | /// Delete an estate | ||
102 | /// </summary> | ||
103 | /// <param name="estateID"></param> | ||
104 | /// <returns>true if the delete succeeded, false otherwise</returns> | ||
43 | bool DeleteEstate(int estateID); | 105 | bool DeleteEstate(int estateID); |
44 | } | 106 | } |
45 | } | 107 | } \ No newline at end of file |