C# Class Carrotware.CMS.Core.ContentPageHelper

Inheritance: IDisposable
Afficher le fichier Open project: ninianne98/CarrotCakeCMS-MVC Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BulkBlogFileNameUpdateFromDate ( System.Guid siteID ) : void
siteID System.Guid
Résultat void

BulkUpdateTemplate() public méthode

public BulkUpdateTemplate ( System.Guid siteID, List lstUpd, string sTemplateFile ) : void
siteID System.Guid
lstUpd List
sTemplateFile string
Résultat void

ContentPageHelper() public méthode

public ContentPageHelper ( ) : System
Résultat System

CreateBlogDatePrefix() public static méthode

public static CreateBlogDatePrefix ( System.Guid siteID, System.DateTime goLiveDate ) : string
siteID System.Guid
goLiveDate System.DateTime
Résultat string

CreateFileNameFromSlug() public static méthode

public static CreateFileNameFromSlug ( System.Guid siteID, System.DateTime goLiveDate, string PageSlug ) : string
siteID System.Guid
goLiveDate System.DateTime
PageSlug string
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ExistingPagesBeginWith() public méthode

public ExistingPagesBeginWith ( System.Guid siteID, string sFolderPath ) : bool
siteID System.Guid
sFolderPath string
Résultat bool

ExistingPagesBeginWith() public méthode

public ExistingPagesBeginWith ( SiteData site ) : bool
site SiteData
Résultat bool

FindByFilename() public méthode

public FindByFilename ( System.Guid siteID, string urlFileName ) : ContentPage
siteID System.Guid
urlFileName string
Résultat ContentPage

FindByPageSlug() public méthode

public FindByPageSlug ( System.Guid siteID, System.DateTime datePublished, string urlPageSlug ) : ContentPage
siteID System.Guid
datePublished System.DateTime
urlPageSlug string
Résultat ContentPage

FindContentByID() public méthode

public FindContentByID ( System.Guid siteID, System.Guid rootContentID ) : ContentPage
siteID System.Guid
rootContentID System.Guid
Résultat ContentPage

FindHome() public méthode

public FindHome ( System.Guid siteID ) : ContentPage
siteID System.Guid
Résultat ContentPage

FindHome() public méthode

public FindHome ( System.Guid siteID, bool bActiveOnly ) : ContentPage
siteID System.Guid
bActiveOnly bool
Résultat ContentPage

FindPageByTitleAndDate() public méthode

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

FindPagesBeginingWith() public méthode

public FindPagesBeginingWith ( System.Guid siteID, string sFolderPath ) : List
siteID System.Guid
sFolderPath string
Résultat List

FixBlogNavOrder() public méthode

public FixBlogNavOrder ( System.Guid siteID ) : void
siteID System.Guid
Résultat void

GetAllLatestBlogList() public méthode

public GetAllLatestBlogList ( System.Guid siteID ) : List
siteID System.Guid
Résultat List

GetAllLatestContentList() public méthode

public GetAllLatestContentList ( System.Guid siteID ) : List
siteID System.Guid
Résultat List

GetBlogHeadingFromURL() public méthode

public GetBlogHeadingFromURL ( SiteData currentSite, string sFilterPath ) : Carrotware.CMS.Core.PageViewType
currentSite SiteData
sFilterPath string
Résultat Carrotware.CMS.Core.PageViewType

GetChildNavigation() public méthode

public GetChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
siteID System.Guid
ParentID System.Guid
bActiveOnly bool
Résultat List

GetChildNavigation() public méthode

public GetChildNavigation ( System.Guid siteID, string sParentPage, bool bActiveOnly ) : List
siteID System.Guid
sParentPage string
bActiveOnly bool
Résultat List

GetContentByDateRange() public méthode

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
Résultat List

GetCurrentEditUser() public méthode

public GetCurrentEditUser ( System.Guid rootContentID, System.Guid siteID ) : System.Guid
rootContentID System.Guid
siteID System.Guid
Résultat System.Guid

GetEmptyHome() public static méthode

public static GetEmptyHome ( ) : ContentPage
Résultat ContentPage

GetFilteredContentPagedCount() public méthode

public GetFilteredContentPagedCount ( SiteData currentSite, string sFilterPath, bool bActiveOnly ) : int
currentSite SiteData
sFilterPath string
bActiveOnly bool
Résultat int

GetFilteredContentPagedList() public méthode

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
Résultat List

GetLatest() public méthode

public GetLatest ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
Résultat List

GetLatestBlogPagedList() public méthode

public GetLatestBlogPagedList ( System.Guid siteID, bool bActiveOnly, int pageNumber ) : List
siteID System.Guid
bActiveOnly bool
pageNumber int
Résultat List

GetLatestBlogPagedList() public méthode

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

GetLatestBlogPagedList() public méthode

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
Résultat List

GetLatestBlogPagedList() public méthode

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
Résultat List

GetLatestContentByURL() public méthode

public GetLatestContentByURL ( System.Guid siteID, bool bActiveOnly, string sPage ) : ContentPage
siteID System.Guid
bActiveOnly bool
sPage string
Résultat ContentPage

GetLatestContentList() public méthode

public GetLatestContentList ( System.Guid siteID, bool bActiveOnly ) : List
siteID System.Guid
bActiveOnly bool
Résultat List

GetLatestContentPagedList() public méthode

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

GetLatestContentPagedList() public méthode

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
Résultat List

GetLatestContentPagedList() public méthode

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
Résultat List

GetLatestContentPagedList() public méthode

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
Résultat List

GetLatestPosts() public méthode

public GetLatestPosts ( System.Guid siteID, int iUpdates, bool bActiveOnly ) : List
siteID System.Guid
iUpdates int
bActiveOnly bool
Résultat List

GetMaxNavOrder() public méthode

public GetMaxNavOrder ( System.Guid siteID ) : int
siteID System.Guid
Résultat int

GetPageHierarchy() public méthode

public GetPageHierarchy ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
Résultat List

GetPagedSortedContent() public méthode

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
Résultat List

GetParentWithChildNavigation() public méthode

public GetParentWithChildNavigation ( System.Guid siteID, System.Guid ParentID, bool bActiveOnly ) : List
siteID System.Guid
ParentID System.Guid
bActiveOnly bool
Résultat List

GetPopularTemplateList() public méthode

public GetPopularTemplateList ( System.Guid siteID, ContentPageType pageType ) : float>.Dictionary
siteID System.Guid
pageType ContentPageType
Résultat float>.Dictionary

GetPostsByDateRange() public méthode

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

GetSamplerView() public static méthode

public static GetSamplerView ( ) : ContentPage
Résultat ContentPage

GetSiteContentCount() public méthode

public GetSiteContentCount ( System.Guid siteID ) : int
siteID System.Guid
Résultat int

GetSitePageCount() public méthode

public GetSitePageCount ( System.Guid siteID, ContentPageType entryType ) : int
siteID System.Guid
entryType ContentPageType
Résultat int

GetSitePageCount() public méthode

public GetSitePageCount ( System.Guid siteID, ContentPageType entryType, bool bActiveOnly ) : int
siteID System.Guid
entryType ContentPageType
bActiveOnly bool
Résultat int

GetSiteSnippetCount() public méthode

public GetSiteSnippetCount ( System.Guid siteID ) : int
siteID System.Guid
Résultat int

GetTopNavigation() public méthode

public GetTopNavigation ( System.Guid siteID, bool bActiveOnly ) : List
siteID System.Guid
bActiveOnly bool
Résultat List

GetVersion() public méthode

public GetVersion ( System.Guid siteID, System.Guid contentID ) : ContentPage
siteID System.Guid
contentID System.Guid
Résultat ContentPage

GetVersionHistory() public méthode

public GetVersionHistory ( System.Guid siteID, System.Guid rootContentID ) : List
siteID System.Guid
rootContentID System.Guid
Résultat List

IsPageLocked() public méthode

public IsPageLocked ( ContentPage cp ) : bool
cp ContentPage
Résultat bool

IsPageLocked() public méthode

public IsPageLocked ( System.Guid rootContentID, System.Guid siteID ) : bool
rootContentID System.Guid
siteID System.Guid
Résultat bool

IsPageLocked() public méthode

public IsPageLocked ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Résultat bool

MarkSelectedPublished() public méthode

public MarkSelectedPublished ( System.Guid siteID, List lstUpd, UpdateField selField ) : void
siteID System.Guid
lstUpd List
selField UpdateField
Résultat void

PerformDataPagingQueryableContent() public méthode

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
Résultat List

RecordHeartbeatLock() public méthode

public RecordHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Résultat bool

RecordPageLock() public méthode

public RecordPageLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Résultat bool

RemoveContent() public méthode

public RemoveContent ( System.Guid siteID, System.Guid rootContentID ) : void
siteID System.Guid
rootContentID System.Guid
Résultat void

RemoveVersions() public méthode

public RemoveVersions ( System.Guid siteID, List lstDel ) : void
siteID System.Guid
lstDel List
Résultat void

ResetHeartbeatLock() public méthode

public ResetHeartbeatLock ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : void
rootContentID System.Guid
siteID System.Guid
currentUserID System.Guid
Résultat void

ResolveDuplicateBlogURLs() public méthode

public ResolveDuplicateBlogURLs ( System.Guid siteID ) : void
siteID System.Guid
Résultat void

ScrubFilename() public static méthode

public static ScrubFilename ( System.Guid rootContentID, string fileName ) : string
rootContentID System.Guid
fileName string
Résultat string

ScrubFilename() public static méthode

public static ScrubFilename ( string fileName ) : string
fileName string
Résultat string

ScrubPath() public static méthode

public static ScrubPath ( string filePath ) : string
filePath string
Résultat string

ScrubSlug() public static méthode

public static ScrubSlug ( string slugValue ) : string
slugValue string
Résultat string

UpdateAllBlogTemplates() public méthode

public UpdateAllBlogTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Résultat void

UpdateAllContentTemplates() public méthode

public UpdateAllContentTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Résultat void

UpdateAllPageTemplates() public méthode

public UpdateAllPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Résultat void

UpdateSubPageTemplates() public méthode

public UpdateSubPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Résultat void

UpdateTopPageTemplates() public méthode

public UpdateTopPageTemplates ( System.Guid siteID, string sTemplateFile ) : void
siteID System.Guid
sTemplateFile string
Résultat void