메소드 | 설명 | |
---|---|---|
CreateRedirectEntity ( string pageUrl, string redirectUrl ) : Redirect |
Checks if such redirect doesn't exists yet and creates new redirect entity.
|
|
DefaultRedirectService ( IUnitOfWork unitOfWork, IUrlService urlService, IRepository repository ) : System |
Initializes a new instance of the DefaultRedirectService class.
|
|
DeleteRedirect ( System.Guid id, int version ) : bool | ||
GetAllRedirects ( ) : IList |
Gets the list with all redirects.
|
|
GetPageRedirect ( string pageUrl, System.Guid id = null ) : Redirect |
Gets redirect, if such redirect exists.
|
|
GetRedirect ( string url ) : string |
Gets the redirect for given url.
|
|
SaveRedirect ( ViewModels model, bool createIfNotExists = false ) : Redirect | ||
ValidateForCircularLoop ( string pageUrl, string redirectUrl, System.Guid id = null ) : void |
Validates urls: checks if the the circular loop exists.
|
|
ValidateRedirectExists ( string pageUrl, System.Guid id = null ) : void |
Checks, if such redirect exists.
|
메소드 | 설명 | |
---|---|---|
RecursiveCircularLoop ( IList |
Recursive method checks for circular loops in redirects list.
|
public CreateRedirectEntity ( string pageUrl, string redirectUrl ) : Redirect | ||
pageUrl | string | The page URL. |
redirectUrl | string | The redirect URL. |
리턴 | Redirect |
public DefaultRedirectService ( IUnitOfWork unitOfWork, IUrlService urlService, IRepository repository ) : System | ||
unitOfWork | IUnitOfWork | The unit of work. |
urlService | IUrlService | The URL service. |
repository | IRepository | The repository. |
리턴 | System |
public DeleteRedirect ( System.Guid id, int version ) : bool | ||
id | System.Guid | |
version | int | |
리턴 | bool |
public GetPageRedirect ( string pageUrl, System.Guid id = null ) : Redirect | ||
pageUrl | string | The page URL. |
id | System.Guid | The redirect id. |
리턴 | Redirect |
public SaveRedirect ( ViewModels model, bool createIfNotExists = false ) : Redirect | ||
model | ViewModels | |
createIfNotExists | bool | |
리턴 | Redirect |
public ValidateForCircularLoop ( string pageUrl, string redirectUrl, System.Guid id = null ) : void | ||
pageUrl | string | The page URL. |
redirectUrl | string | The redirect URL. |
id | System.Guid | The id. |
리턴 | void |
public ValidateRedirectExists ( string pageUrl, System.Guid id = null ) : void | ||
pageUrl | string | The page URL. |
id | System.Guid | The redirect id. |
리턴 | void |