Mark AssetBase.Metadata with [XmlIgnore]
parent
bd41639a68
commit
4a21d92668
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Xml.Serialization;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace OpenSim.Framework
|
namespace OpenSim.Framework
|
||||||
|
@ -96,16 +97,11 @@ namespace OpenSim.Framework
|
||||||
set { m_metadata.Temporary = value; }
|
set { m_metadata.Temporary = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// We have methods here because properties are serialized, and we don't
|
[XmlIgnore]
|
||||||
// want that.
|
public AssetMetadata Metadata
|
||||||
public virtual AssetMetadata getMetadata()
|
|
||||||
{
|
{
|
||||||
return m_metadata;
|
get { return m_metadata; }
|
||||||
}
|
set { m_metadata = value; }
|
||||||
|
|
||||||
public virtual void setMetadata(AssetMetadata metadata)
|
|
||||||
{
|
|
||||||
m_metadata = metadata;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim
|
||||||
if (asset == null) ret = BackendResponse.NotFound;
|
if (asset == null) ret = BackendResponse.NotFound;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
metadata = asset.getMetadata();
|
metadata = asset.Metadata;
|
||||||
ret = BackendResponse.Success;
|
ret = BackendResponse.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple
|
||||||
public BackendResponse TryFetchDataMetadata(UUID assetID, out AssetBase asset)
|
public BackendResponse TryFetchDataMetadata(UUID assetID, out AssetBase asset)
|
||||||
{
|
{
|
||||||
asset = new AssetBase();
|
asset = new AssetBase();
|
||||||
AssetMetadata metadata = asset.getMetadata();
|
AssetMetadata metadata = asset.Metadata;
|
||||||
|
|
||||||
string filename;
|
string filename;
|
||||||
BackendResponse ret;
|
BackendResponse ret;
|
||||||
|
@ -139,7 +139,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple
|
||||||
public BackendResponse TryCreateAsset(AssetBase asset)
|
public BackendResponse TryCreateAsset(AssetBase asset)
|
||||||
{
|
{
|
||||||
BackendResponse ret;
|
BackendResponse ret;
|
||||||
AssetMetadata metadata = asset.getMetadata();
|
AssetMetadata metadata = asset.Metadata;
|
||||||
|
|
||||||
string path;
|
string path;
|
||||||
string filename = String.Format("{0}.{1}", asset.FullID, Utils.ContentTypeToExtension(metadata.ContentType));
|
string filename = String.Format("{0}.{1}", asset.FullID, Utils.ContentTypeToExtension(metadata.ContentType));
|
||||||
|
|
Loading…
Reference in New Issue