|
@@ -0,0 +1,65 @@
|
|
|
|
|
+using System.Security.Principal;
|
|
|
|
|
+using Microsoft.Extensions.Logging;
|
|
|
|
|
+using Quadarax.Application.QLiberace.Base.Repositories;
|
|
|
|
|
+using Quadarax.Application.QLiberace.Common.Settings;
|
|
|
|
|
+using Quadarax.Foundation.Core.Business;
|
|
|
|
|
+using Quadarax.Foundation.Core.Data.Interface.Entity.Dto;
|
|
|
|
|
+
|
|
|
|
|
+namespace Quadarax.Application.QLiberace.Base.Services
|
|
|
|
|
+{
|
|
|
|
|
+ internal class SettingsService : AbstractRepositoryService<RepoSetting>
|
|
|
|
|
+ {
|
|
|
|
|
+ #region *** Constructor ***
|
|
|
|
|
+ public SettingsService(RepoSetting repository, IPrincipal currentPrincipal, ILoggerFactory logger) : base(repository, currentPrincipal, logger)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ #region *** Public Operations ***
|
|
|
|
|
+
|
|
|
|
|
+ public ResultDto CreateSettings<TSettings>(ModuleSetting settings) where TSettings : ModuleSetting
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ public ResultValueDto<TSettings> GetSettings<TSettings>(string moduleCode) where TSettings : ModuleSetting
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultValueDto<TValue> GetSettingsValue<TValue>(string moduleCode, string valueCode)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultBoolDto ExistsSettings(string moduleCode)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultBoolDto ExistsSettingsValue(string moduleCode, string valueCode)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultDto AddSettingsValue(string moduleCode, string valueCode, object value)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultDto UpdateSettings<TSettings>(ModuleSetting settings) where TSettings : ModuleSetting
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultDto UpdateSettingsValue(string moduleCode, string valueCode, object value)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultDto AddOrUpdateSettingsValue(string moduleCode, string valueCode, object value)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ResultValueDto<Dictionary<string,object>> GetSettingsValues(string moduleCode)
|
|
|
|
|
+ {
|
|
|
|
|
+ }
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+}
|