C# 클래스 Sdl.Web.Tridion.Mapping.DefaultContentProvider

Default Content Provider implementation (DD4T-based).
상속: IContentProvider, IRawDataProvider
파일 보기 프로젝트 열기: sdl/dxa-web-application-dotnet

Private Properties

프로퍼티 타입 설명
GetPageModel Sdl.Web.Common.Models.PageModel
PopulateDynamicList Sdl.Web.Common.Models.DynamicList

공개 메소드들

메소드 설명
GetEntityModel ( string id, Sdl.Web.Common.Configuration.Localization localization ) : EntityModel

Gets an Entity Model for a given Entity Identifier.

Since we can't obtain CT metadata for DCPs, we obtain the View Name from the CT Title.

GetPageContent ( string urlPath, Sdl.Web.Common.Configuration.Localization localization ) : string
GetPageModel ( string urlPath, Sdl.Web.Common.Configuration.Localization localization, bool addIncludes ) : PageModel

Gets a Page Model for a given URL.

GetStaticContentItem ( string urlPath, Sdl.Web.Common.Configuration.Localization localization ) : Sdl.Web.Common.Models.StaticContentItem

Gets a Static Content Item for a given URL path.

PopulateDynamicList ( DynamicList dynamicList, Sdl.Web.Common.Configuration.Localization localization ) : void

Populates a Dynamic List by executing the query it specifies.

보호된 메소드들

메소드 설명
GetCmUrl ( string urlPath ) : string

Converts a request URL path into a CMS URL (for example adding default page name and file extension)

GetIncludesFromModel ( DD4T.ContentModel.IPage page, Sdl.Web.Common.Configuration.Localization localization ) : IEnumerable
GetPage ( string urlPath, Sdl.Web.Common.Configuration.Localization localization ) : DD4T.ContentModel.IPage

비공개 메소드들

메소드 설명
GetPageModel ( string urlPath, bool addIncludes = true ) : PageModel
PopulateDynamicList ( DynamicList dynamicList ) : DynamicList

메소드 상세

GetCmUrl() 보호된 메소드

Converts a request URL path into a CMS URL (for example adding default page name and file extension)
protected GetCmUrl ( string urlPath ) : string
urlPath string The request URL path (unescaped)
리턴 string

GetEntityModel() 공개 메소드

Gets an Entity Model for a given Entity Identifier.
Since we can't obtain CT metadata for DCPs, we obtain the View Name from the CT Title.
If no Entity Model exists for the given URL.
public GetEntityModel ( string id, Sdl.Web.Common.Configuration.Localization localization ) : EntityModel
id string The Entity Identifier in format ComponentID-TemplateID.
localization Sdl.Web.Common.Configuration.Localization The context Localization.
리턴 Sdl.Web.Common.Models.EntityModel

GetIncludesFromModel() 보호된 메소드

protected GetIncludesFromModel ( DD4T.ContentModel.IPage page, Sdl.Web.Common.Configuration.Localization localization ) : IEnumerable
page DD4T.ContentModel.IPage
localization Sdl.Web.Common.Configuration.Localization
리턴 IEnumerable

GetPage() 보호된 메소드

protected GetPage ( string urlPath, Sdl.Web.Common.Configuration.Localization localization ) : DD4T.ContentModel.IPage
urlPath string
localization Sdl.Web.Common.Configuration.Localization
리턴 DD4T.ContentModel.IPage

GetPageContent() 공개 메소드

public GetPageContent ( string urlPath, Sdl.Web.Common.Configuration.Localization localization ) : string
urlPath string
localization Sdl.Web.Common.Configuration.Localization
리턴 string

GetPageModel() 공개 메소드

Gets a Page Model for a given URL.
If no Page Model exists for the given URL.
public GetPageModel ( string urlPath, Sdl.Web.Common.Configuration.Localization localization, bool addIncludes ) : PageModel
urlPath string The URL path (unescaped).
localization Sdl.Web.Common.Configuration.Localization The context Localization.
addIncludes bool Indicates whether include Pages should be expanded.
리턴 Sdl.Web.Common.Models.PageModel

GetStaticContentItem() 공개 메소드

Gets a Static Content Item for a given URL path.
public GetStaticContentItem ( string urlPath, Sdl.Web.Common.Configuration.Localization localization ) : Sdl.Web.Common.Models.StaticContentItem
urlPath string The URL path (unescaped).
localization Sdl.Web.Common.Configuration.Localization The context Localization.
리턴 Sdl.Web.Common.Models.StaticContentItem

PopulateDynamicList() 공개 메소드

Populates a Dynamic List by executing the query it specifies.
public PopulateDynamicList ( DynamicList dynamicList, Sdl.Web.Common.Configuration.Localization localization ) : void
dynamicList Sdl.Web.Common.Models.DynamicList The Dynamic List which specifies the query and is to be populated.
localization Sdl.Web.Common.Configuration.Localization The context Localization.
리턴 void