C# Класс Carrotware.CMS.Core.ContentPageHelper

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

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

Метод Описание
BulkBlogFileNameUpdateFromDate ( System.Guid siteID ) : void
BulkUpdateTemplate ( System.Guid siteID, List lstUpd, string sTemplateFile ) : void
ContentPageHelper ( ) : System
CreateBlogDatePrefix ( System.Guid siteID, System.DateTime goLiveDate ) : string
CreateFileNameFromSlug ( System.Guid siteID, System.DateTime goLiveDate, string PageSlug ) : string
Dispose ( ) : void
ExistingPagesBeginWith ( System.Guid siteID, string sFolderPath ) : bool
ExistingPagesBeginWith ( SiteData site ) : bool
FindByFilename ( System.Guid siteID, string urlFileName ) : ContentPage
FindByPageSlug ( System.Guid siteID, System.DateTime datePublished, string urlPageSlug ) : ContentPage
FindContentByID ( System.Guid siteID, System.Guid rootContentID ) : ContentPage
FindHome ( System.Guid siteID ) : ContentPage
FindHome ( System.Guid siteID, bool bActiveOnly ) : ContentPage
FindPageByTitleAndDate ( System.Guid siteID, string sTitle, string sFileNameFrag, System.DateTime dateCreate ) : List
FindPagesBeginingWith ( System.Guid siteID, string sFolderPath ) : List
FixBlogNavOrder ( System.Guid siteID ) : void
GetAllLatestBlogList ( System.Guid siteID ) : List
GetAllLatestContentList ( System.Guid siteID ) : List
GetBlogHeadingFromURL ( SiteData currentSite, string sFilterPath ) : Carrotware.CMS.Core.PageViewType
GetChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
GetChildNavigation ( System.Guid siteID, string sParentPage, bool bActiveOnly ) : List
GetContentByDateRange ( System.Guid siteID, System.DateTime dateMidpoint, int iDayRange, ContentPageType pageType, bool bActive, bool bSiteMap, bool bSiteNav, bool bBlock ) : List
GetCurrentEditUser ( System.Guid rootContentID, System.Guid siteID ) : System.Guid
GetEmptyHome ( ) : ContentPage
GetFilteredContentPagedCount ( SiteData currentSite, string sFilterPath, bool bActiveOnly ) : int
GetFilteredContentPagedList ( SiteData currentSite, string sFilterPath, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir ) : List
GetLatest ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageNumber ) : List
GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber ) : List
GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir ) : List
GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageNumber, string sortField, string sortDir ) : List
GetLatestContentByURL ( System.Guid siteID, bool bActiveOnly, string sPage ) : ContentPage
GetLatestContentList ( System.Guid siteID, bool bActiveOnly ) : List
GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageNumber ) : List
GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageSize, int pageNumber ) : List
GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir ) : List
GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageNumber, string sortField, string sortDir ) : List
GetLatestPosts ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
GetMaxNavOrder ( System.Guid siteID ) : int
GetPageHierarchy ( System.Guid siteID, System.Guid rootContentID ) : List
GetPagedSortedContent ( System.Guid siteID, ContentPageType entryType, bool bActiveOnly, int pageSize, int pageNumber, string sSortParm ) : List
GetParentWithChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
GetPopularTemplateList ( System.Guid siteID, ContentPageType pageType ) : float>.Dictionary
GetPostsByDateRange ( System.Guid siteID, System.DateTime dateMidpoint, int iDayRange, bool bActiveOnly ) : List
GetSamplerView ( ) : ContentPage
GetSiteContentCount ( System.Guid siteID ) : int
GetSitePageCount ( System.Guid siteID, ContentPageType entryType ) : int
GetSitePageCount ( System.Guid siteID, ContentPageType entryType, bool bActiveOnly ) : int
GetSiteSnippetCount ( System.Guid siteID ) : int
GetTopNavigation ( System.Guid siteID, bool bActiveOnly ) : List
GetVersion ( System.Guid siteID, System.Guid contentID ) : ContentPage
GetVersionHistory ( System.Guid siteID, System.Guid rootContentID ) : List
IsPageLocked ( ContentPage cp ) : bool
IsPageLocked ( System.Guid rootContentID, System.Guid siteID ) : bool
IsPageLocked ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
MarkSelectedPublished ( System.Guid siteID, List lstUpd, UpdateField selField ) : void
PerformDataPagingQueryableContent ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir, IQueryable QueryInput ) : List
RecordHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
RecordPageLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
RemoveContent ( System.Guid siteID, System.Guid rootContentID ) : void
RemoveVersions ( System.Guid siteID, List lstDel ) : void
ResetHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : void
ResolveDuplicateBlogURLs ( System.Guid siteID ) : void
ScrubFilename ( System.Guid rootContentID, string fileName ) : string
ScrubFilename ( string fileName ) : string
ScrubPath ( string filePath ) : string
ScrubSlug ( string slugValue ) : string
UpdateAllBlogTemplates ( System.Guid siteID, string sTemplateFile ) : void
UpdateAllContentTemplates ( System.Guid siteID, string sTemplateFile ) : void
UpdateAllPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
UpdateSubPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
UpdateTopPageTemplates ( System.Guid siteID, string sTemplateFile ) : void

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

Метод Описание
GetPagesBeginingWith ( System.Guid siteID, string sFolderPath ) : IQueryable
GetPagesEquals ( System.Guid siteID, string sFolderPath ) : IQueryable
ScrubFilePath ( string filePath ) : string
ScrubSpecial ( string sInput ) : string

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

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

public BulkBlogFileNameUpdateFromDate ( System.Guid siteID ) : void
siteID System.Guid
Результат void

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

public BulkUpdateTemplate ( System.Guid siteID, List lstUpd, string sTemplateFile ) : void
siteID System.Guid
lstUpd List
sTemplateFile string
Результат void

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

public ContentPageHelper ( ) : System
Результат System

CreateBlogDatePrefix() публичный статический Метод

public static CreateBlogDatePrefix ( System.Guid siteID, System.DateTime goLiveDate ) : string
siteID System.Guid
goLiveDate System.DateTime
Результат string

CreateFileNameFromSlug() публичный статический Метод

public static CreateFileNameFromSlug ( System.Guid siteID, System.DateTime goLiveDate, string PageSlug ) : string
siteID System.Guid
goLiveDate System.DateTime
PageSlug string
Результат string

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

public Dispose ( ) : void
Результат void

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

public ExistingPagesBeginWith ( System.Guid siteID, string sFolderPath ) : bool
siteID System.Guid
sFolderPath string
Результат bool

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

public ExistingPagesBeginWith ( SiteData site ) : bool
site SiteData
Результат bool

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

public FindByFilename ( System.Guid siteID, string urlFileName ) : ContentPage
siteID System.Guid
urlFileName string
Результат ContentPage

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

public FindByPageSlug ( System.Guid siteID, System.DateTime datePublished, string urlPageSlug ) : ContentPage
siteID System.Guid
datePublished System.DateTime
urlPageSlug string
Результат ContentPage

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

public FindContentByID ( System.Guid siteID, System.Guid rootContentID ) : ContentPage
siteID System.Guid
rootContentID System.Guid
Результат ContentPage

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

public FindHome ( System.Guid siteID ) : ContentPage
siteID System.Guid
Результат ContentPage

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

public FindHome ( System.Guid siteID, bool bActiveOnly ) : ContentPage
siteID System.Guid
bActiveOnly bool
Результат ContentPage

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

public FindPageByTitleAndDate ( System.Guid siteID, string sTitle, string sFileNameFrag, System.DateTime dateCreate ) : List
siteID System.Guid
sTitle string
sFileNameFrag string
dateCreate System.DateTime
Результат List

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

public FindPagesBeginingWith ( System.Guid siteID, string sFolderPath ) : List
siteID System.Guid
sFolderPath string
Результат List

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

public FixBlogNavOrder ( System.Guid siteID ) : void
siteID System.Guid
Результат void

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

public GetAllLatestBlogList ( System.Guid siteID ) : List
siteID System.Guid
Результат List

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

public GetAllLatestContentList ( System.Guid siteID ) : List
siteID System.Guid
Результат List

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

public GetBlogHeadingFromURL ( SiteData currentSite, string sFilterPath ) : Carrotware.CMS.Core.PageViewType
currentSite SiteData
sFilterPath string
Результат Carrotware.CMS.Core.PageViewType

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

public GetChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
siteID System.Guid
ParentID System.Guid
bActiveOnly bool
Результат List

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

public GetChildNavigation ( System.Guid siteID, string sParentPage, bool bActiveOnly ) : List
siteID System.Guid
sParentPage string
bActiveOnly bool
Результат List

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

public GetContentByDateRange ( System.Guid siteID, System.DateTime dateMidpoint, int iDayRange, ContentPageType pageType, bool bActive, bool bSiteMap, bool bSiteNav, bool bBlock ) : List
siteID System.Guid
dateMidpoint System.DateTime
iDayRange int
pageType ContentPageType
bActive bool
bSiteMap bool
bSiteNav bool
bBlock bool
Результат List

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

public GetCurrentEditUser ( System.Guid rootContentID, System.Guid siteID ) : System.Guid
rootContentID System.Guid
siteID System.Guid
Результат System.Guid

GetEmptyHome() публичный статический Метод

public static GetEmptyHome ( ) : ContentPage
Результат ContentPage

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

public GetFilteredContentPagedCount ( SiteData currentSite, string sFilterPath, bool bActiveOnly ) : int
currentSite SiteData
sFilterPath string
bActiveOnly bool
Результат int

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

public GetFilteredContentPagedList ( SiteData currentSite, string sFilterPath, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir ) : List
currentSite SiteData
sFilterPath string
bActiveOnly bool
pageSize int
pageNumber int
sortField string
sortDir string
Результат List

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

public GetLatest ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
Результат List

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

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageNumber ) : List
siteID System.Guid
bActiveOnly bool
pageNumber int
Результат List

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

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber ) : List
siteID System.Guid
bActiveOnly bool
pageSize int
pageNumber int
Результат List

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

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir ) : List
siteID System.Guid
bActiveOnly bool
pageSize int
pageNumber int
sortField string
sortDir string
Результат List

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

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageNumber, string sortField, string sortDir ) : List
siteID System.Guid
bActiveOnly bool
pageNumber int
sortField string
sortDir string
Результат List

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

public GetLatestContentByURL ( System.Guid siteID, bool bActiveOnly, string sPage ) : ContentPage
siteID System.Guid
bActiveOnly bool
sPage string
Результат ContentPage

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

public GetLatestContentList ( System.Guid siteID, bool bActiveOnly ) : List
siteID System.Guid
bActiveOnly bool
Результат List

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

public GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageNumber ) : List
siteID System.Guid
postType ContentPageType
bActiveOnly bool
pageNumber int
Результат List

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

public GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageSize, int pageNumber ) : List
siteID System.Guid
postType ContentPageType
bActiveOnly bool
pageSize int
pageNumber int
Результат List

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

public GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir ) : List
siteID System.Guid
postType ContentPageType
bActiveOnly bool
pageSize int
pageNumber int
sortField string
sortDir string
Результат List

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

public GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageNumber, string sortField, string sortDir ) : List
siteID System.Guid
postType ContentPageType
bActiveOnly bool
pageNumber int
sortField string
sortDir string
Результат List

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

public GetLatestPosts ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
Результат List

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

public GetMaxNavOrder ( System.Guid siteID ) : int
siteID System.Guid
Результат int

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

public GetPageHierarchy ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
Результат List

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

public GetPagedSortedContent ( System.Guid siteID, ContentPageType entryType, bool bActiveOnly, int pageSize, int pageNumber, string sSortParm ) : List
siteID System.Guid
entryType ContentPageType
bActiveOnly bool
pageSize int
pageNumber int
sSortParm string
Результат List

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

public GetParentWithChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
siteID System.Guid
ParentID System.Guid
bActiveOnly bool
Результат List

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

public GetPopularTemplateList ( System.Guid siteID, ContentPageType pageType ) : float>.Dictionary
siteID System.Guid
pageType ContentPageType
Результат float>.Dictionary

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

public GetPostsByDateRange ( System.Guid siteID, System.DateTime dateMidpoint, int iDayRange, bool bActiveOnly ) : List
siteID System.Guid
dateMidpoint System.DateTime
iDayRange int
bActiveOnly bool
Результат List

GetSamplerView() публичный статический Метод

public static GetSamplerView ( ) : ContentPage
Результат ContentPage

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

public GetSiteContentCount ( System.Guid siteID ) : int
siteID System.Guid
Результат int

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

public GetSitePageCount ( System.Guid siteID, ContentPageType entryType ) : int
siteID System.Guid
entryType ContentPageType
Результат int

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

public GetSitePageCount ( System.Guid siteID, ContentPageType entryType, bool bActiveOnly ) : int
siteID System.Guid
entryType ContentPageType
bActiveOnly bool
Результат int

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

public GetSiteSnippetCount ( System.Guid siteID ) : int
siteID System.Guid
Результат int

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

public GetTopNavigation ( System.Guid siteID, bool bActiveOnly ) : List
siteID System.Guid
bActiveOnly bool
Результат List

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

public GetVersion ( System.Guid siteID, System.Guid contentID ) : ContentPage
siteID System.Guid
contentID System.Guid
Результат ContentPage

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

public GetVersionHistory ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
Результат List

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

public IsPageLocked ( ContentPage cp ) : bool
cp ContentPage
Результат bool

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

public IsPageLocked ( System.Guid rootContentID, System.Guid siteID ) : bool
rootContentID System.Guid
siteID System.Guid
Результат bool

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

public IsPageLocked ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Результат bool

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

public MarkSelectedPublished ( System.Guid siteID, List lstUpd, UpdateField selField ) : void
siteID System.Guid
lstUpd List
selField UpdateField
Результат void

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

public PerformDataPagingQueryableContent ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir, IQueryable QueryInput ) : List
siteID System.Guid
bActiveOnly bool
pageSize int
pageNumber int
sortField string
sortDir string
QueryInput IQueryable
Результат List

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

public RecordHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Результат bool

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

public RecordPageLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Результат bool

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

public RemoveContent ( System.Guid siteID, System.Guid rootContentID ) : void
siteID System.Guid
rootContentID System.Guid
Результат void

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

public RemoveVersions ( System.Guid siteID, List lstDel ) : void
siteID System.Guid
lstDel List
Результат void

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

public ResetHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : void
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Результат void

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

public ResolveDuplicateBlogURLs ( System.Guid siteID ) : void
siteID System.Guid
Результат void

ScrubFilename() публичный статический Метод

public static ScrubFilename ( System.Guid rootContentID, string fileName ) : string
rootContentID System.Guid
fileName string
Результат string

ScrubFilename() публичный статический Метод

public static ScrubFilename ( string fileName ) : string
fileName string
Результат string

ScrubPath() публичный статический Метод

public static ScrubPath ( string filePath ) : string
filePath string
Результат string

ScrubSlug() публичный статический Метод

public static ScrubSlug ( string slugValue ) : string
slugValue string
Результат string

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

public UpdateAllBlogTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Результат void

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

public UpdateAllContentTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Результат void

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

public UpdateAllPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Результат void

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

public UpdateSubPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Результат void

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

public UpdateTopPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Результат void