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