diff options
author | Justin Clarke Casey | 2009-05-05 16:45:21 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-05-05 16:45:21 +0000 |
commit | f8e0653e73932bae20f483e0ce669f1623c6ff1e (patch) | |
tree | 9fc902fc17567755bad28f0f6d88b7089c0365e1 /OpenSim/Framework/InventoryItemBase.cs | |
parent | - moving banned check and public/private check to (diff) | |
download | opensim-SC-f8e0653e73932bae20f483e0ce669f1623c6ff1e.zip opensim-SC-f8e0653e73932bae20f483e0ce669f1623c6ff1e.tar.gz opensim-SC-f8e0653e73932bae20f483e0ce669f1623c6ff1e.tar.bz2 opensim-SC-f8e0653e73932bae20f483e0ce669f1623c6ff1e.tar.xz |
* If an item creator id contains an iar loaded name, create a temporary profile and hashed UUID to represent the user
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/InventoryItemBase.cs | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index 61771ab..f874de1 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs | |||
@@ -48,38 +48,30 @@ namespace OpenSim.Framework | |||
48 | /// <value> | 48 | /// <value> |
49 | /// The creator of this item | 49 | /// The creator of this item |
50 | /// </value> | 50 | /// </value> |
51 | public string CreatorId | 51 | public string CreatorId { get; set; } |
52 | { | ||
53 | get { return m_creatorId; } | ||
54 | set | ||
55 | { | ||
56 | m_creatorId = value; | ||
57 | UUID creatorIdAsUuid; | ||
58 | |||
59 | // For now, all IDs are UUIDs | ||
60 | UUID.TryParse(m_creatorId, out creatorIdAsUuid); | ||
61 | CreatorIdAsUuid = creatorIdAsUuid; | ||
62 | } | ||
63 | } | ||
64 | |||
65 | private string m_creatorId = String.Empty; | ||
66 | 52 | ||
67 | /// <value> | 53 | /// <value> |
68 | /// The creator of this item expressed as a UUID | 54 | /// The creator of this item expressed as a UUID. Database plugins don't need to set this, it will be set by |
55 | /// upstream code (or set by the get accessor if left unset). | ||
69 | /// </value> | 56 | /// </value> |
70 | public UUID CreatorIdAsUuid | 57 | public UUID CreatorIdAsUuid |
71 | { | 58 | { |
72 | get | 59 | get |
73 | { | 60 | { |
61 | if (UUID.Zero == m_creatorIdAsUuid) | ||
62 | { | ||
63 | UUID.TryParse(CreatorId, out m_creatorIdAsUuid); | ||
64 | } | ||
65 | |||
74 | return m_creatorIdAsUuid; | 66 | return m_creatorIdAsUuid; |
75 | } | 67 | } |
68 | |||
76 | set | 69 | set |
77 | { | 70 | { |
78 | m_creatorIdAsUuid = value; | 71 | m_creatorIdAsUuid = value; |
79 | } | 72 | } |
80 | } | 73 | } |
81 | 74 | protected UUID m_creatorIdAsUuid = UUID.Zero; | |
82 | private UUID m_creatorIdAsUuid = UUID.Zero; | ||
83 | 75 | ||
84 | /// <value> | 76 | /// <value> |
85 | /// The description of the inventory item (must be less than 64 characters) | 77 | /// The description of the inventory item (must be less than 64 characters) |