Support for third party modules, improved error handling, standardardized enum naming, reorganized interface definitions, support for DB script upgrades, added Settings entity
This commit is contained in:
14
Oqtane.Server/Repository/Interfaces/IAliasRepository.cs
Normal file
14
Oqtane.Server/Repository/Interfaces/IAliasRepository.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IAliasRepository
|
||||
{
|
||||
IEnumerable<Alias> GetAliases();
|
||||
Alias AddAlias(Alias Alias);
|
||||
Alias UpdateAlias(Alias Alias);
|
||||
Alias GetAlias(int AliasId);
|
||||
void DeleteAlias(int AliasId);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IModuleDefinitionRepository
|
||||
{
|
||||
IEnumerable<ModuleDefinition> GetModuleDefinitions();
|
||||
}
|
||||
}
|
15
Oqtane.Server/Repository/Interfaces/IModuleRepository.cs
Normal file
15
Oqtane.Server/Repository/Interfaces/IModuleRepository.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IModuleRepository
|
||||
{
|
||||
IEnumerable<Module> GetModules();
|
||||
IEnumerable<Module> GetModules(int SiteId, string ModuleDefinitionName);
|
||||
Module AddModule(Module Module);
|
||||
Module UpdateModule(Module Module);
|
||||
Module GetModule(int ModuleId);
|
||||
void DeleteModule(int ModuleId);
|
||||
}
|
||||
}
|
15
Oqtane.Server/Repository/Interfaces/IPageModuleRepository.cs
Normal file
15
Oqtane.Server/Repository/Interfaces/IPageModuleRepository.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IPageModuleRepository
|
||||
{
|
||||
IEnumerable<PageModule> GetPageModules();
|
||||
IEnumerable<PageModule> GetPageModules(int PageId);
|
||||
PageModule AddPageModule(PageModule PageModule);
|
||||
PageModule UpdatePageModule(PageModule PageModule);
|
||||
PageModule GetPageModule(int PageModuleId);
|
||||
void DeletePageModule(int PageModuleId);
|
||||
}
|
||||
}
|
15
Oqtane.Server/Repository/Interfaces/IPageRepository.cs
Normal file
15
Oqtane.Server/Repository/Interfaces/IPageRepository.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IPageRepository
|
||||
{
|
||||
IEnumerable<Page> GetPages();
|
||||
IEnumerable<Page> GetPages(int SiteId);
|
||||
Page AddPage(Page Page);
|
||||
Page UpdatePage(Page Page);
|
||||
Page GetPage(int PageId);
|
||||
void DeletePage(int PageId);
|
||||
}
|
||||
}
|
14
Oqtane.Server/Repository/Interfaces/ISettingRepository.cs
Normal file
14
Oqtane.Server/Repository/Interfaces/ISettingRepository.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ISettingRepository
|
||||
{
|
||||
IEnumerable<Setting> GetSettings(string EntityName, int EntityId);
|
||||
Setting AddSetting(Setting Setting);
|
||||
Setting UpdateSetting(Setting Setting);
|
||||
Setting GetSetting(int SettingId);
|
||||
void DeleteSetting(int SettingId);
|
||||
}
|
||||
}
|
14
Oqtane.Server/Repository/Interfaces/ISiteRepository.cs
Normal file
14
Oqtane.Server/Repository/Interfaces/ISiteRepository.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ISiteRepository
|
||||
{
|
||||
IEnumerable<Site> GetSites();
|
||||
Site AddSite(Site Site);
|
||||
Site UpdateSite(Site Site);
|
||||
Site GetSite(int SiteId);
|
||||
void DeleteSite(int SiteId);
|
||||
}
|
||||
}
|
15
Oqtane.Server/Repository/Interfaces/ISiteUserRepository.cs
Normal file
15
Oqtane.Server/Repository/Interfaces/ISiteUserRepository.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ISiteUserRepository
|
||||
{
|
||||
IEnumerable<SiteUser> GetSiteUsers();
|
||||
IEnumerable<SiteUser> GetSiteUsers(int SiteId, int UserId);
|
||||
SiteUser AddSiteUser(SiteUser SiteUser);
|
||||
SiteUser UpdateSiteUser(SiteUser SiteUser);
|
||||
SiteUser GetSiteUser(int SiteUserId);
|
||||
void DeleteSiteUser(int SiteUserId);
|
||||
}
|
||||
}
|
14
Oqtane.Server/Repository/Interfaces/ITenantRepository.cs
Normal file
14
Oqtane.Server/Repository/Interfaces/ITenantRepository.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using Oqtane.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ITenantRepository
|
||||
{
|
||||
IEnumerable<Tenant> GetTenants();
|
||||
Tenant AddTenant(Tenant Tenant);
|
||||
Tenant UpdateTenant(Tenant Tenant);
|
||||
Tenant GetTenant(int TenantId);
|
||||
void DeleteTenant(int TenantId);
|
||||
}
|
||||
}
|
9
Oqtane.Server/Repository/Interfaces/ITenantResolver.cs
Normal file
9
Oqtane.Server/Repository/Interfaces/ITenantResolver.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ITenantResolver
|
||||
{
|
||||
Tenant GetTenant();
|
||||
}
|
||||
}
|
10
Oqtane.Server/Repository/Interfaces/IThemeRepository.cs
Normal file
10
Oqtane.Server/Repository/Interfaces/IThemeRepository.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IThemeRepository
|
||||
{
|
||||
IEnumerable<Theme> GetThemes();
|
||||
}
|
||||
}
|
15
Oqtane.Server/Repository/Interfaces/IUserRepository.cs
Normal file
15
Oqtane.Server/Repository/Interfaces/IUserRepository.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface IUserRepository
|
||||
{
|
||||
IEnumerable<User> GetUsers();
|
||||
User AddUser(User User);
|
||||
User UpdateUser(User User);
|
||||
User GetUser(int UserId);
|
||||
User GetUser(string Username);
|
||||
void DeleteUser(int UserId);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user