OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | Static Protected Member Functions | List of all members
OpenSim.Framework.Serialization.External.ExternalRepresentationUtils Class Reference

Utilities for manipulating external representations of data structures in OpenSim More...

Static Public Member Functions

static bool ExecuteReadProcessors< NodeType > (NodeType nodeToFill, Dictionary< string, Action< NodeType, XmlReader >> processors, XmlReader xtr)
 Populate a node with data read from xml using a dictinoary of processors More...
 
static bool ExecuteReadProcessors< NodeType > (NodeType nodeToFill, Dictionary< string, Action< NodeType, XmlReader >> processors, XmlReader xtr, Action< NodeType, string, Exception > parseExceptionAction)
 Populate a node with data read from xml using a dictinoary of processors More...
 
static string RewriteSOP_Old (string xml, string homeURL, IUserAccountService userService, UUID scopeID)
 Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it. More...
 
static string RewriteSOP (string xmlData, string sceneName, string homeURL, IUserAccountService userService, UUID scopeID)
 Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it. More...
 
static string CalcCreatorData (string homeURL, string name)
 
static string SanitizeXml (string xmlData)
 Sanitation for bug introduced in Oct. 20 (1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8) More...
 

Static Protected Member Functions

static void TransformXml (XmlReader reader, XmlWriter writer, string sceneName, string homeURI, IUserAccountService userAccountService, UUID scopeID)
 

Detailed Description

Utilities for manipulating external representations of data structures in OpenSim

Definition at line 43 of file ExternalRepresentationUtils.cs.

Member Function Documentation

static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.CalcCreatorData ( string  homeURL,
string  name 
)
inlinestatic

Definition at line 385 of file ExternalRepresentationUtils.cs.

static bool OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors< NodeType > ( NodeType  nodeToFill,
Dictionary< string, Action< NodeType, XmlReader >>  processors,
XmlReader  xtr 
)
inlinestatic

Populate a node with data read from xml using a dictinoary of processors

Parameters
nodeToFill
processors
xtr
Returns
true on successful, false if there were any processing failures

Definition at line 54 of file ExternalRepresentationUtils.cs.

static bool OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors< NodeType > ( NodeType  nodeToFill,
Dictionary< string, Action< NodeType, XmlReader >>  processors,
XmlReader  xtr,
Action< NodeType, string, Exception >  parseExceptionAction 
)
inlinestatic

Populate a node with data read from xml using a dictinoary of processors

Parameters
nodeToFill
processors
xtr
parseExceptionActionAction to take if there is a parsing problem. This will usually just be to log the exception
Returns
true on successful, false if there were any processing failures

Definition at line 77 of file ExternalRepresentationUtils.cs.

static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.RewriteSOP ( string  xmlData,
string  sceneName,
string  homeURL,
IUserAccountService  userService,
UUID  scopeID 
)
inlinestatic

Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it.

Parameters
xmlThe SceneObjectPart represented in XML2
sceneNameAn identifier for the component that's calling this function
homeURLThe URL of the user agents service (home) for the creator
userServiceThe service for retrieving user account information
scopeIDThe scope of the user account information (Grid ID)
Returns
The SceneObjectPart represented in XML2

Definition at line 211 of file ExternalRepresentationUtils.cs.

static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.RewriteSOP_Old ( string  xml,
string  homeURL,
IUserAccountService  userService,
UUID  scopeID 
)
inlinestatic

Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it.

Parameters
xmlThe SceneObjectPart represented in XML2
homeURLThe URL of the user agents service (home) for the creator
userServiceThe service for retrieving user account information
scopeIDThe scope of the user account information (Grid ID)
Returns
The SceneObjectPart represented in XML2

Definition at line 153 of file ExternalRepresentationUtils.cs.

static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.SanitizeXml ( string  xmlData)
inlinestatic

Sanitation for bug introduced in Oct. 20 (1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8)

Parameters
xmlData
Returns

Definition at line 400 of file ExternalRepresentationUtils.cs.

static void OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.TransformXml ( XmlReader  reader,
XmlWriter  writer,
string  sceneName,
string  homeURI,
IUserAccountService  userAccountService,
UUID  scopeID 
)
inlinestaticprotected

Definition at line 233 of file ExternalRepresentationUtils.cs.


The documentation for this class was generated from the following file: