Class MetaInstaller

Summary description for MetaInstaller.

Inheritance
System.Object
MetaInstaller
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.MetaDataPlus.Configurator
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0
Syntax
public class MetaInstaller

Constructors

MetaInstaller()

Declaration
public MetaInstaller()

Methods

Backup(Object[])

Declaration
public string Backup(params object[] selected)
Parameters
Type Name Description
System.Object[] selected
Returns
Type Description
System.String

Backup(String, Object[])

Declaration
public void Backup(string destFileName, params object[] selected)
Parameters
Type Name Description
System.String destFileName
System.Object[] selected

Array of MetaClasses or MetaFields

Backup(XmlNode, Boolean, Object[])

Backs up MetaData.

Declaration
public void Backup(XmlNode destNode, bool append, params object[] selected)
Parameters
Type Name Description
System.Xml.XmlNode destNode
System.Boolean append

True, to append only meta data itself; False, to create MetaDataPlusBackup node.

System.Object[] selected

BackupMetaClass(XmlNode, MetaClass)

Declaration
protected void BackupMetaClass(XmlNode root, MetaClass mc)
Parameters
Type Name Description
System.Xml.XmlNode root
MetaClass mc

BackupMetaClasses(MetaDataContext, Boolean, Int32[])

Backups the meta classes.

Declaration
public string BackupMetaClasses(MetaDataContext context, bool includeSystemMetaFields, params int[] selected)
Parameters
Type Name Description
MetaDataContext context

The context.

System.Boolean includeSystemMetaFields

if set to true [include system meta fields].

System.Int32[] selected

Ids of meta classes to backup

Returns
Type Description
System.String

Xml string with structure of selected meta classes.

BackupMetaClasses(MetaDataContext, String, Boolean, Int32[])

Writes structure of selected meta classes to destFileName.

Declaration
public void BackupMetaClasses(MetaDataContext context, string destFileName, bool includeSystemMetaFields, params int[] selected)
Parameters
Type Name Description
MetaDataContext context

The context.

System.String destFileName

Name of the dest file.

System.Boolean includeSystemMetaFields

if set to true [include system meta fields].

System.Int32[] selected

Ids of meta classes to backup

BackupMetaClasses(MetaDataContext, XmlNode, Boolean, Boolean, Int32[])

Writes structure of selected meta classes to destNode.

Declaration
public void BackupMetaClasses(MetaDataContext context, XmlNode destNode, bool append, bool includeSystemMetaFields, params int[] selected)
Parameters
Type Name Description
MetaDataContext context

The context.

System.Xml.XmlNode destNode

The destination node.

System.Boolean append

if set to true [append].

System.Boolean includeSystemMetaFields

if set to true [include system meta fields].

System.Int32[] selected

Ids of meta classes to backup

BackupMetaField(XmlNode, MetaField)

Writes MetaField structure to root. Includes MetaClass-MetaField relations.

Declaration
protected void BackupMetaField(XmlNode root, MetaField mf)
Parameters
Type Name Description
System.Xml.XmlNode root
MetaField mf

CleanupLocalDiskStorage(MetaDataContext)

Declaration
public void CleanupLocalDiskStorage(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

MetaFileCopyToDataBase(MetaDataContext, String)

Declaration
public void MetaFileCopyToDataBase(MetaDataContext context, string path)
Parameters
Type Name Description
MetaDataContext context
System.String path

MetaFileCopyToLocalDisk(MetaDataContext, String)

Declaration
public void MetaFileCopyToLocalDisk(MetaDataContext context, string path)
Parameters
Type Name Description
MetaDataContext context
System.String path

Restore(MetaDataContext, String)

Declaration
public void Restore(MetaDataContext context, string xml)
Parameters
Type Name Description
MetaDataContext context
System.String xml

Restore(MetaDataContext, XmlNode)

Declaration
public void Restore(MetaDataContext context, XmlNode root)
Parameters
Type Name Description
MetaDataContext context
System.Xml.XmlNode root

RestoreFromFile(MetaDataContext, String)

Declaration
public void RestoreFromFile(MetaDataContext context, string fileName)
Parameters
Type Name Description
MetaDataContext context
System.String fileName

ValidateXml(String, XmlTextReader)

Declaration
public string ValidateXml(string xsdString, XmlTextReader xmlInputReader)
Parameters
Type Name Description
System.String xsdString
System.Xml.XmlTextReader xmlInputReader
Returns
Type Description
System.String

Events

ImportExportProgressMessage

Occurs when [import export progress message].

Declaration
public event MetaDataPlusImportExportProgressMessageHandler ImportExportProgressMessage
Event Type
Type Description
MetaDataPlusImportExportProgressMessageHandler