From 1cadad9ec62c54fe8ebde8a895817bd980fed975 Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Sat, 21 Feb 2009 09:39:33 +0000
Subject: * Applied a patch that: Added estate ban table to migration scripts
and nhibernate mapping. Refactored property getters and setters for estate
ban object to support NHibernate. * Added estate ban table to migration
scripts of all supported databases. * Added nhibernate mapping for EstateBans
property of EstateSettings * Refactored property accessors for EstateBan
object. * Added comments for EstateBan properties. * Ensured that NHibernate
tests pass with NUnitGUI. * Ensured that nant test target passes.
This fixes mantis #3210. Thank you, tlaukkan!
---
OpenSim/Framework/EstateBan.cs | 85 +++++++++++++++++++++++++++++++++++++++---
1 file changed, 80 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Framework/EstateBan.cs')
diff --git a/OpenSim/Framework/EstateBan.cs b/OpenSim/Framework/EstateBan.cs
index 5c3aa42..64d32e8 100644
--- a/OpenSim/Framework/EstateBan.cs
+++ b/OpenSim/Framework/EstateBan.cs
@@ -31,10 +31,85 @@ namespace OpenSim.Framework
{
public class EstateBan
{
- public uint estateID = 1;
- public UUID bannedUUID = UUID.Zero;
- public string bannedIP = string.Empty;
- public string bannedIPHostMask = string.Empty;
- public string bannedNameMask = string.Empty;
+ private uint m_estateID = 1;
+ ///
+ /// ID of the estate this ban limits access to.
+ ///
+ public uint EstateID
+ {
+ get
+ {
+ return m_estateID;
+ }
+ set
+ {
+ m_estateID = value;
+ }
+ }
+
+ private UUID m_bannedUserID = UUID.Zero;
+ ///
+ /// ID of the banned user.
+ ///
+ public UUID BannedUserID
+ {
+ get
+ {
+ return m_bannedUserID;
+ }
+ set
+ {
+ m_bannedUserID = value;
+ }
+ }
+
+ private string m_bannedHostAddress = string.Empty;
+ ///
+ /// IP address or domain name of the banned client.
+ ///
+ public string BannedHostAddress
+ {
+ get
+ {
+ return m_bannedHostAddress;
+ }
+ set
+ {
+ m_bannedHostAddress = value;
+ }
+ }
+
+ private string m_bannedHostIPMask = string.Empty;
+ ///
+ /// IP address mask for banning group of client hosts.
+ ///
+ public string BannedHostIPMask
+ {
+ get
+ {
+ return m_bannedHostIPMask;
+ }
+ set
+ {
+ m_bannedHostIPMask = value;
+ }
+ }
+
+ private string m_bannedHostNameMask = string.Empty;
+ ///
+ /// Domain name mask for banning group of client hosts.
+ ///
+ public string BannedHostNameMask
+ {
+ get
+ {
+ return m_bannedHostNameMask;
+ }
+ set
+ {
+ m_bannedHostNameMask = value;
+ }
+ }
+
}
}
--
cgit v1.1