From 12beaccec79319186ae2a7bf3663510584117a63 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 3 Sep 2008 18:04:37 +0000 Subject: Merge branch 'cms' of http://pokgsa.ibm.com/~jbongio/public/opensim --- .../ContentManagementSystem/IContentDatabase.cs | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs') 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 @@ +// IContentDatabase.cs +// User: bongiojp +// +// +// + +using System; +using libsecondlife; +using OpenSim.Region.Environment.Scenes; +using Nini.Config; + +namespace OpenSim.Region.Environment.Modules.ContentManagement +{ + public interface IContentDatabase + { + /// + /// Similar to the IRegionModule function. This is the function to be called before attempting to interface with the database. + /// Initialise should be called one for each region to be contained in the database. The directory should be the full path + /// to the repository and will only be defined once, regardless of how many times the method is called. + /// + void Initialise(Scene scene, String dir); + + /// + /// Should be called once after Initialise has been called. + /// + void PostInitialise(); + + /// + /// Returns the total number of revisions saved for a specific region. + /// + int NumOfRegionRev(LLUUID regionid); + + /// + /// Saves the Region terrain map and objects within the region as xml to the database. + /// + void SaveRegion(LLUUID regionid, string regionName, string logMessage); + + /// + /// Retrieves the xml that describes each individual object from the last revision or specific revision of the given region. + /// + System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid); + System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision); + + string GetRegionObjectHeightMap(LLUUID regionid); + string GetRegionObjectHeightMap(LLUUID regionid, int revision); + + /// + /// Returns a list of the revision numbers and corresponding log messages for a given region. + /// + System.Collections.Generic.SortedDictionary ListOfRegionRevisions(LLUUID id); + + /// + /// Returns the most recent revision number of a region. + /// + int GetMostRecentRevision(LLUUID regionid); + } +} -- cgit v1.1