C# Class Umbraco.UmbracoStudio.ExternalApplication.UmbracoApplicationContext

Inheritance: IDisposable
Mostrar archivo Open project: umbraco/Visual-Studio-Extension

Public Methods

Method Description
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

Private Methods

Method Description
AssertIsNotReady ( ) : void
GetAssemblyLocation ( string assemblyFileName ) : string
SetupMethodShortcuts ( ) : void
UmbracoApplicationContext ( string projectFolder, string connectionString, string providerName ) : System

Method Details

CurrentDomain_AssemblyResolve() public method

public CurrentDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
sender object
args System.ResolveEventArgs
return System.Reflection.Assembly

Delete() public method

Invokes a Delete action for an item by its Id and Type
public Delete ( string treeType, int id ) : bool
treeType string
id int
return bool

DeserializeNode() public method

public DeserializeNode ( string nodeType, int nodeId, string filePath ) : void
nodeType string
nodeId int
filePath string
return void

Dispose() public method

public Dispose ( ) : void
return void

GetChildrenByType() public method

Gets a list of child items by their Type and parent id
public GetChildrenByType ( string nodeType, int id ) : Dictionary>
nodeType string
id int
return Dictionary>

GetContentModelById() public method

Gets a ContentModel by its Id. Used for showing the Properties Frame.
public GetContentModelById ( int id ) : ContentModel
id int
return Umbraco.UmbracoStudio.Models.ContentModel

GetContentTypeModelById() public method

Gets a ContentTypeModel by its Id. Used for showing the Properties Frame.
public GetContentTypeModelById ( int id ) : ContentTypeModel
id int
return Umbraco.UmbracoStudio.Models.ContentTypeModel

GetDataTypeModelById() public method

Gets a DataTypeModel by its Id. Used for showing the Properties Frame.
public GetDataTypeModelById ( int id ) : DataTypeModel
id int
return Umbraco.UmbracoStudio.Models.DataTypeModel

GetMediaModelById() public method

Gets a MediaModel by its Id. Used for showing the Properties Frame.
public GetMediaModelById ( int id ) : MediaModel
id int
return Umbraco.UmbracoStudio.Models.MediaModel

GetMediaTypeModelById() public method

Gets a MediaTypeModel by its Id. Used for showing the Properties Frame.
public GetMediaTypeModelById ( int id ) : MediaTypeModel
id int
return Umbraco.UmbracoStudio.Models.MediaTypeModel

GetPropertiesModel() public method

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
return IPropertiesModel

GetRootByType() public method

Gets a list of root items by their Type
public GetRootByType ( string nodeType ) : Dictionary>
nodeType string
return Dictionary>

Move() public method

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
return bool

Rename() public method

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
return void

SerializeNode() public method

Invokes the xml export of an item by its Id and Type
public SerializeNode ( string nodeType, int nodeId ) : void
nodeType string
nodeId int
return void

StartApplication() public method

public StartApplication ( ) : void
return void

Trash() public method

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
return bool