C# 클래스 Umbraco.UmbracoStudio.ExternalApplication.UmbracoApplicationContext

상속: IDisposable
파일 보기 프로젝트 열기: umbraco/Visual-Studio-Extension

공개 메소드들

메소드 설명
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