Server naming fixes and cleanup
Server is now completely cleaned up and without warnings
This commit is contained in:
@ -6,9 +6,9 @@ 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);
|
||||
Alias AddAlias(Alias alias);
|
||||
Alias UpdateAlias(Alias alias);
|
||||
Alias GetAlias(int aliasId);
|
||||
void DeleteAlias(int aliasId);
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IFileRepository
|
||||
{
|
||||
IEnumerable<File> GetFiles(int FolderId);
|
||||
File AddFile(File File);
|
||||
File UpdateFile(File File);
|
||||
File GetFile(int FileId);
|
||||
void DeleteFile(int FileId);
|
||||
IEnumerable<File> GetFiles(int folderId);
|
||||
File AddFile(File file);
|
||||
File UpdateFile(File file);
|
||||
File GetFile(int fileId);
|
||||
void DeleteFile(int fileId);
|
||||
}
|
||||
}
|
||||
|
@ -5,11 +5,11 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IFolderRepository
|
||||
{
|
||||
IEnumerable<Folder> GetFolders(int SiteId);
|
||||
Folder AddFolder(Folder Folder);
|
||||
Folder UpdateFolder(Folder Folder);
|
||||
Folder GetFolder(int FolderId);
|
||||
Folder GetFolder(int SiteId, string Path);
|
||||
void DeleteFolder(int FolderId);
|
||||
IEnumerable<Folder> GetFolders(int siteId);
|
||||
Folder AddFolder(Folder folder);
|
||||
Folder UpdateFolder(Folder folder);
|
||||
Folder GetFolder(int folderId);
|
||||
Folder GetFolder(int siteId, string path);
|
||||
void DeleteFolder(int folderId);
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,9 @@ namespace Oqtane.Repository
|
||||
public interface IJobLogRepository
|
||||
{
|
||||
IEnumerable<JobLog> GetJobLogs();
|
||||
JobLog AddJobLog(JobLog JobLog);
|
||||
JobLog UpdateJobLog(JobLog JobLog);
|
||||
JobLog GetJobLog(int JobLogId);
|
||||
void DeleteJobLog(int JobLogId);
|
||||
JobLog AddJobLog(JobLog jobLog);
|
||||
JobLog UpdateJobLog(JobLog jobLog);
|
||||
JobLog GetJobLog(int jobLogId);
|
||||
void DeleteJobLog(int jobLogId);
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,9 @@ namespace Oqtane.Repository
|
||||
public interface IJobRepository
|
||||
{
|
||||
IEnumerable<Job> GetJobs();
|
||||
Job AddJob(Job Job);
|
||||
Job UpdateJob(Job Job);
|
||||
Job GetJob(int JobId);
|
||||
void DeleteJob(int JobId);
|
||||
Job AddJob(Job job);
|
||||
Job UpdateJob(Job job);
|
||||
Job GetJob(int jobId);
|
||||
void DeleteJob(int jobId);
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
using Oqtane.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ILogRepository
|
||||
{
|
||||
IEnumerable<Log> GetLogs(int SiteId, string Level, string Function, int Rows);
|
||||
Log GetLog(int LogId);
|
||||
void AddLog(Log Log);
|
||||
IEnumerable<Log> GetLogs(int siteId, string level, string function, int rows);
|
||||
Log GetLog(int logId);
|
||||
void AddLog(Log log);
|
||||
}
|
||||
}
|
||||
|
@ -5,9 +5,9 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IModuleDefinitionRepository
|
||||
{
|
||||
IEnumerable<ModuleDefinition> GetModuleDefinitions(int SideId);
|
||||
ModuleDefinition GetModuleDefinition(int ModuleDefinitionId, int SideId);
|
||||
void UpdateModuleDefinition(ModuleDefinition ModuleDefinition);
|
||||
void DeleteModuleDefinition(int ModuleDefinitionId, int SiteId);
|
||||
IEnumerable<ModuleDefinition> GetModuleDefinitions(int sideId);
|
||||
ModuleDefinition GetModuleDefinition(int moduleDefinitionId, int sideId);
|
||||
void UpdateModuleDefinition(ModuleDefinition moduleDefinition);
|
||||
void DeleteModuleDefinition(int moduleDefinitionId, int siteId);
|
||||
}
|
||||
}
|
||||
|
@ -5,12 +5,12 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IModuleRepository
|
||||
{
|
||||
IEnumerable<Module> GetModules(int SiteId);
|
||||
Module AddModule(Module Module);
|
||||
Module UpdateModule(Module Module);
|
||||
Module GetModule(int ModuleId);
|
||||
void DeleteModule(int ModuleId);
|
||||
string ExportModule(int ModuleId);
|
||||
bool ImportModule(int ModuleId, string Content);
|
||||
IEnumerable<Module> GetModules(int siteId);
|
||||
Module AddModule(Module module);
|
||||
Module UpdateModule(Module module);
|
||||
Module GetModule(int moduleId);
|
||||
void DeleteModule(int moduleId);
|
||||
string ExportModule(int moduleId);
|
||||
bool ImportModule(int moduleId, string content);
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface INotificationRepository
|
||||
{
|
||||
IEnumerable<Notification> GetNotifications(int SiteId, int FromUserId, int ToUserId);
|
||||
Notification AddNotification(Notification Notification);
|
||||
Notification UpdateNotification(Notification Notification);
|
||||
Notification GetNotification(int NotificationId);
|
||||
void DeleteNotification(int NotificationId);
|
||||
IEnumerable<Notification> GetNotifications(int siteId, int fromUserId, int toUserId);
|
||||
Notification AddNotification(Notification notification);
|
||||
Notification UpdateNotification(Notification notification);
|
||||
Notification GetNotification(int notificationId);
|
||||
void DeleteNotification(int notificationId);
|
||||
}
|
||||
}
|
||||
|
@ -5,12 +5,12 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IPageModuleRepository
|
||||
{
|
||||
IEnumerable<PageModule> GetPageModules(int SiteId);
|
||||
IEnumerable<PageModule> GetPageModules(int PageId, string Pane);
|
||||
PageModule AddPageModule(PageModule PageModule);
|
||||
PageModule UpdatePageModule(PageModule PageModule);
|
||||
PageModule GetPageModule(int PageModuleId);
|
||||
PageModule GetPageModule(int PageId, int ModuleId);
|
||||
void DeletePageModule(int PageModuleId);
|
||||
IEnumerable<PageModule> GetPageModules(int siteId);
|
||||
IEnumerable<PageModule> GetPageModules(int pageId, string pane);
|
||||
PageModule AddPageModule(PageModule pageModule);
|
||||
PageModule UpdatePageModule(PageModule pageModule);
|
||||
PageModule GetPageModule(int pageModuleId);
|
||||
PageModule GetPageModule(int pageId, int moduleId);
|
||||
void DeletePageModule(int pageModuleId);
|
||||
}
|
||||
}
|
||||
|
@ -5,12 +5,12 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IPageRepository
|
||||
{
|
||||
IEnumerable<Page> GetPages(int SiteId);
|
||||
Page AddPage(Page Page);
|
||||
Page UpdatePage(Page Page);
|
||||
Page GetPage(int PageId);
|
||||
Page GetPage(int PageId, int UserId);
|
||||
Page GetPage(string Path, int SiteId);
|
||||
void DeletePage(int PageId);
|
||||
IEnumerable<Page> GetPages(int siteId);
|
||||
Page AddPage(Page page);
|
||||
Page UpdatePage(Page page);
|
||||
Page GetPage(int pageId);
|
||||
Page GetPage(int pageId, int userId);
|
||||
Page GetPage(string path, int siteId);
|
||||
void DeletePage(int pageId);
|
||||
}
|
||||
}
|
||||
|
@ -5,16 +5,16 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IPermissionRepository
|
||||
{
|
||||
IEnumerable<Permission> GetPermissions(int SiteId, string EntityName);
|
||||
IEnumerable<Permission> GetPermissions(string EntityName, int EntityId);
|
||||
IEnumerable<Permission> GetPermissions(string EntityName, int EntityId, string PermissionName);
|
||||
Permission AddPermission(Permission Permission);
|
||||
Permission UpdatePermission(Permission Permission);
|
||||
void UpdatePermissions(int SiteId, string EntityName, int EntityId, string Permissions);
|
||||
Permission GetPermission(int PermissionId);
|
||||
void DeletePermission(int PermissionId);
|
||||
void DeletePermissions(int SiteId, string EntityName, int EntityId);
|
||||
string EncodePermissions(int EntityId, IEnumerable<Permission> Permissions);
|
||||
IEnumerable<Permission> DecodePermissions(string Permissions, int SiteId, string EntityName, int EntityId);
|
||||
IEnumerable<Permission> GetPermissions(int siteId, string entityName);
|
||||
IEnumerable<Permission> GetPermissions(string entityName, int entityId);
|
||||
IEnumerable<Permission> GetPermissions(string entityName, int entityId, string permissionName);
|
||||
Permission AddPermission(Permission permission);
|
||||
Permission UpdatePermission(Permission permission);
|
||||
void UpdatePermissions(int siteId, string entityName, int entityId, string permissionStrings);
|
||||
Permission GetPermission(int permissionId);
|
||||
void DeletePermission(int permissionId);
|
||||
void DeletePermissions(int siteId, string entityName, int entityId);
|
||||
string EncodePermissions(int entityId, IEnumerable<Permission> permissionList);
|
||||
IEnumerable<Permission> DecodePermissions(string permissions, int siteId, string entityName, int entityId);
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IProfileRepository
|
||||
{
|
||||
IEnumerable<Profile> GetProfiles(int SiteId);
|
||||
Profile AddProfile(Profile Profile);
|
||||
Profile UpdateProfile(Profile Profile);
|
||||
Profile GetProfile(int ProfileId);
|
||||
void DeleteProfile(int ProfileId);
|
||||
IEnumerable<Profile> GetProfiles(int siteId);
|
||||
Profile AddProfile(Profile profile);
|
||||
Profile UpdateProfile(Profile profile);
|
||||
Profile GetProfile(int profileId);
|
||||
void DeleteProfile(int profileId);
|
||||
}
|
||||
}
|
||||
|
@ -5,11 +5,11 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IRoleRepository
|
||||
{
|
||||
IEnumerable<Role> GetRoles(int SiteId);
|
||||
IEnumerable<Role> GetRoles(int SiteId, bool IncludeGlobalRoles);
|
||||
Role AddRole(Role Role);
|
||||
Role UpdateRole(Role Role);
|
||||
Role GetRole(int RoleId);
|
||||
void DeleteRole(int RoleId);
|
||||
IEnumerable<Role> GetRoles(int siteId);
|
||||
IEnumerable<Role> GetRoles(int siteId, bool includeGlobalRoles);
|
||||
Role AddRole(Role role);
|
||||
Role UpdateRole(Role role);
|
||||
Role GetRole(int roleId);
|
||||
void DeleteRole(int roleId);
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ 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);
|
||||
IEnumerable<Setting> GetSettings(string entityName, int entityId);
|
||||
Setting AddSetting(Setting setting);
|
||||
Setting UpdateSetting(Setting setting);
|
||||
Setting GetSetting(int settingId);
|
||||
void DeleteSetting(int settingId);
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,9 @@ 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);
|
||||
Site AddSite(Site site);
|
||||
Site UpdateSite(Site site);
|
||||
Site GetSite(int siteId);
|
||||
void DeleteSite(int siteId);
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,14 @@
|
||||
using Oqtane.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
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);
|
||||
Tenant AddTenant(Tenant tenant);
|
||||
Tenant UpdateTenant(Tenant tenant);
|
||||
Tenant GetTenant(int tenantId);
|
||||
void DeleteTenant(int tenantId);
|
||||
}
|
||||
}
|
||||
|
@ -6,10 +6,10 @@ 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);
|
||||
User AddUser(User user);
|
||||
User UpdateUser(User user);
|
||||
User GetUser(int userId);
|
||||
User GetUser(string username);
|
||||
void DeleteUser(int userId);
|
||||
}
|
||||
}
|
||||
|
@ -5,11 +5,11 @@ namespace Oqtane.Repository
|
||||
{
|
||||
public interface IUserRoleRepository
|
||||
{
|
||||
IEnumerable<UserRole> GetUserRoles(int SiteId);
|
||||
IEnumerable<UserRole> GetUserRoles(int UserId, int SiteId);
|
||||
UserRole AddUserRole(UserRole UserRole);
|
||||
UserRole UpdateUserRole(UserRole UserRole);
|
||||
UserRole GetUserRole(int UserRoleId);
|
||||
void DeleteUserRole(int UserRoleId);
|
||||
IEnumerable<UserRole> GetUserRoles(int siteId);
|
||||
IEnumerable<UserRole> GetUserRoles(int userId, int siteId);
|
||||
UserRole AddUserRole(UserRole userRole);
|
||||
UserRole UpdateUserRole(UserRole userRole);
|
||||
UserRole GetUserRole(int userRoleId);
|
||||
void DeleteUserRole(int userRoleId);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user