diff options
author | MW | 2007-06-19 10:40:20 +0000 |
---|---|---|
committer | MW | 2007-06-19 10:40:20 +0000 |
commit | 320fbcb7b4179968994100d0819da2e0732451ef (patch) | |
tree | 7babe0b5a0b7d3c4a46cd3f7a6198565d5e31e76 /OpenSim/OpenSim.LocalCommunications | |
parent | * Cleaning up unused zircon branch. (diff) | |
download | opensim-SC-320fbcb7b4179968994100d0819da2e0732451ef.zip opensim-SC-320fbcb7b4179968994100d0819da2e0732451ef.tar.gz opensim-SC-320fbcb7b4179968994100d0819da2e0732451ef.tar.bz2 opensim-SC-320fbcb7b4179968994100d0819da2e0732451ef.tar.xz |
Made a base class from the Grid mode UserServer.UserManager and included that in the OpenSim solution.
Included OpenGrid.Framework.Data in the OpenSim solution (and OpenGrid.Framework.Data.DB4O).
Changed OpenSim.LocalCommunications.LocalUserServices so that it inherits from the UserManagement Base class. (still not finished implementing the CustomiseResponse() method)
Diffstat (limited to '')
7 files changed, 80 insertions, 110 deletions
diff --git a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs index fb7dc7d..795f99d 100644 --- a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs +++ b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs | |||
@@ -35,21 +35,19 @@ using OpenSim.Framework.Interfaces; | |||
35 | using OpenSim.Framework.Types; | 35 | using OpenSim.Framework.Types; |
36 | using OpenGrid.Framework.Communications; | 36 | using OpenGrid.Framework.Communications; |
37 | 37 | ||
38 | using OpenSim.LocalCommunications.LocalUserManagement; | ||
39 | 38 | ||
40 | namespace OpenSim.LocalCommunications | 39 | namespace OpenSim.LocalCommunications |
41 | { | 40 | { |
42 | public class CommunicationsLocal : CommunicationsManager | 41 | public class CommunicationsLocal : CommunicationsManager |
43 | { | 42 | { |
44 | public LocalBackEndServices SandBoxManager = new LocalBackEndServices(); | 43 | public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); |
45 | public LocalUserServices UserServices = new LocalUserServices(); | 44 | protected LocalUserServices UserServices = new LocalUserServices(); |
46 | 45 | ||
47 | public CommunicationsLocal() | 46 | public CommunicationsLocal() |
48 | { | 47 | { |
49 | |||
50 | UserServer = UserServices; | 48 | UserServer = UserServices; |
51 | GridServer = SandBoxManager; | 49 | GridServer = SandBoxServices; |
52 | InterRegion = SandBoxManager; | 50 | InterRegion = SandBoxServices; |
53 | } | 51 | } |
54 | } | 52 | } |
55 | } | 53 | } |
diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs deleted file mode 100644 index f438117..0000000 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenGrid.Framework.Communications; | ||
6 | using OpenSim.Framework.User; | ||
7 | |||
8 | using libsecondlife; | ||
9 | |||
10 | namespace OpenSim.LocalCommunications.LocalUserManagement | ||
11 | { | ||
12 | public class LocalUserServices : IUserServices | ||
13 | { | ||
14 | public UserProfileManager userProfileManager = new UserProfileManager(); | ||
15 | public LocalLoginService localLoginService; | ||
16 | public LocalUserServices() | ||
17 | { | ||
18 | localLoginService = new LocalLoginService(this); | ||
19 | } | ||
20 | |||
21 | public UserProfile GetUserProfile(string first_name, string last_name) | ||
22 | { | ||
23 | return GetUserProfile(first_name + " " + last_name); | ||
24 | } | ||
25 | |||
26 | public UserProfile GetUserProfile(string name) | ||
27 | { | ||
28 | return null; | ||
29 | } | ||
30 | public UserProfile GetUserProfile(LLUUID avatar_id) | ||
31 | { | ||
32 | return null; | ||
33 | } | ||
34 | |||
35 | } | ||
36 | } | ||
diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs deleted file mode 100644 index 5f9d028..0000000 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using libsecondlife; | ||
6 | using OpenSim.Framework.User; | ||
7 | |||
8 | namespace OpenSim.LocalCommunications.LocalUserManagement | ||
9 | { | ||
10 | public class UserProfileManager | ||
11 | { | ||
12 | Dictionary<LLUUID, UserProfile> userProfiles = new Dictionary<LLUUID, UserProfile>(); | ||
13 | |||
14 | public UserProfileManager() | ||
15 | { | ||
16 | } | ||
17 | |||
18 | private LLUUID getUserUUID(string first_name, string last_name) | ||
19 | { | ||
20 | return getUserUUID(first_name + " " + last_name); | ||
21 | } | ||
22 | private LLUUID getUserUUID(string name) | ||
23 | { | ||
24 | return null; | ||
25 | } | ||
26 | |||
27 | |||
28 | public UserProfile getUserProfile(string first_name, string last_name) | ||
29 | { | ||
30 | return getUserProfile(first_name + " " + last_name); | ||
31 | } | ||
32 | public UserProfile getUserProfile(string name) | ||
33 | { | ||
34 | return null; | ||
35 | } | ||
36 | public UserProfile getUserProfile(LLUUID user_id) | ||
37 | { | ||
38 | return null; | ||
39 | } | ||
40 | |||
41 | } | ||
42 | } | ||
diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs new file mode 100644 index 0000000..0fe52a7 --- /dev/null +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs | |||
@@ -0,0 +1,43 @@ | |||
1 | using System; | ||
2 | using System.Collections; | ||
3 | using System.Collections.Generic; | ||
4 | using System.Text; | ||
5 | |||
6 | using OpenGrid.Framework.Communications; | ||
7 | using OpenSim.Framework.User; | ||
8 | using OpenGrid.Framework.UserManagement; | ||
9 | using OpenGrid.Framework.Data; | ||
10 | |||
11 | using libsecondlife; | ||
12 | |||
13 | namespace OpenSim.LocalCommunications | ||
14 | { | ||
15 | public class LocalUserServices : UserManagerBase, IUserServices | ||
16 | { | ||
17 | |||
18 | public LocalUserServices() | ||
19 | { | ||
20 | |||
21 | } | ||
22 | |||
23 | public UserProfileData GetUserProfile(string first_name, string last_name) | ||
24 | { | ||
25 | return GetUserProfile(first_name + " " + last_name); | ||
26 | } | ||
27 | |||
28 | public UserProfileData GetUserProfile(string name) | ||
29 | { | ||
30 | return null; | ||
31 | } | ||
32 | public UserProfileData GetUserProfile(LLUUID avatar_id) | ||
33 | { | ||
34 | return null; | ||
35 | } | ||
36 | |||
37 | public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | ||
38 | { | ||
39 | |||
40 | } | ||
41 | |||
42 | } | ||
43 | } | ||
diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj index f7c28eb..3cb36da 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj | |||
@@ -1,4 +1,4 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <ProjectType>Local</ProjectType> | 3 | <ProjectType>Local</ProjectType> |
4 | <ProductVersion>8.0.50727</ProductVersion> | 4 | <ProductVersion>8.0.50727</ProductVersion> |
@@ -6,8 +6,7 @@ | |||
6 | <ProjectGuid>{79CED992-0000-0000-0000-000000000000}</ProjectGuid> | 6 | <ProjectGuid>{79CED992-0000-0000-0000-000000000000}</ProjectGuid> |
7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
9 | <ApplicationIcon> | 9 | <ApplicationIcon></ApplicationIcon> |
10 | </ApplicationIcon> | ||
11 | <AssemblyKeyContainerName> | 10 | <AssemblyKeyContainerName> |
12 | </AssemblyKeyContainerName> | 11 | </AssemblyKeyContainerName> |
13 | <AssemblyName>OpenSim.LocalCommunications</AssemblyName> | 12 | <AssemblyName>OpenSim.LocalCommunications</AssemblyName> |
@@ -16,11 +15,9 @@ | |||
16 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
17 | <DelaySign>false</DelaySign> | 16 | <DelaySign>false</DelaySign> |
18 | <OutputType>Library</OutputType> | 17 | <OutputType>Library</OutputType> |
19 | <AppDesignerFolder> | 18 | <AppDesignerFolder></AppDesignerFolder> |
20 | </AppDesignerFolder> | ||
21 | <RootNamespace>OpenSim.LocalCommunications</RootNamespace> | 19 | <RootNamespace>OpenSim.LocalCommunications</RootNamespace> |
22 | <StartupObject> | 20 | <StartupObject></StartupObject> |
23 | </StartupObject> | ||
24 | <FileUpgradeFlags> | 21 | <FileUpgradeFlags> |
25 | </FileUpgradeFlags> | 22 | </FileUpgradeFlags> |
26 | </PropertyGroup> | 23 | </PropertyGroup> |
@@ -31,8 +28,7 @@ | |||
31 | <ConfigurationOverrideFile> | 28 | <ConfigurationOverrideFile> |
32 | </ConfigurationOverrideFile> | 29 | </ConfigurationOverrideFile> |
33 | <DefineConstants>TRACE;DEBUG</DefineConstants> | 30 | <DefineConstants>TRACE;DEBUG</DefineConstants> |
34 | <DocumentationFile> | 31 | <DocumentationFile></DocumentationFile> |
35 | </DocumentationFile> | ||
36 | <DebugSymbols>True</DebugSymbols> | 32 | <DebugSymbols>True</DebugSymbols> |
37 | <FileAlignment>4096</FileAlignment> | 33 | <FileAlignment>4096</FileAlignment> |
38 | <Optimize>False</Optimize> | 34 | <Optimize>False</Optimize> |
@@ -41,8 +37,7 @@ | |||
41 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
42 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
43 | <WarningLevel>4</WarningLevel> | 39 | <WarningLevel>4</WarningLevel> |
44 | <NoWarn> | 40 | <NoWarn></NoWarn> |
45 | </NoWarn> | ||
46 | </PropertyGroup> | 41 | </PropertyGroup> |
47 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | 42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
48 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | 43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
@@ -51,8 +46,7 @@ | |||
51 | <ConfigurationOverrideFile> | 46 | <ConfigurationOverrideFile> |
52 | </ConfigurationOverrideFile> | 47 | </ConfigurationOverrideFile> |
53 | <DefineConstants>TRACE</DefineConstants> | 48 | <DefineConstants>TRACE</DefineConstants> |
54 | <DocumentationFile> | 49 | <DocumentationFile></DocumentationFile> |
55 | </DocumentationFile> | ||
56 | <DebugSymbols>False</DebugSymbols> | 50 | <DebugSymbols>False</DebugSymbols> |
57 | <FileAlignment>4096</FileAlignment> | 51 | <FileAlignment>4096</FileAlignment> |
58 | <Optimize>True</Optimize> | 52 | <Optimize>True</Optimize> |
@@ -61,20 +55,18 @@ | |||
61 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | 55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> |
62 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | 56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
63 | <WarningLevel>4</WarningLevel> | 57 | <WarningLevel>4</WarningLevel> |
64 | <NoWarn> | 58 | <NoWarn></NoWarn> |
65 | </NoWarn> | ||
66 | </PropertyGroup> | 59 | </PropertyGroup> |
67 | <ItemGroup> | 60 | <ItemGroup> |
68 | <Reference Include="libsecondlife.dll"> | 61 | <Reference Include="libsecondlife.dll" > |
69 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> | 62 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> |
70 | <Private>False</Private> | 63 | <Private>False</Private> |
71 | </Reference> | 64 | </Reference> |
72 | <Reference Include="System"> | 65 | <Reference Include="System" > |
73 | <HintPath>System.dll</HintPath> | 66 | <HintPath>System.dll</HintPath> |
74 | <Private>False</Private> | 67 | <Private>False</Private> |
75 | </Reference> | 68 | </Reference> |
76 | <Reference Include="System.Data" /> | 69 | <Reference Include="System.Xml" > |
77 | <Reference Include="System.Xml"> | ||
78 | <HintPath>System.Xml.dll</HintPath> | 70 | <HintPath>System.Xml.dll</HintPath> |
79 | <Private>False</Private> | 71 | <Private>False</Private> |
80 | </Reference> | 72 | </Reference> |
@@ -84,13 +76,25 @@ | |||
84 | <Name>OpenGrid.Framework.Communications</Name> | 76 | <Name>OpenGrid.Framework.Communications</Name> |
85 | <Project>{683344D5-0000-0000-0000-000000000000}</Project> | 77 | <Project>{683344D5-0000-0000-0000-000000000000}</Project> |
86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 78 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
87 | <Private>False</Private> | 79 | <Private>False</Private> |
80 | </ProjectReference> | ||
81 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.Data\OpenGrid.Framework.Data.csproj"> | ||
82 | <Name>OpenGrid.Framework.Data</Name> | ||
83 | <Project>{62CDF671-0000-0000-0000-000000000000}</Project> | ||
84 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
85 | <Private>False</Private> | ||
86 | </ProjectReference> | ||
87 | <ProjectReference Include="..\..\Common\OpenGrid.Framework.UserManager\OpenGrid.Framework.UserManagement.csproj"> | ||
88 | <Name>OpenGrid.Framework.UserManagement</Name> | ||
89 | <Project>{DA9A7391-0000-0000-0000-000000000000}</Project> | ||
90 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
91 | <Private>False</Private> | ||
88 | </ProjectReference> | 92 | </ProjectReference> |
89 | <ProjectReference Include="..\..\Common\OpenSim.Framework\OpenSim.Framework.csproj"> | 93 | <ProjectReference Include="..\..\Common\OpenSim.Framework\OpenSim.Framework.csproj"> |
90 | <Name>OpenSim.Framework</Name> | 94 | <Name>OpenSim.Framework</Name> |
91 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> | 95 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> |
92 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | 96 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> |
93 | <Private>False</Private> | 97 | <Private>False</Private> |
94 | </ProjectReference> | 98 | </ProjectReference> |
95 | </ItemGroup> | 99 | </ItemGroup> |
96 | <ItemGroup> | 100 | <ItemGroup> |
@@ -100,9 +104,9 @@ | |||
100 | <Compile Include="LocalBackEndServices.cs"> | 104 | <Compile Include="LocalBackEndServices.cs"> |
101 | <SubType>Code</SubType> | 105 | <SubType>Code</SubType> |
102 | </Compile> | 106 | </Compile> |
103 | <Compile Include="LocalUserManagement\LocalLoginService.cs" /> | 107 | <Compile Include="LocalUserServices.cs"> |
104 | <Compile Include="LocalUserManagement\LocalUserServices.cs" /> | 108 | <SubType>Code</SubType> |
105 | <Compile Include="LocalUserManagement\UserProfileManager.cs" /> | 109 | </Compile> |
106 | <Compile Include="Properties\AssemblyInfo.cs"> | 110 | <Compile Include="Properties\AssemblyInfo.cs"> |
107 | <SubType>Code</SubType> | 111 | <SubType>Code</SubType> |
108 | </Compile> | 112 | </Compile> |
@@ -114,4 +118,4 @@ | |||
114 | <PostBuildEvent> | 118 | <PostBuildEvent> |
115 | </PostBuildEvent> | 119 | </PostBuildEvent> |
116 | </PropertyGroup> | 120 | </PropertyGroup> |
117 | </Project> \ No newline at end of file | 121 | </Project> |
diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user index 518ce40..5941547 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user | |||
@@ -2,7 +2,7 @@ | |||
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
4 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 4 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
5 | <ReferencePath>C:\Documents and Settings\Stefan\My Documents\source\opensim\branches\Sugilite\bin\</ReferencePath> | 5 | <ReferencePath>C:\New Folder\second-life-viewer\opensim-dailys2\opensim15-06\Sugilite\bin\</ReferencePath> |
6 | <LastOpenVersion>8.0.50727</LastOpenVersion> | 6 | <LastOpenVersion>8.0.50727</LastOpenVersion> |
7 | <ProjectView>ProjectFiles</ProjectView> | 7 | <ProjectView>ProjectFiles</ProjectView> |
8 | <ProjectTrust>0</ProjectTrust> | 8 | <ProjectTrust>0</ProjectTrust> |
diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build index 2ea6497..2b72e2d 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build | |||
@@ -13,6 +13,7 @@ | |||
13 | <sources failonempty="true"> | 13 | <sources failonempty="true"> |
14 | <include name="CommunicationsLocal.cs" /> | 14 | <include name="CommunicationsLocal.cs" /> |
15 | <include name="LocalBackEndServices.cs" /> | 15 | <include name="LocalBackEndServices.cs" /> |
16 | <include name="LocalUserServices.cs" /> | ||
16 | <include name="Properties/AssemblyInfo.cs" /> | 17 | <include name="Properties/AssemblyInfo.cs" /> |
17 | </sources> | 18 | </sources> |
18 | <references basedir="${project::get-base-directory()}"> | 19 | <references basedir="${project::get-base-directory()}"> |
@@ -22,6 +23,8 @@ | |||
22 | </lib> | 23 | </lib> |
23 | <include name="../../bin/libsecondlife.dll" /> | 24 | <include name="../../bin/libsecondlife.dll" /> |
24 | <include name="../../bin/OpenGrid.Framework.Communications.dll" /> | 25 | <include name="../../bin/OpenGrid.Framework.Communications.dll" /> |
26 | <include name="../../bin/OpenGrid.Framework.Data.dll" /> | ||
27 | <include name="../../bin/OpenGrid.Framework.UserManagement.dll" /> | ||
25 | <include name="../../bin/OpenSim.Framework.dll" /> | 28 | <include name="../../bin/OpenSim.Framework.dll" /> |
26 | <include name="System.dll" /> | 29 | <include name="System.dll" /> |
27 | <include name="System.Xml.dll" /> | 30 | <include name="System.Xml.dll" /> |