Table of Contents

Class SiteRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class SiteRepository : ISiteRepository
Inheritance
object
SiteRepository
Implements

Constructors

SiteRepository(IDbContextFactory<TenantDBContext>, IRoleRepository, IProfileRepository, IFolderRepository, IPageRepository, IModuleRepository, IPageModuleRepository, IModuleDefinitionRepository, IThemeRepository, IServiceProvider, IConfigurationRoot, IServerStateManager, ILogManager)

public SiteRepository(IDbContextFactory<TenantDBContext> factory, IRoleRepository roleRepository, IProfileRepository profileRepository, IFolderRepository folderRepository, IPageRepository pageRepository, IModuleRepository moduleRepository, IPageModuleRepository pageModuleRepository, IModuleDefinitionRepository moduleDefinitionRepository, IThemeRepository themeRepository, IServiceProvider serviceProvider, IConfigurationRoot config, IServerStateManager serverState, ILogManager logger)

Parameters

factory IDbContextFactory<TenantDBContext>
roleRepository IRoleRepository
profileRepository IProfileRepository
folderRepository IFolderRepository
pageRepository IPageRepository
moduleRepository IModuleRepository
pageModuleRepository IPageModuleRepository
moduleDefinitionRepository IModuleDefinitionRepository
themeRepository IThemeRepository
serviceProvider IServiceProvider
config IConfigurationRoot
serverState IServerStateManager
logger ILogManager

Methods

AddSite(Site)

public Site AddSite(Site site)

Parameters

site Site

Returns

Site

CreatePages(Site, List<PageTemplate>, Alias)

public void CreatePages(Site site, List<PageTemplate> pageTemplates, Alias alias)

Parameters

site Site
pageTemplates List<PageTemplate>
alias Alias

DeleteSite(int)

public void DeleteSite(int siteId)

Parameters

siteId int

GetSite(int)

public Site GetSite(int siteId)

Parameters

siteId int

Returns

Site

GetSite(int, bool)

public Site GetSite(int siteId, bool tracking)

Parameters

siteId int
tracking bool

Returns

Site

GetSites()

public IEnumerable<Site> GetSites()

Returns

IEnumerable<Site>

InitializeSite(Alias)

public void InitializeSite(Alias alias)

Parameters

alias Alias

UpdateSite(Site)

public Site UpdateSite(Site site)

Parameters

site Site

Returns

Site