diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs | 103 |
1 files changed, 58 insertions, 45 deletions
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs index f37f95d..1d81978 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs | |||
@@ -1,57 +1,70 @@ | |||
1 | #region Header | ||
2 | |||
1 | // IContentDatabase.cs | 3 | // IContentDatabase.cs |
2 | // User: bongiojp | 4 | // User: bongiojp |
3 | // | 5 | // |
4 | // | 6 | // |
5 | // | 7 | // |
6 | 8 | ||
9 | #endregion Header | ||
10 | |||
7 | using System; | 11 | using System; |
12 | |||
8 | using libsecondlife; | 13 | using libsecondlife; |
14 | |||
9 | using OpenSim.Region.Environment.Scenes; | 15 | using OpenSim.Region.Environment.Scenes; |
16 | |||
10 | using Nini.Config; | 17 | using Nini.Config; |
11 | 18 | ||
12 | namespace OpenSim.Region.Environment.Modules.ContentManagement | 19 | namespace OpenSim.Region.Environment.Modules.ContentManagement |
13 | { | 20 | { |
14 | public interface IContentDatabase | 21 | public interface IContentDatabase |
15 | { | 22 | { |
16 | /// <summary> | 23 | #region Methods |
17 | /// Similar to the IRegionModule function. This is the function to be called before attempting to interface with the database. | 24 | |
18 | /// Initialise should be called one for each region to be contained in the database. The directory should be the full path | 25 | /// <summary> |
19 | /// to the repository and will only be defined once, regardless of how many times the method is called. | 26 | /// Returns the most recent revision number of a region. |
20 | /// </summary> | 27 | /// </summary> |
21 | void Initialise(Scene scene, String dir); | 28 | int GetMostRecentRevision(LLUUID regionid); |
22 | 29 | ||
23 | /// <summary> | 30 | string GetRegionObjectHeightMap(LLUUID regionid); |
24 | /// Should be called once after Initialise has been called. | 31 | |
25 | /// </summary> | 32 | string GetRegionObjectHeightMap(LLUUID regionid, int revision); |
26 | void PostInitialise(); | 33 | |
27 | 34 | /// <summary> | |
28 | /// <summary> | 35 | /// Retrieves the xml that describes each individual object from the last revision or specific revision of the given region. |
29 | /// Returns the total number of revisions saved for a specific region. | 36 | /// </summary> |
30 | /// </summary> | 37 | System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid); |
31 | int NumOfRegionRev(LLUUID regionid); | 38 | |
32 | 39 | System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision); | |
33 | /// <summary> | 40 | |
34 | /// Saves the Region terrain map and objects within the region as xml to the database. | 41 | /// <summary> |
35 | /// </summary> | 42 | /// Similar to the IRegionModule function. This is the function to be called before attempting to interface with the database. |
36 | void SaveRegion(LLUUID regionid, string regionName, string logMessage); | 43 | /// Initialise should be called one for each region to be contained in the database. The directory should be the full path |
37 | 44 | /// to the repository and will only be defined once, regardless of how many times the method is called. | |
38 | /// <summary> | 45 | /// </summary> |
39 | /// Retrieves the xml that describes each individual object from the last revision or specific revision of the given region. | 46 | void Initialise(Scene scene, String dir); |
40 | /// </summary> | 47 | |
41 | System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid); | 48 | /// <summary> |
42 | System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision); | 49 | /// Returns a list of the revision numbers and corresponding log messages for a given region. |
43 | 50 | /// </summary> | |
44 | string GetRegionObjectHeightMap(LLUUID regionid); | 51 | System.Collections.Generic.SortedDictionary<string, string> ListOfRegionRevisions(LLUUID id); |
45 | string GetRegionObjectHeightMap(LLUUID regionid, int revision); | 52 | |
46 | 53 | /// <summary> | |
47 | /// <summary> | 54 | /// Returns the total number of revisions saved for a specific region. |
48 | /// Returns a list of the revision numbers and corresponding log messages for a given region. | 55 | /// </summary> |
49 | /// </summary> | 56 | int NumOfRegionRev(LLUUID regionid); |
50 | System.Collections.Generic.SortedDictionary<string, string> ListOfRegionRevisions(LLUUID id); | 57 | |
51 | 58 | /// <summary> | |
52 | /// <summary> | 59 | /// Should be called once after Initialise has been called. |
53 | /// Returns the most recent revision number of a region. | 60 | /// </summary> |
54 | /// </summary> | 61 | void PostInitialise(); |
55 | int GetMostRecentRevision(LLUUID regionid); | 62 | |
56 | } | 63 | /// <summary> |
57 | } | 64 | /// Saves the Region terrain map and objects within the region as xml to the database. |
65 | /// </summary> | ||
66 | void SaveRegion(LLUUID regionid, string regionName, string logMessage); | ||
67 | |||
68 | #endregion Methods | ||
69 | } | ||
70 | } \ No newline at end of file | ||