C# Class GSoft.Dynamite.Setup.PageCreator

Adds pages to the Pages library
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010 Class Usage Examples

Public Methods

Method Description
Create ( SPWeb web, PageInfo pageInfo ) : PublishingPage

Creates a page in the Pages library

Create ( SPWeb web, int folderId, PageInfo pageInfo ) : PublishingPage

Creates a page in the Pages library

Create ( SPWeb web, int folderId, SPContentTypeId contentTypeId, string pageLayoutName, string pageTitle, string pageName ) : PublishingPage

Create publishing page in Pages Library

GetPageLayout ( PublishingSite publishingSite, string pageLayoutName, bool excludeObsolete ) : PageLayout

Get the page layout

PageCreator ( FolderRepository folderRepository, ILogger logger ) : System

PageCreator constructor

Private Methods

Method Description
EnsureFolderPublish ( SPFolder folder ) : void
GetDefaultContentTypeId ( SPFolder folder ) : string

Method Details

Create() public method

Creates a page in the Pages library
public Create ( SPWeb web, PageInfo pageInfo ) : PublishingPage
web SPWeb the current web
pageInfo PageInfo the pageInfo of the page
return PublishingPage

Create() public method

Creates a page in the Pages library
public Create ( SPWeb web, int folderId, PageInfo pageInfo ) : PublishingPage
web SPWeb The current web
folderId int The folder in which to add the item
pageInfo PageInfo The pageInfo of the page
return PublishingPage

Create() public method

Create publishing page in Pages Library
public Create ( SPWeb web, int folderId, SPContentTypeId contentTypeId, string pageLayoutName, string pageTitle, string pageName ) : PublishingPage
web SPWeb the current web
folderId int the current folder id
contentTypeId SPContentTypeId the current content type id
pageLayoutName string the page layout name
pageTitle string the page title
pageName string the page name
return PublishingPage

GetPageLayout() public method

Get the page layout
public GetPageLayout ( PublishingSite publishingSite, string pageLayoutName, bool excludeObsolete ) : PageLayout
publishingSite PublishingSite the current publishing site
pageLayoutName string the page layout name
excludeObsolete bool exclude obsolete page layout
return PageLayout

PageCreator() public method

PageCreator constructor
public PageCreator ( FolderRepository folderRepository, ILogger logger ) : System
folderRepository GSoft.Dynamite.Repositories.FolderRepository Folder repository
logger ILogger the current logger
return System