C# Класс N2.Edit.EditUrlManager

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

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

Метод Описание
EditUrlManager ( IUrlParser parser, N2.Configuration.EditSection config ) : System
GetDeleteUrl ( ContentItem selectedItem ) : string

Gets the url to the delete item page.

GetEditExistingItemUrl ( ContentItem item, string returnUrl = null, string alternativeEditorPath = null ) : string

Gets the url to the edit page where to edit an existing item.

GetEditInterfaceUrl ( ContentItem selectedItem ) : string

Gets the url to the edit interface.

GetEditInterfaceUrl ( ViewPreference preference = ViewPreference.Published ) : string

Gets the url to the edit interface.

GetEditNewPageUrl ( ContentItem selected, ItemDefinition definition, string zoneName, CreationPosition position ) : string

Gets the url to edit page creating new items.

GetManagementInterfaceUrl ( ) : string

Gets the url to the edit interface.

GetNavigationUrl ( ContentItem selectedItem ) : string

Gets the url for the navigation frame.

GetPreviewUrl ( ContentItem selectedItem ) : string

Gets the url for the preview frame.

GetSelectNewItemUrl ( ContentItem selectedItem ) : string

Gets the url to the select type of item to create.

GetSelectNewItemUrl ( ContentItem selectedItem, string zoneName ) : string

Gets the url to the select type of item to create.

ResolveResourceUrl ( string resourceUrl ) : string

Gets the url to the given resource underneath the management interface.

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

Метод Описание
FormatSelectedUrl ( ContentItem selectedItem, string path ) : string

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

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

public EditUrlManager ( IUrlParser parser, N2.Configuration.EditSection config ) : System
parser IUrlParser
config N2.Configuration.EditSection
Результат System

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

Gets the url to the delete item page.
public GetDeleteUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
Результат string

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

Gets the url to the edit page where to edit an existing item.
public GetEditExistingItemUrl ( ContentItem item, string returnUrl = null, string alternativeEditorPath = null ) : string
item ContentItem The item to edit.
returnUrl string
alternativeEditorPath string
Результат string

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

Gets the url to the edit interface.
public GetEditInterfaceUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The item to select in edit mode.
Результат string

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

Gets the url to the edit interface.
public GetEditInterfaceUrl ( ViewPreference preference = ViewPreference.Published ) : string
preference ViewPreference
Результат string

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

Gets the url to edit page creating new items.
public GetEditNewPageUrl ( ContentItem selected, ItemDefinition definition, string zoneName, CreationPosition position ) : string
selected ContentItem The selected item.
definition ItemDefinition The type of item to edit.
zoneName string The zone to add the item to.
position CreationPosition The position relative to the selected item to add the item.
Результат string

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

Gets the url to the edit interface.
public GetManagementInterfaceUrl ( ) : string
Результат string

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

Gets the url for the navigation frame.
public GetNavigationUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
Результат string

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

Gets the url for the preview frame.
public GetPreviewUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
Результат string

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

Gets the url to the select type of item to create.
public GetSelectNewItemUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
Результат string

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

Gets the url to the select type of item to create.
public GetSelectNewItemUrl ( ContentItem selectedItem, string zoneName ) : string
selectedItem ContentItem The currently selected item.
zoneName string The zone in which to create the item (typically parts)
Результат string

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

Gets the url to the given resource underneath the management interface.
public ResolveResourceUrl ( string resourceUrl ) : string
resourceUrl string
Результат string