opensim – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | eva | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ |
||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
||
4 | * |
||
5 | * Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions are met: |
||
7 | * * Redistributions of source code must retain the above copyright |
||
8 | * notice, this list of conditions and the following disclaimer. |
||
9 | * * Redistributions in binary form must reproduce the above copyright |
||
10 | * notice, this list of conditions and the following disclaimer in the |
||
11 | * documentation and/or other materials provided with the distribution. |
||
12 | * * Neither the name of the OpenSimulator Project nor the |
||
13 | * names of its contributors may be used to endorse or promote products |
||
14 | * derived from this software without specific prior written permission. |
||
15 | * |
||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
26 | */ |
||
27 | |||
28 | using System; |
||
29 | using System.Collections.Generic; |
||
30 | |||
31 | using OpenMetaverse; |
||
32 | using OpenSim.Framework; |
||
33 | |||
34 | namespace OpenSim.Data.Null |
||
35 | { |
||
36 | /// <summary> |
||
37 | /// This class is completely null. |
||
38 | /// </summary> |
||
39 | public class NullInventoryData : IInventoryDataPlugin |
||
40 | { |
||
41 | public string Version { get { return "1.0.0.0"; } } |
||
42 | |||
43 | public void Initialise() |
||
44 | { |
||
45 | } |
||
46 | |||
47 | public void Dispose() |
||
48 | { |
||
49 | // Do nothing. |
||
50 | } |
||
51 | |||
52 | public string Name |
||
53 | { |
||
54 | get { return "Null Inventory Data Interface"; } |
||
55 | } |
||
56 | |||
57 | public void Initialise(string connect) |
||
58 | { |
||
59 | } |
||
60 | |||
61 | |||
62 | /// <summary> |
||
63 | /// Returns all descendent folders of this folder. Does not return the parent folder itself. |
||
64 | /// </summary> |
||
65 | /// <param name="parentID">The folder to get subfolders for</param> |
||
66 | /// <returns>A list of inventory folders</returns> |
||
67 | public List<InventoryFolderBase> getFolderHierarchy(UUID parentID) |
||
68 | { |
||
69 | return new List<InventoryFolderBase>(); |
||
70 | } |
||
71 | |||
72 | /// <summary> |
||
73 | /// Returns a list of inventory items contained within the specified folder |
||
74 | /// </summary> |
||
75 | /// <param name="folderID">The UUID of the target folder</param> |
||
76 | /// <returns>A List of InventoryItemBase items</returns> |
||
77 | public List<InventoryItemBase> getInventoryInFolder(UUID folderID) |
||
78 | { |
||
79 | return new List<InventoryItemBase>(); |
||
80 | } |
||
81 | |||
82 | /// <summary> |
||
83 | /// Returns a list of the root folders within a users inventory |
||
84 | /// </summary> |
||
85 | /// <param name="user">The user whos inventory is to be searched</param> |
||
86 | /// <returns>A list of folder objects</returns> |
||
87 | public List<InventoryFolderBase> getUserRootFolders(UUID user) |
||
88 | { |
||
89 | return new List<InventoryFolderBase>(); |
||
90 | } |
||
91 | |||
92 | /// <summary> |
||
93 | /// Returns the users inventory root folder. |
||
94 | /// </summary> |
||
95 | /// <param name="user">The UUID of the user who is having inventory being returned</param> |
||
96 | /// <returns>Root inventory folder, null if no root inventory folder was found</returns> |
||
97 | public InventoryFolderBase getUserRootFolder(UUID user) |
||
98 | { |
||
99 | return null; |
||
100 | } |
||
101 | |||
102 | /// <summary> |
||
103 | /// Returns a list of inventory folders contained in the folder 'parentID' |
||
104 | /// </summary> |
||
105 | /// <param name="parentID">The folder to get subfolders for</param> |
||
106 | /// <returns>A list of inventory folders</returns> |
||
107 | public List<InventoryFolderBase> getInventoryFolders(UUID parentID) |
||
108 | { |
||
109 | return new List<InventoryFolderBase>(); |
||
110 | } |
||
111 | |||
112 | /// <summary> |
||
113 | /// Returns an inventory item by its UUID |
||
114 | /// </summary> |
||
115 | /// <param name="item">The UUID of the item to be returned</param> |
||
116 | /// <returns>A class containing item information</returns> |
||
117 | public InventoryItemBase getInventoryItem(UUID item) |
||
118 | { |
||
119 | return null; |
||
120 | } |
||
121 | |||
122 | /// <summary> |
||
123 | /// Returns a specified inventory folder by its UUID |
||
124 | /// </summary> |
||
125 | /// <param name="folder">The UUID of the folder to be returned</param> |
||
126 | /// <returns>A class containing folder information</returns> |
||
127 | public InventoryFolderBase getInventoryFolder(UUID folder) |
||
128 | { |
||
129 | return null; |
||
130 | } |
||
131 | |||
132 | /// <summary> |
||
133 | /// Creates a new inventory item based on item |
||
134 | /// </summary> |
||
135 | /// <param name="item">The item to be created</param> |
||
136 | public void addInventoryItem(InventoryItemBase item) |
||
137 | { |
||
138 | } |
||
139 | |||
140 | /// <summary> |
||
141 | /// Updates an inventory item with item (updates based on ID) |
||
142 | /// </summary> |
||
143 | /// <param name="item">The updated item</param> |
||
144 | public void updateInventoryItem(InventoryItemBase item) |
||
145 | { |
||
146 | } |
||
147 | |||
148 | /// <summary> |
||
149 | /// |
||
150 | /// </summary> |
||
151 | /// <param name="item"></param> |
||
152 | public void deleteInventoryItem(UUID item) |
||
153 | { |
||
154 | } |
||
155 | |||
156 | /// <summary> |
||
157 | /// |
||
158 | /// </summary> |
||
159 | /// <param name="item"></param> |
||
160 | public InventoryItemBase queryInventoryItem(UUID item) |
||
161 | { |
||
162 | return null; |
||
163 | } |
||
164 | |||
165 | /// <summary> |
||
166 | /// |
||
167 | /// </summary> |
||
168 | /// <param name="item"></param> |
||
169 | public InventoryFolderBase queryInventoryFolder(UUID folder) |
||
170 | { |
||
171 | return null; |
||
172 | } |
||
173 | |||
174 | /// <summary> |
||
175 | /// Adds a new folder specified by folder |
||
176 | /// </summary> |
||
177 | /// <param name="folder">The inventory folder</param> |
||
178 | public void addInventoryFolder(InventoryFolderBase folder) |
||
179 | { |
||
180 | } |
||
181 | |||
182 | /// <summary> |
||
183 | /// Updates a folder based on its ID with folder |
||
184 | /// </summary> |
||
185 | /// <param name="folder">The inventory folder</param> |
||
186 | public void updateInventoryFolder(InventoryFolderBase folder) |
||
187 | { |
||
188 | } |
||
189 | |||
190 | /// <summary> |
||
191 | /// Updates a folder based on its ID with folder |
||
192 | /// </summary> |
||
193 | /// <param name="folder">The inventory folder</param> |
||
194 | public void moveInventoryFolder(InventoryFolderBase folder) |
||
195 | { |
||
196 | } |
||
197 | |||
198 | /// <summary> |
||
199 | /// Deletes a folder. Thie will delete both the folder itself and its contents (items and descendent folders) |
||
200 | /// </summary> |
||
201 | /// <param name="folder">The id of the folder</param> |
||
202 | public void deleteInventoryFolder(UUID folder) |
||
203 | { |
||
204 | } |
||
205 | |||
206 | /// <summary> |
||
207 | /// Returns all activated gesture-items in the inventory of the specified avatar. |
||
208 | /// </summary> |
||
209 | /// <param name="avatarID"> |
||
210 | /// The <see cref="UUID"/> of the avatar |
||
211 | /// </param> |
||
212 | /// <returns> |
||
213 | /// The list of gestures (<see cref="InventoryItemBase"/>s) |
||
214 | /// </returns> |
||
215 | public List<InventoryItemBase> fetchActiveGestures(UUID avatarID) |
||
216 | { |
||
217 | return new List<InventoryItemBase>(); |
||
218 | } |
||
219 | } |
||
220 | } |