Dynamic user profile per tenant
This commit is contained in:
21
Oqtane.Client/Services/Interfaces/IProfileService.cs
Normal file
21
Oqtane.Client/Services/Interfaces/IProfileService.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Oqtane.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Oqtane.Services
|
||||
{
|
||||
public interface IProfileService
|
||||
{
|
||||
Task<List<Profile>> GetProfilesAsync();
|
||||
|
||||
Task<List<Profile>> GetProfilesAsync(int SiteId);
|
||||
|
||||
Task<Profile> GetProfileAsync(int ProfileId);
|
||||
|
||||
Task<Profile> AddProfileAsync(Profile Profile);
|
||||
|
||||
Task<Profile> UpdateProfileAsync(Profile Profile);
|
||||
|
||||
Task DeleteProfileAsync(int ProfileId);
|
||||
}
|
||||
}
|
@ -26,6 +26,10 @@ namespace Oqtane.Services
|
||||
|
||||
Task<Setting> UpdateModuleSettingsAsync(List<Setting> ModuleSettings, int ModuleId, string SettingName, string SettingValue);
|
||||
|
||||
Task<List<Setting>> GetUserSettingsAsync(int UserId);
|
||||
|
||||
Task<Setting> UpdateUserSettingsAsync(List<Setting> UserSettings, int UserId, string SettingName, string SettingValue);
|
||||
|
||||
|
||||
Task<List<Setting>> GetSettingsAsync(string EntityName, int EntityId);
|
||||
|
||||
@ -35,9 +39,13 @@ namespace Oqtane.Services
|
||||
|
||||
Task<Setting> UpdateSettingAsync(Setting Setting);
|
||||
|
||||
Task<Setting> UpdateSettingsAsync(List<Setting> Settings, string EntityName, int EntityId, string SettingName, string SettingValue);
|
||||
|
||||
Task DeleteSettingAsync(int SettingId);
|
||||
|
||||
|
||||
string GetSetting(List<Setting> Settings, string SettingName, string DefaultValue);
|
||||
}
|
||||
|
||||
List<Setting> SetSetting(List<Setting> Settings, string EntityName, int EntityId, string SettingName, string SettingValue);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user