C# 클래스 BetterCms.Module.Pages.Services.DefaultUrlService

상속: IUrlService
파일 보기 프로젝트 열기: devbridge/BetterCMS 1 사용 예제들

공개 메소드들

메소드 설명
AddPageUrlPostfix ( string url, string prefixPattern, List unsavedUrls = null ) : string

Adds the postfix to the specified URL.

DefaultUrlService ( IUnitOfWork unitOfWork, ICmsConfiguration configuration ) : System

Initializes a new instance of the DefaultUrlService class.

FixUrl ( string url ) : string

Fixes the URL (adds slashes in front and bottom).

FixUrlFront ( string url ) : string
ValidateExternalUrl ( string url ) : bool

Validates the internal URL.

ValidateInternalUrl ( string url ) : bool

Validates the internal URL.

ValidateInternalUrlWithQueryString ( string url ) : bool

Validates the internal URL with query string.

ValidateUrlPatterns ( string url, string &message, string validatingFieldName = null ) : bool

Validates the URL patterns.

비공개 메소드들

메소드 설명
PathExistsInDb ( string url ) : bool

Checks if path exists in database.

PathExistsInUnsavedList ( string url, List unsavedUrls ) : bool

Checks if path exists in unsaved list.

메소드 상세

AddPageUrlPostfix() 공개 메소드

Adds the postfix to the specified URL.
public AddPageUrlPostfix ( string url, string prefixPattern, List unsavedUrls = null ) : string
url string The page URL.
prefixPattern string The prefix pattern.
unsavedUrls List The list of not saved yet urls.
리턴 string

DefaultUrlService() 공개 메소드

Initializes a new instance of the DefaultUrlService class.
public DefaultUrlService ( IUnitOfWork unitOfWork, ICmsConfiguration configuration ) : System
unitOfWork IUnitOfWork The unit of work.
configuration ICmsConfiguration The configuration.
리턴 System

FixUrl() 공개 메소드

Fixes the URL (adds slashes in front and bottom).
public FixUrl ( string url ) : string
url string The URL.
리턴 string

FixUrlFront() 공개 메소드

public FixUrlFront ( string url ) : string
url string
리턴 string

ValidateExternalUrl() 공개 메소드

Validates the internal URL.
public ValidateExternalUrl ( string url ) : bool
url string The URL.
리턴 bool

ValidateInternalUrl() 공개 메소드

Validates the internal URL.
public ValidateInternalUrl ( string url ) : bool
url string The URL.
리턴 bool

ValidateInternalUrlWithQueryString() 공개 메소드

Validates the internal URL with query string.
public ValidateInternalUrlWithQueryString ( string url ) : bool
url string The URL.
리턴 bool

ValidateUrlPatterns() 공개 메소드

Validates the URL patterns.
public ValidateUrlPatterns ( string url, string &message, string validatingFieldName = null ) : bool
url string The URL.
message string The message.
validatingFieldName string Name of the validating field.
리턴 bool