C# Класс Umbraco.UmbracoStudio.ExternalApplication.UmbracoApplicationContext

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
CurrentDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
Delete ( string treeType, int id ) : bool

Invokes a Delete action for an item by its Id and Type

DeserializeNode ( string nodeType, int nodeId, string filePath ) : void
Dispose ( ) : void
GetChildrenByType ( string nodeType, int id ) : Dictionary>

Gets a list of child items by their Type and parent id

GetContentModelById ( int id ) : ContentModel

Gets a ContentModel by its Id. Used for showing the Properties Frame.

GetContentTypeModelById ( int id ) : ContentTypeModel

Gets a ContentTypeModel by its Id. Used for showing the Properties Frame.

GetDataTypeModelById ( int id ) : DataTypeModel

Gets a DataTypeModel by its Id. Used for showing the Properties Frame.

GetMediaModelById ( int id ) : MediaModel

Gets a MediaModel by its Id. Used for showing the Properties Frame.

GetMediaTypeModelById ( int id ) : MediaTypeModel

Gets a MediaTypeModel by its Id. Used for showing the Properties Frame.

GetPropertiesModel ( string nodeType, int id ) : IPropertiesModel

Gets a model based on the IPropertiesModel interface by its NodeType and integer Id.

GetRootByType ( string nodeType ) : Dictionary>

Gets a list of root items by their Type

Move ( string treeType, int id, int parentId ) : bool

Invokes a Move action for an item by its Id and Type

Rename ( string nodeType, string newName, int nodeId ) : void

Invokes a 'Rename' action for an item by its Id and Type

SerializeNode ( string nodeType, int nodeId ) : void

Invokes the xml export of an item by its Id and Type

StartApplication ( ) : void
Trash ( string treeType, int id ) : bool

Invokes a 'Move to Recycle Bin' action for an item by its Id and Type

Приватные методы

Метод Описание
AssertIsNotReady ( ) : void
GetAssemblyLocation ( string assemblyFileName ) : string
SetupMethodShortcuts ( ) : void
UmbracoApplicationContext ( string projectFolder, string connectionString, string providerName ) : System

Описание методов

CurrentDomain_AssemblyResolve() публичный Метод

public CurrentDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
sender object
args System.ResolveEventArgs
Результат System.Reflection.Assembly

Delete() публичный Метод

Invokes a Delete action for an item by its Id and Type
public Delete ( string treeType, int id ) : bool
treeType string
id int
Результат bool

DeserializeNode() публичный Метод

public DeserializeNode ( string nodeType, int nodeId, string filePath ) : void
nodeType string
nodeId int
filePath string
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetChildrenByType() публичный Метод

Gets a list of child items by their Type and parent id
public GetChildrenByType ( string nodeType, int id ) : Dictionary>
nodeType string
id int
Результат Dictionary>

GetContentModelById() публичный Метод

Gets a ContentModel by its Id. Used for showing the Properties Frame.
public GetContentModelById ( int id ) : ContentModel
id int
Результат Umbraco.UmbracoStudio.Models.ContentModel

GetContentTypeModelById() публичный Метод

Gets a ContentTypeModel by its Id. Used for showing the Properties Frame.
public GetContentTypeModelById ( int id ) : ContentTypeModel
id int
Результат Umbraco.UmbracoStudio.Models.ContentTypeModel

GetDataTypeModelById() публичный Метод

Gets a DataTypeModel by its Id. Used for showing the Properties Frame.
public GetDataTypeModelById ( int id ) : DataTypeModel
id int
Результат Umbraco.UmbracoStudio.Models.DataTypeModel

GetMediaModelById() публичный Метод

Gets a MediaModel by its Id. Used for showing the Properties Frame.
public GetMediaModelById ( int id ) : MediaModel
id int
Результат Umbraco.UmbracoStudio.Models.MediaModel

GetMediaTypeModelById() публичный Метод

Gets a MediaTypeModel by its Id. Used for showing the Properties Frame.
public GetMediaTypeModelById ( int id ) : MediaTypeModel
id int
Результат Umbraco.UmbracoStudio.Models.MediaTypeModel

GetPropertiesModel() публичный Метод

Gets a model based on the IPropertiesModel interface by its NodeType and integer Id.
public GetPropertiesModel ( string nodeType, int id ) : IPropertiesModel
nodeType string
id int
Результат IPropertiesModel

GetRootByType() публичный Метод

Gets a list of root items by their Type
public GetRootByType ( string nodeType ) : Dictionary>
nodeType string
Результат Dictionary>

Move() публичный Метод

Invokes a Move action for an item by its Id and Type
public Move ( string treeType, int id, int parentId ) : bool
treeType string
id int
parentId int
Результат bool

Rename() публичный Метод

Invokes a 'Rename' action for an item by its Id and Type
public Rename ( string nodeType, string newName, int nodeId ) : void
nodeType string
newName string
nodeId int
Результат void

SerializeNode() публичный Метод

Invokes the xml export of an item by its Id and Type
public SerializeNode ( string nodeType, int nodeId ) : void
nodeType string
nodeId int
Результат void

StartApplication() публичный Метод

public StartApplication ( ) : void
Результат void

Trash() публичный Метод

Invokes a 'Move to Recycle Bin' action for an item by its Id and Type
public Trash ( string treeType, int id ) : bool
treeType string
id int
Результат bool