123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- using System;
- using System.Collections.Generic;
- using System.Reflection;
- using log4net;
- using OpenMetaverse;
- using OpenSim.Framework;
- using OpenSim.Region.Framework;
- using OpenSim.Region.Framework.Interfaces;
- namespace OpenSim.Data.Null
- {
- public class NullEstateStore : IEstateDataStore
- {
- private EstateSettings m_estate = null;
- private EstateSettings GetEstate()
- {
- if (m_estate == null)
- {
-
-
- m_estate = new EstateSettings();
- m_estate.EstateID = 1;
- m_estate.OnSave += StoreEstateSettings;
- }
- return m_estate;
- }
- protected virtual Assembly Assembly
- {
- get { return GetType().Assembly; }
- }
- public NullEstateStore()
- {
- }
- public NullEstateStore(string connectionString)
- {
- Initialise(connectionString);
- }
- public void Initialise(string connectionString)
- {
- }
- private string[] FieldList
- {
- get { return new string[0]; }
- }
- public EstateSettings LoadEstateSettings(UUID regionID, bool create)
- {
- return GetEstate();
- }
- public void StoreEstateSettings(EstateSettings es)
- {
- m_estate = es;
- return;
- }
- public EstateSettings LoadEstateSettings(int estateID)
- {
- return GetEstate();
- }
- public EstateSettings CreateNewEstate()
- {
- return new EstateSettings();
- }
-
- public List<EstateSettings> LoadEstateSettingsAll()
- {
- List<EstateSettings> allEstateSettings = new List<EstateSettings>();
- allEstateSettings.Add(GetEstate());
- return allEstateSettings;
- }
-
- public List<int> GetEstatesAll()
- {
- List<int> result = new List<int>();
- result.Add((int)GetEstate().EstateID);
- return result;
- }
- public List<int> GetEstates(string search)
- {
- List<int> result = new List<int>();
- return result;
- }
- public bool LinkRegion(UUID regionID, int estateID)
- {
- return false;
- }
- public List<UUID> GetRegions(int estateID)
- {
- List<UUID> result = new List<UUID>();
- return result;
- }
- public bool DeleteEstate(int estateID)
- {
- return false;
- }
- #region IEstateDataStore Members
- public List<int> GetEstatesByOwner(UUID ownerID)
- {
- return new List<int>();
- }
- #endregion
- }
- }
|