C# Class InfoCaster.Umbraco.UrlTracker.Repositories.UrlTrackerRepository

显示文件 Open project: kipusoep/UrlTracker Class Usage Examples

Private Properties

Property Type Description
GetFolderName string
GetNotFoundEntryByUrl InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel

Public Methods

Method Description
AddGoneEntryByNodeId ( int nodeId ) : void
AddUrlMapping ( IContent content, int rootNodeId, string url, AutoTrackingTypes type, bool isChild = false ) : bool
AddUrlTrackerEntry ( InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel urlTrackerModel ) : void
ClearNotFoundEntries ( ) : void
CreateUrlTrackerTable ( ) : void
DeleteNotFoundEntriesByOldUrl ( string oldUrl ) : void
DeleteNotFoundEntriesByRootAndOldUrl ( int redirectRootNodeId, string oldUrl ) : void
DeleteUrlTrackerEntriesByNodeId ( int nodeId ) : void
DeleteUrlTrackerEntry ( int id ) : void
GetForcedRedirects ( ) : List
GetNotFoundEntries ( ) : List
GetNotFoundEntries ( int maximumRows, int startRowIndex, string sortExpression = "", string keyword = "" ) : List
GetNotFoundEntries ( string sortExpression ) : List
GetNotFoundEntries ( string sortExpression, string keyword = "" ) : List
GetNotFoundEntryByRootAndUrl ( int redirectRootNodeId, string url ) : InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel
GetUrlTrackeOldTableExists ( ) : bool
GetUrlTrackerEntries ( ) : List
GetUrlTrackerEntries ( int maximumRows, int startRowIndex, string sortExpression = "", bool _404 = false, bool include410Gone = false, bool showAutoEntries = true, bool showCustomEntries = true, bool showRegexEntries = true, string keyword = "", bool onlyForcedRedirects = false ) : List
GetUrlTrackerEntries ( string sortExpression ) : List
GetUrlTrackerEntries ( string sortExpression = "", bool showAutoEntries = true, bool showCustomEntries = true, bool showRegexEntries = true, string keyword = "" ) : List
GetUrlTrackerEntryById ( int id ) : InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel
GetUrlTrackerTableExists ( ) : bool
HasInvalidEntries ( List &invalidRowIds ) : bool
HasNotFoundEntries ( ) : bool
MigrateData ( ) : int
ReloadForcedRedirectsCache ( ) : void
UpdateUrlTrackerEntry ( InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel urlTrackerModel ) : void
UpdateUrlTrackerTable ( ) : void

Private Methods

Method Description
GetFolderName ( ) : string
GetNotFoundEntryByUrl ( string url ) : InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel

Method Details

AddGoneEntryByNodeId() public static method

public static AddGoneEntryByNodeId ( int nodeId ) : void
nodeId int
return void

AddUrlMapping() public static method

public static AddUrlMapping ( IContent content, int rootNodeId, string url, AutoTrackingTypes type, bool isChild = false ) : bool
content IContent
rootNodeId int
url string
type AutoTrackingTypes
isChild bool
return bool

AddUrlTrackerEntry() public static method

public static AddUrlTrackerEntry ( InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel urlTrackerModel ) : void
urlTrackerModel InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel
return void

ClearNotFoundEntries() public static method

public static ClearNotFoundEntries ( ) : void
return void

CreateUrlTrackerTable() public static method

public static CreateUrlTrackerTable ( ) : void
return void

DeleteNotFoundEntriesByOldUrl() public static method

public static DeleteNotFoundEntriesByOldUrl ( string oldUrl ) : void
oldUrl string
return void

DeleteNotFoundEntriesByRootAndOldUrl() public static method

public static DeleteNotFoundEntriesByRootAndOldUrl ( int redirectRootNodeId, string oldUrl ) : void
redirectRootNodeId int
oldUrl string
return void

DeleteUrlTrackerEntriesByNodeId() public static method

public static DeleteUrlTrackerEntriesByNodeId ( int nodeId ) : void
nodeId int
return void

DeleteUrlTrackerEntry() public static method

public static DeleteUrlTrackerEntry ( int id ) : void
id int
return void

GetForcedRedirects() public static method

public static GetForcedRedirects ( ) : List
return List

GetNotFoundEntries() public static method

public static GetNotFoundEntries ( ) : List
return List

GetNotFoundEntries() public static method

public static GetNotFoundEntries ( int maximumRows, int startRowIndex, string sortExpression = "", string keyword = "" ) : List
maximumRows int
startRowIndex int
sortExpression string
keyword string
return List

GetNotFoundEntries() public static method

public static GetNotFoundEntries ( string sortExpression ) : List
sortExpression string
return List

GetNotFoundEntries() public static method

public static GetNotFoundEntries ( string sortExpression, string keyword = "" ) : List
sortExpression string
keyword string
return List

GetNotFoundEntryByRootAndUrl() public static method

public static GetNotFoundEntryByRootAndUrl ( int redirectRootNodeId, string url ) : InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel
redirectRootNodeId int
url string
return InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel

GetUrlTrackeOldTableExists() public static method

public static GetUrlTrackeOldTableExists ( ) : bool
return bool

GetUrlTrackerEntries() public static method

public static GetUrlTrackerEntries ( ) : List
return List

GetUrlTrackerEntries() public static method

public static GetUrlTrackerEntries ( int maximumRows, int startRowIndex, string sortExpression = "", bool _404 = false, bool include410Gone = false, bool showAutoEntries = true, bool showCustomEntries = true, bool showRegexEntries = true, string keyword = "", bool onlyForcedRedirects = false ) : List
maximumRows int
startRowIndex int
sortExpression string
_404 bool
include410Gone bool
showAutoEntries bool
showCustomEntries bool
showRegexEntries bool
keyword string
onlyForcedRedirects bool
return List

GetUrlTrackerEntries() public static method

public static GetUrlTrackerEntries ( string sortExpression ) : List
sortExpression string
return List

GetUrlTrackerEntries() public static method

public static GetUrlTrackerEntries ( string sortExpression = "", bool showAutoEntries = true, bool showCustomEntries = true, bool showRegexEntries = true, string keyword = "" ) : List
sortExpression string
showAutoEntries bool
showCustomEntries bool
showRegexEntries bool
keyword string
return List

GetUrlTrackerEntryById() public static method

public static GetUrlTrackerEntryById ( int id ) : InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel
id int
return InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel

GetUrlTrackerTableExists() public static method

public static GetUrlTrackerTableExists ( ) : bool
return bool

HasInvalidEntries() public static method

public static HasInvalidEntries ( List &invalidRowIds ) : bool
invalidRowIds List
return bool

HasNotFoundEntries() public static method

public static HasNotFoundEntries ( ) : bool
return bool

MigrateData() public static method

public static MigrateData ( ) : int
return int

ReloadForcedRedirectsCache() public static method

public static ReloadForcedRedirectsCache ( ) : void
return void

UpdateUrlTrackerEntry() public static method

public static UpdateUrlTrackerEntry ( InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel urlTrackerModel ) : void
urlTrackerModel InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel
return void

UpdateUrlTrackerTable() public static method

public static UpdateUrlTrackerTable ( ) : void
return void