C# Class Carrotware.CMS.Core.ContentPageHelper

Inheritance: IDisposable
Mostrar archivo Open project: ninianne98/CarrotCakeCMS-MVC Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
GetPagesBeginingWith ( System.Guid siteID, string sFolderPath ) : IQueryable
GetPagesEquals ( System.Guid siteID, string sFolderPath ) : IQueryable
ScrubFilePath ( string filePath ) : string
ScrubSpecial ( string sInput ) : string

Method Details

BulkBlogFileNameUpdateFromDate() public method

public BulkBlogFileNameUpdateFromDate ( System.Guid siteID ) : void
siteID System.Guid
return void

BulkUpdateTemplate() public method

public BulkUpdateTemplate ( System.Guid siteID, List lstUpd, string sTemplateFile ) : void
siteID System.Guid
lstUpd List
sTemplateFile string
return void

ContentPageHelper() public method

public ContentPageHelper ( ) : System
return System

CreateBlogDatePrefix() public static method

public static CreateBlogDatePrefix ( System.Guid siteID, System.DateTime goLiveDate ) : string
siteID System.Guid
goLiveDate System.DateTime
return string

CreateFileNameFromSlug() public static method

public static CreateFileNameFromSlug ( System.Guid siteID, System.DateTime goLiveDate, string PageSlug ) : string
siteID System.Guid
goLiveDate System.DateTime
PageSlug string
return string

Dispose() public method

public Dispose ( ) : void
return void

ExistingPagesBeginWith() public method

public ExistingPagesBeginWith ( System.Guid siteID, string sFolderPath ) : bool
siteID System.Guid
sFolderPath string
return bool

ExistingPagesBeginWith() public method

public ExistingPagesBeginWith ( SiteData site ) : bool
site SiteData
return bool

FindByFilename() public method

public FindByFilename ( System.Guid siteID, string urlFileName ) : ContentPage
siteID System.Guid
urlFileName string
return ContentPage

FindByPageSlug() public method

public FindByPageSlug ( System.Guid siteID, System.DateTime datePublished, string urlPageSlug ) : ContentPage
siteID System.Guid
datePublished System.DateTime
urlPageSlug string
return ContentPage

FindContentByID() public method

public FindContentByID ( System.Guid siteID, System.Guid rootContentID ) : ContentPage
siteID System.Guid
rootContentID System.Guid
return ContentPage

FindHome() public method

public FindHome ( System.Guid siteID ) : ContentPage
siteID System.Guid
return ContentPage

FindHome() public method

public FindHome ( System.Guid siteID, bool bActiveOnly ) : ContentPage
siteID System.Guid
bActiveOnly bool
return ContentPage

FindPageByTitleAndDate() public method

public FindPageByTitleAndDate ( System.Guid siteID, string sTitle, string sFileNameFrag, System.DateTime dateCreate ) : List
siteID System.Guid
sTitle string
sFileNameFrag string
dateCreate System.DateTime
return List

FindPagesBeginingWith() public method

public FindPagesBeginingWith ( System.Guid siteID, string sFolderPath ) : List
siteID System.Guid
sFolderPath string
return List

FixBlogNavOrder() public method

public FixBlogNavOrder ( System.Guid siteID ) : void
siteID System.Guid
return void

GetAllLatestBlogList() public method

public GetAllLatestBlogList ( System.Guid siteID ) : List
siteID System.Guid
return List

GetAllLatestContentList() public method

public GetAllLatestContentList ( System.Guid siteID ) : List
siteID System.Guid
return List

GetBlogHeadingFromURL() public method

public GetBlogHeadingFromURL ( SiteData currentSite, string sFilterPath ) : Carrotware.CMS.Core.PageViewType
currentSite SiteData
sFilterPath string
return Carrotware.CMS.Core.PageViewType

GetChildNavigation() public method

public GetChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
siteID System.Guid
ParentID System.Guid
bActiveOnly bool
return List

GetChildNavigation() public method

public GetChildNavigation ( System.Guid siteID, string sParentPage, bool bActiveOnly ) : List
siteID System.Guid
sParentPage string
bActiveOnly bool
return List

GetContentByDateRange() public method

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
return List

GetCurrentEditUser() public method

public GetCurrentEditUser ( System.Guid rootContentID, System.Guid siteID ) : System.Guid
rootContentID System.Guid
siteID System.Guid
return System.Guid

GetEmptyHome() public static method

public static GetEmptyHome ( ) : ContentPage
return ContentPage

GetFilteredContentPagedCount() public method

public GetFilteredContentPagedCount ( SiteData currentSite, string sFilterPath, bool bActiveOnly ) : int
currentSite SiteData
sFilterPath string
bActiveOnly bool
return int

GetFilteredContentPagedList() public method

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
return List

GetLatest() public method

public GetLatest ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
return List

GetLatestBlogPagedList() public method

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageNumber ) : List
siteID System.Guid
bActiveOnly bool
pageNumber int
return List

GetLatestBlogPagedList() public method

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageSize, int pageNumber ) : List
siteID System.Guid
bActiveOnly bool
pageSize int
pageNumber int
return List

GetLatestBlogPagedList() public method

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
return List

GetLatestBlogPagedList() public method

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
return List

GetLatestContentByURL() public method

public GetLatestContentByURL ( System.Guid siteID, bool bActiveOnly, string sPage ) : ContentPage
siteID System.Guid
bActiveOnly bool
sPage string
return ContentPage

GetLatestContentList() public method

public GetLatestContentList ( System.Guid siteID, bool bActiveOnly ) : List
siteID System.Guid
bActiveOnly bool
return List

GetLatestContentPagedList() public method

public GetLatestContentPagedList ( System.Guid siteID, ContentPageType postType, bool bActiveOnly, int pageNumber ) : List
siteID System.Guid
postType ContentPageType
bActiveOnly bool
pageNumber int
return List

GetLatestContentPagedList() public method

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
return List

GetLatestContentPagedList() public method

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
return List

GetLatestContentPagedList() public method

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
return List

GetLatestPosts() public method

public GetLatestPosts ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
return List

GetMaxNavOrder() public method

public GetMaxNavOrder ( System.Guid siteID ) : int
siteID System.Guid
return int

GetPageHierarchy() public method

public GetPageHierarchy ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
return List

GetPagedSortedContent() public method

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
return List

GetParentWithChildNavigation() public method

public GetParentWithChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
siteID System.Guid
ParentID System.Guid
bActiveOnly bool
return List

GetPopularTemplateList() public method

public GetPopularTemplateList ( System.Guid siteID, ContentPageType pageType ) : float>.Dictionary
siteID System.Guid
pageType ContentPageType
return float>.Dictionary

GetPostsByDateRange() public method

public GetPostsByDateRange ( System.Guid siteID, System.DateTime dateMidpoint, int iDayRange, bool bActiveOnly ) : List
siteID System.Guid
dateMidpoint System.DateTime
iDayRange int
bActiveOnly bool
return List

GetSamplerView() public static method

public static GetSamplerView ( ) : ContentPage
return ContentPage

GetSiteContentCount() public method

public GetSiteContentCount ( System.Guid siteID ) : int
siteID System.Guid
return int

GetSitePageCount() public method

public GetSitePageCount ( System.Guid siteID, ContentPageType entryType ) : int
siteID System.Guid
entryType ContentPageType
return int

GetSitePageCount() public method

public GetSitePageCount ( System.Guid siteID, ContentPageType entryType, bool bActiveOnly ) : int
siteID System.Guid
entryType ContentPageType
bActiveOnly bool
return int

GetSiteSnippetCount() public method

public GetSiteSnippetCount ( System.Guid siteID ) : int
siteID System.Guid
return int

GetTopNavigation() public method

public GetTopNavigation ( System.Guid siteID, bool bActiveOnly ) : List
siteID System.Guid
bActiveOnly bool
return List

GetVersion() public method

public GetVersion ( System.Guid siteID, System.Guid contentID ) : ContentPage
siteID System.Guid
contentID System.Guid
return ContentPage

GetVersionHistory() public method

public GetVersionHistory ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
return List

IsPageLocked() public method

public IsPageLocked ( ContentPage cp ) : bool
cp ContentPage
return bool

IsPageLocked() public method

public IsPageLocked ( System.Guid rootContentID, System.Guid siteID ) : bool
rootContentID System.Guid
siteID System.Guid
return bool

IsPageLocked() public method

public IsPageLocked ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
return bool

MarkSelectedPublished() public method

public MarkSelectedPublished ( System.Guid siteID, List lstUpd, UpdateField selField ) : void
siteID System.Guid
lstUpd List
selField UpdateField
return void

PerformDataPagingQueryableContent() public method

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
return List

RecordHeartbeatLock() public method

public RecordHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
return bool

RecordPageLock() public method

public RecordPageLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
return bool

RemoveContent() public method

public RemoveContent ( System.Guid siteID, System.Guid rootContentID ) : void
siteID System.Guid
rootContentID System.Guid
return void

RemoveVersions() public method

public RemoveVersions ( System.Guid siteID, List lstDel ) : void
siteID System.Guid
lstDel List
return void

ResetHeartbeatLock() public method

public ResetHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : void
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
return void

ResolveDuplicateBlogURLs() public method

public ResolveDuplicateBlogURLs ( System.Guid siteID ) : void
siteID System.Guid
return void

ScrubFilename() public static method

public static ScrubFilename ( System.Guid rootContentID, string fileName ) : string
rootContentID System.Guid
fileName string
return string

ScrubFilename() public static method

public static ScrubFilename ( string fileName ) : string
fileName string
return string

ScrubPath() public static method

public static ScrubPath ( string filePath ) : string
filePath string
return string

ScrubSlug() public static method

public static ScrubSlug ( string slugValue ) : string
slugValue string
return string

UpdateAllBlogTemplates() public method

public UpdateAllBlogTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
return void

UpdateAllContentTemplates() public method

public UpdateAllContentTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
return void

UpdateAllPageTemplates() public method

public UpdateAllPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
return void

UpdateSubPageTemplates() public method

public UpdateSubPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
return void

UpdateTopPageTemplates() public method

public UpdateTopPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
return void