Table of Contents

Interface IUrlMappingService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll

Service to manage UrlMappings on a Site

public interface IUrlMappingService

Methods

AddUrlMappingAsync(UrlMapping)

Add / save a new UrlMapping to the database.

Task<UrlMapping> AddUrlMappingAsync(UrlMapping urlMapping)

Parameters

urlMapping UrlMapping

Returns

Task<UrlMapping>

DeleteUrlMappingAsync(int)

Delete a UrlMapping in the database.

Task DeleteUrlMappingAsync(int urlMappingId)

Parameters

urlMappingId int

ID-reference of a UrlMapping

Returns

Task

GetUrlMappingAsync(int)

Get one specific UrlMapping

Task<UrlMapping> GetUrlMappingAsync(int urlMappingId)

Parameters

urlMappingId int

ID-reference of a UrlMapping

Returns

Task<UrlMapping>

GetUrlMappingAsync(int, string)

Get one specific UrlMapping

Task<UrlMapping> GetUrlMappingAsync(int siteId, string url)

Parameters

siteId int

ID-reference of a Site

url string

A url

Returns

Task<UrlMapping>

GetUrlMappingsAsync(int, bool)

Get all UrlMappings of this Site.

Task<List<UrlMapping>> GetUrlMappingsAsync(int siteId, bool isMapped)

Parameters

siteId int

ID-reference of a Site

isMapped bool

Returns

Task<List<UrlMapping>>

UpdateUrlMappingAsync(UrlMapping)

Update a UrlMapping in the database.

Task<UrlMapping> UpdateUrlMappingAsync(UrlMapping urlMapping)

Parameters

urlMapping UrlMapping

Returns

Task<UrlMapping>