From f884c684e1d650c692394e260fbdd12a7d00b6a0 Mon Sep 17 00:00:00 2001 From: Konstantin Hintermayer Date: Wed, 30 Apr 2025 15:58:45 +0200 Subject: [PATCH] Add project files. --- Client/AssemblyInfo.cs | 4 + Client/Interop.cs | 15 ++ .../Details.razor | 105 +++++++++++++ .../Edit.razor | 112 +++++++++++++ .../Index.razor | 96 ++++++++++++ .../ModuleInfo.cs | 19 +++ .../Settings.razor | 47 ++++++ .../Edit.resx | 141 +++++++++++++++++ .../Index.resx | 147 ++++++++++++++++++ .../Settings.resx | 126 +++++++++++++++ ...ein.Module.EventRegistration.Client.csproj | 38 +++++ Client/Services/EventRegistrationService.cs | 42 +++++ Client/Startup/ClientStartup.cs | 14 ++ Client/_Imports.razor | 24 +++ ...in.Module.EventRegistration.Package.csproj | 29 ++++ ...ntenverein.Module.EventRegistration.nuspec | 32 ++++ Package/debug.cmd | 11 ++ Package/debug.sh | 12 ++ Package/icon.png | Bin 0 -> 7800 bytes Package/release.cmd | 7 + Package/release.sh | 5 + ...lventenverein.Module.EventRegistration.sln | 46 ++++++ .../EventRegistrationController.cs | 114 ++++++++++++++ Server/Manager/EventRegistrationManager.cs | 87 +++++++++++ .../Migrations/01000000_InitializeModule.cs | 35 +++++ .../EventRegistrationEntityBuilder.cs | 36 +++++ .../EventResponseEntityBuilder.cs | 45 ++++++ Server/Repository/EventRegistrationContext.cs | 28 ++++ .../Repository/EventRegistrationRepository.cs | 65 ++++++++ .../IEventRegistrationRepository.cs | 15 ++ ...ein.Module.EventRegistration.Server.csproj | 36 +++++ Server/Services/EventRegistrationService.cs | 101 ++++++++++++ Server/Startup/ServerStartup.cs | 28 ++++ .../Module.css | 1 + .../Module.js | 5 + Server/wwwroot/_content/Placeholder.txt | 11 ++ .../Interfaces/IEventRegistrationService.cs | 18 +++ Shared/Models/Event.cs | 21 +++ Shared/Models/Response.cs | 24 +++ ...ein.Module.EventRegistration.Shared.csproj | 22 +++ template.json | 6 + 41 files changed, 1770 insertions(+) create mode 100644 Client/AssemblyInfo.cs create mode 100644 Client/Interop.cs create mode 100644 Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor create mode 100644 Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Edit.razor create mode 100644 Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Index.razor create mode 100644 Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs create mode 100644 Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Settings.razor create mode 100644 Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Edit.resx create mode 100644 Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Index.resx create mode 100644 Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Settings.resx create mode 100644 Client/SZUAbsolventenverein.Module.EventRegistration.Client.csproj create mode 100644 Client/Services/EventRegistrationService.cs create mode 100644 Client/Startup/ClientStartup.cs create mode 100644 Client/_Imports.razor create mode 100644 Package/SZUAbsolventenverein.Module.EventRegistration.Package.csproj create mode 100644 Package/SZUAbsolventenverein.Module.EventRegistration.nuspec create mode 100644 Package/debug.cmd create mode 100644 Package/debug.sh create mode 100644 Package/icon.png create mode 100644 Package/release.cmd create mode 100644 Package/release.sh create mode 100644 SZUAbsolventenverein.Module.EventRegistration.sln create mode 100644 Server/Controllers/EventRegistrationController.cs create mode 100644 Server/Manager/EventRegistrationManager.cs create mode 100644 Server/Migrations/01000000_InitializeModule.cs create mode 100644 Server/Migrations/EntityBuilders/EventRegistrationEntityBuilder.cs create mode 100644 Server/Migrations/EntityBuilders/EventResponseEntityBuilder.cs create mode 100644 Server/Repository/EventRegistrationContext.cs create mode 100644 Server/Repository/EventRegistrationRepository.cs create mode 100644 Server/Repository/IEventRegistrationRepository.cs create mode 100644 Server/SZUAbsolventenverein.Module.EventRegistration.Server.csproj create mode 100644 Server/Services/EventRegistrationService.cs create mode 100644 Server/Startup/ServerStartup.cs create mode 100644 Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.css create mode 100644 Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.js create mode 100644 Server/wwwroot/_content/Placeholder.txt create mode 100644 Shared/Interfaces/IEventRegistrationService.cs create mode 100644 Shared/Models/Event.cs create mode 100644 Shared/Models/Response.cs create mode 100644 Shared/SZUAbsolventenverein.Module.EventRegistration.Shared.csproj create mode 100644 template.json diff --git a/Client/AssemblyInfo.cs b/Client/AssemblyInfo.cs new file mode 100644 index 0000000..eb7adcf --- /dev/null +++ b/Client/AssemblyInfo.cs @@ -0,0 +1,4 @@ +using System.Resources; +using Microsoft.Extensions.Localization; + +[assembly: RootNamespace("SZUAbsolventenverein.Module.EventRegistration.Client")] diff --git a/Client/Interop.cs b/Client/Interop.cs new file mode 100644 index 0000000..73f008a --- /dev/null +++ b/Client/Interop.cs @@ -0,0 +1,15 @@ +using Microsoft.JSInterop; +using System.Threading.Tasks; + +namespace SZUAbsolventenverein.Module.EventRegistration +{ + public class Interop + { + private readonly IJSRuntime _jsRuntime; + + public Interop(IJSRuntime jsRuntime) + { + _jsRuntime = jsRuntime; + } + } +} diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor new file mode 100644 index 0000000..5d4064e --- /dev/null +++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Details.razor @@ -0,0 +1,105 @@ +@using Oqtane.Modules.Controls +@using SZUAbsolventenverein.Module.EventRegistration.Services +@using SZUAbsolventenverein.Module.EventRegistration.Models + +@namespace SZUAbsolventenverein.Module.EventRegistration +@inherits ModuleBase +@inject IEventRegistrationService EventRegistrationService +@inject NavigationManager NavigationManager +@inject IStringLocalizer Localizer + +
+
+ +
+ +
+ +
+
+ + @Localizer["Cancel"] +

+ + +@code { + public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Edit; + + public override string Actions => "Details"; + + public override string Title => "Event Details"; + + public override List Resources => new List() + { + new Resource { ResourceType = ResourceType.Stylesheet, Url = ModulePath() + "Module.css" } + }; + + private ElementReference form; + private bool validated = false; + + private int _id; + private string _name; + private string _createdby; + private DateTime _createdon; + private string _modifiedby; + private DateTime _modifiedon; + + protected override async Task OnInitializedAsync() + { + try + { + _id = Int32.Parse(PageState.QueryString["id"]); + Event EventRegistration = await EventRegistrationService.GetEventRegistrationAsync(_id, ModuleState.ModuleId); + if (EventRegistration != null) + { + _name = EventRegistration.Name; + _createdby = EventRegistration.CreatedBy; + _createdon = EventRegistration.CreatedOn; + _modifiedby = EventRegistration.ModifiedBy; + _modifiedon = EventRegistration.ModifiedOn; + } + } + catch (Exception ex) + { + await logger.LogError(ex, "Error Loading EventRegistration {EventRegistrationId} {Error}", _id, ex.Message); + AddModuleMessage(Localizer["Message.LoadError"], MessageType.Error); + } + } + + private async Task Save() + { + try + { + validated = true; + var interop = new Oqtane.UI.Interop(JSRuntime); + if (await interop.FormValid(form)) + { + if (PageState.Action == "Add") + { + Event EventRegistration = new Event(); + EventRegistration.ModuleId = ModuleState.ModuleId; + EventRegistration.Name = _name; + EventRegistration = await EventRegistrationService.AddEventRegistrationAsync(EventRegistration); + await logger.LogInformation("EventRegistration Added {EventRegistration}", EventRegistration); + } + else + { + Event EventRegistration = await EventRegistrationService.GetEventRegistrationAsync(_id, ModuleState.ModuleId); + EventRegistration.Name = _name; + await EventRegistrationService.UpdateEventRegistrationAsync(EventRegistration); + await logger.LogInformation("EventRegistration Updated {EventRegistration}", EventRegistration); + } + NavigationManager.NavigateTo(NavigateUrl()); + } + else + { + AddModuleMessage(Localizer["Message.SaveValidation"], MessageType.Warning); + } + } + catch (Exception ex) + { + await logger.LogError(ex, "Error Saving EventRegistration {Error}", ex.Message); + AddModuleMessage(Localizer["Message.SaveError"], MessageType.Error); + } + } +} diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Edit.razor b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Edit.razor new file mode 100644 index 0000000..706958f --- /dev/null +++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Edit.razor @@ -0,0 +1,112 @@ +@using Oqtane.Modules.Controls +@using SZUAbsolventenverein.Module.EventRegistration.Services +@using SZUAbsolventenverein.Module.EventRegistration.Models + +@namespace SZUAbsolventenverein.Module.EventRegistration +@inherits ModuleBase +@inject IEventRegistrationService EventRegistrationService +@inject NavigationManager NavigationManager +@inject IStringLocalizer Localizer + +
+
+
+ +
+ +
+
+
+ + @Localizer["Cancel"] +

+ @if (PageState.Action == "Edit") + { + + } +
+ +@code { + public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Edit; + + public override string Actions => "Add,Edit"; + + public override string Title => "Manage Event"; + + public override List Resources => new List() + { + new Resource { ResourceType = ResourceType.Stylesheet, Url = ModulePath() + "Module.css" } + }; + + private ElementReference form; + private bool validated = false; + + private int _id; + private string _name; + private string _createdby; + private DateTime _createdon; + private string _modifiedby; + private DateTime _modifiedon; + + protected override async Task OnInitializedAsync() + { + try + { + if (PageState.Action == "Edit") + { + _id = Int32.Parse(PageState.QueryString["id"]); + Event EventRegistration = await EventRegistrationService.GetEventRegistrationAsync(_id, ModuleState.ModuleId); + if (EventRegistration != null) + { + _name = EventRegistration.Name; + _createdby = EventRegistration.CreatedBy; + _createdon = EventRegistration.CreatedOn; + _modifiedby = EventRegistration.ModifiedBy; + _modifiedon = EventRegistration.ModifiedOn; + } + } + } + catch (Exception ex) + { + await logger.LogError(ex, "Error Loading EventRegistration {EventRegistrationId} {Error}", _id, ex.Message); + AddModuleMessage(Localizer["Message.LoadError"], MessageType.Error); + } + } + + private async Task Save() + { + try + { + validated = true; + var interop = new Oqtane.UI.Interop(JSRuntime); + if (await interop.FormValid(form)) + { + if (PageState.Action == "Add") + { + Event EventRegistration = new Event(); + EventRegistration.ModuleId = ModuleState.ModuleId; + EventRegistration.Name = _name; + EventRegistration = await EventRegistrationService.AddEventRegistrationAsync(EventRegistration); + await logger.LogInformation("EventRegistration Added {EventRegistration}", EventRegistration); + } + else + { + Event EventRegistration = await EventRegistrationService.GetEventRegistrationAsync(_id, ModuleState.ModuleId); + EventRegistration.Name = _name; + await EventRegistrationService.UpdateEventRegistrationAsync(EventRegistration); + await logger.LogInformation("EventRegistration Updated {EventRegistration}", EventRegistration); + } + NavigationManager.NavigateTo(NavigateUrl()); + } + else + { + AddModuleMessage(Localizer["Message.SaveValidation"], MessageType.Warning); + } + } + catch (Exception ex) + { + await logger.LogError(ex, "Error Saving EventRegistration {Error}", ex.Message); + AddModuleMessage(Localizer["Message.SaveError"], MessageType.Error); + } + } +} diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Index.razor b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Index.razor new file mode 100644 index 0000000..7fc0df4 --- /dev/null +++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Index.razor @@ -0,0 +1,96 @@ +@using SZUAbsolventenverein.Module.EventRegistration.Services +@using SZUAbsolventenverein.Module.EventRegistration.Models + +@namespace SZUAbsolventenverein.Module.EventRegistration +@inherits ModuleBase +@inject IEventRegistrationService EventRegistrationService +@inject NavigationManager NavigationManager +@inject IStringLocalizer Localizer + +@if (_EventRegistrations == null) +{ +

Loading...

+} +else +{ + +
+
+

@Status

+ @if (@_EventRegistrations.Count != 0) + { + +
+   +   + @Localizer["Name"] +   +
+ + + + @context.Name + + @* @if(UserSecurity.IsAuthorized(PageState.User, PermissionNames.Utilize)) { *@ + + @* } *@ + +
+ } + else + { +

@Localizer["Message.DisplayNone"]

+ } +} + +@code { + private string Status; + + public override List Resources => new List() + { + new Resource { ResourceType = ResourceType.Stylesheet, Url = ModulePath() + "Module.css" }, + new Resource { ResourceType = ResourceType.Script, Url = ModulePath() + "Module.js" } + }; + + List _EventRegistrations; + + protected override async Task OnInitializedAsync() + { + try + { + _EventRegistrations = await EventRegistrationService.GetEventRegistrationsAsync(ModuleState.ModuleId); + } + catch (Exception ex) + { + await logger.LogError(ex, "Error Loading EventRegistration {Error}", ex.Message); + AddModuleMessage(Localizer["Message.LoadError"], MessageType.Error); + } + } + + private async Task Delete(Event EventRegistration) + { + try + { + await EventRegistrationService.DeleteEventRegistrationAsync(EventRegistration.EventRegistrationId, ModuleState.ModuleId); + await logger.LogInformation("EventRegistration Deleted {EventRegistration}", EventRegistration); + _EventRegistrations = await EventRegistrationService.GetEventRegistrationsAsync(ModuleState.ModuleId); + StateHasChanged(); + } + catch (Exception ex) + { + await logger.LogError(ex, "Error Deleting EventRegistration {EventRegistration} {Error}", EventRegistration, ex.Message); + AddModuleMessage(Localizer["Message.DeleteError"], MessageType.Error); + } + } + + private async Task Accept(Event eventRegistration) + { + Status = ("EventRegistration Accepted " + eventRegistration.Name); + await logger.LogInformation("EventRegistration Accepted {EventRegistration}", eventRegistration); + } + + private void Reject() + { + Status = "EventRegistration Rejected 1"; + } +} \ No newline at end of file diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs new file mode 100644 index 0000000..775c53e --- /dev/null +++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/ModuleInfo.cs @@ -0,0 +1,19 @@ +using Oqtane.Models; +using Oqtane.Modules; + +namespace SZUAbsolventenverein.Module.EventRegistration +{ + public class ModuleInfo : IModule + { + public ModuleDefinition ModuleDefinition => new ModuleDefinition + { + Name = "EventRegistration", + Description = "A module to manage registration for events", + Version = "1.0.0", + ServerManagerType = "SZUAbsolventenverein.Module.EventRegistration.Manager.EventRegistrationManager, SZUAbsolventenverein.Module.EventRegistration.Server.Oqtane", + ReleaseVersions = "1.0.0", + Dependencies = "SZUAbsolventenverein.Module.EventRegistration.Shared.Oqtane", + PackageName = "SZUAbsolventenverein.Module.EventRegistration" + }; + } +} diff --git a/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Settings.razor b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Settings.razor new file mode 100644 index 0000000..7043b86 --- /dev/null +++ b/Client/Modules/SZUAbsolventenverein.Module.EventRegistration/Settings.razor @@ -0,0 +1,47 @@ +@namespace SZUAbsolventenverein.Module.EventRegistration +@inherits ModuleBase +@inject ISettingService SettingService +@inject IStringLocalizer Localizer + +
+
+ +
+ +
+
+
+ +@code { + private string resourceType = "SZUAbsolventenverein.Module.EventRegistration.Settings, SZUAbsolventenverein.Module.EventRegistration.Client.Oqtane"; // for localization + public override string Title => "EventRegistration Settings"; + + string _value; + + protected override async Task OnInitializedAsync() + { + try + { + Dictionary settings = await SettingService.GetModuleSettingsAsync(ModuleState.ModuleId); + _value = SettingService.GetSetting(settings, "SettingName", ""); + } + catch (Exception ex) + { + AddModuleMessage(ex.Message, MessageType.Error); + } + } + + public async Task UpdateSettings() + { + try + { + Dictionary settings = await SettingService.GetModuleSettingsAsync(ModuleState.ModuleId); + SettingService.SetSetting(settings, "SettingName", _value); + await SettingService.UpdateModuleSettingsAsync(settings, ModuleState.ModuleId); + } + catch (Exception ex) + { + AddModuleMessage(ex.Message, MessageType.Error); + } + } +} diff --git a/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Edit.resx b/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Edit.resx new file mode 100644 index 0000000..f767af3 --- /dev/null +++ b/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Edit.resx @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Name: + + + Enter the name + + + Save + + + Cancel + + + Error Loading Event + + + Please Provide All Required Information + + + Error Saving Event + + \ No newline at end of file diff --git a/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Index.resx b/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Index.resx new file mode 100644 index 0000000..efb43f4 --- /dev/null +++ b/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Index.resx @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Add Event + + + Edit + + + Delete + + + Delete Event + + + Are You Sure You Wish To Delete This Event? + + + No Events To Display + + + Error Loading Events + + + Error Deleting Event + + + Reject + + \ No newline at end of file diff --git a/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Settings.resx b/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Settings.resx new file mode 100644 index 0000000..83dc88f --- /dev/null +++ b/Client/Resources/SZUAbsolventenverein.Module.EventRegistration/Settings.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Name: + + + Enter a value + + \ No newline at end of file diff --git a/Client/SZUAbsolventenverein.Module.EventRegistration.Client.csproj b/Client/SZUAbsolventenverein.Module.EventRegistration.Client.csproj new file mode 100644 index 0000000..e9bcc47 --- /dev/null +++ b/Client/SZUAbsolventenverein.Module.EventRegistration.Client.csproj @@ -0,0 +1,38 @@ + + + + net9.0 + 1.0.0 + SZUAbsolventenverein + SZUAbsolventenverein + A module to manage registration for events + SZUAbsolventenverein.Module.EventRegistration + SZUAbsolventenverein + SZUAbsolventenverein.Module.EventRegistration.Client.Oqtane + true + + + + + + + + + + + + + + + + ..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Client.dll + ..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Shared.dll + + + + + false + false + + + diff --git a/Client/Services/EventRegistrationService.cs b/Client/Services/EventRegistrationService.cs new file mode 100644 index 0000000..899fd0d --- /dev/null +++ b/Client/Services/EventRegistrationService.cs @@ -0,0 +1,42 @@ +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Threading.Tasks; +using Oqtane.Services; +using Oqtane.Shared; + +namespace SZUAbsolventenverein.Module.EventRegistration.Services +{ + public class EventRegistrationService : ServiceBase, IEventRegistrationService + { + public EventRegistrationService(HttpClient http, SiteState siteState) : base(http, siteState) { } + + private string Apiurl => CreateApiUrl("EventRegistration"); + + public async Task> GetEventRegistrationsAsync(int ModuleId) + { + List EventRegistrations = await GetJsonAsync>(CreateAuthorizationPolicyUrl($"{Apiurl}?moduleid={ModuleId}", EntityNames.Module, ModuleId), Enumerable.Empty().ToList()); + return EventRegistrations.OrderBy(item => item.Name).ToList(); + } + + public async Task GetEventRegistrationAsync(int EventRegistrationId, int ModuleId) + { + return await GetJsonAsync(CreateAuthorizationPolicyUrl($"{Apiurl}/{EventRegistrationId}/{ModuleId}", EntityNames.Module, ModuleId)); + } + + public async Task AddEventRegistrationAsync(Models.Event EventRegistration) + { + return await PostJsonAsync(CreateAuthorizationPolicyUrl($"{Apiurl}", EntityNames.Module, EventRegistration.ModuleId), EventRegistration); + } + + public async Task UpdateEventRegistrationAsync(Models.Event EventRegistration) + { + return await PutJsonAsync(CreateAuthorizationPolicyUrl($"{Apiurl}/{EventRegistration.EventRegistrationId}", EntityNames.Module, EventRegistration.ModuleId), EventRegistration); + } + + public async Task DeleteEventRegistrationAsync(int EventRegistrationId, int ModuleId) + { + await DeleteAsync(CreateAuthorizationPolicyUrl($"{Apiurl}/{EventRegistrationId}/{ModuleId}", EntityNames.Module, ModuleId)); + } + } +} diff --git a/Client/Startup/ClientStartup.cs b/Client/Startup/ClientStartup.cs new file mode 100644 index 0000000..5fb721b --- /dev/null +++ b/Client/Startup/ClientStartup.cs @@ -0,0 +1,14 @@ +using Microsoft.Extensions.DependencyInjection; +using Oqtane.Services; +using SZUAbsolventenverein.Module.EventRegistration.Services; + +namespace SZUAbsolventenverein.Module.EventRegistration.Startup +{ + public class ClientStartup : IClientStartup + { + public void ConfigureServices(IServiceCollection services) + { + services.AddScoped(); + } + } +} diff --git a/Client/_Imports.razor b/Client/_Imports.razor new file mode 100644 index 0000000..2f6fb1b --- /dev/null +++ b/Client/_Imports.razor @@ -0,0 +1,24 @@ +@using System +@using System.Linq +@using System.Collections.Generic +@using System.Net.Http +@using System.Net.Http.Json + +@using Microsoft.AspNetCore.Components.Authorization +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using Microsoft.Extensions.Localization +@using Microsoft.JSInterop + +@using Oqtane.Models +@using Oqtane.Modules +@using Oqtane.Modules.Controls +@using Oqtane.Providers +@using Oqtane.Security +@using Oqtane.Services +@using Oqtane.Shared +@using Oqtane.Themes +@using Oqtane.Themes.Controls +@using Oqtane.UI +@using Oqtane.Enums +@using Oqtane.Interfaces \ No newline at end of file diff --git a/Package/SZUAbsolventenverein.Module.EventRegistration.Package.csproj b/Package/SZUAbsolventenverein.Module.EventRegistration.Package.csproj new file mode 100644 index 0000000..9262590 --- /dev/null +++ b/Package/SZUAbsolventenverein.Module.EventRegistration.Package.csproj @@ -0,0 +1,29 @@ + + + + net9.0 + false + false + + + + + True + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec b/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec new file mode 100644 index 0000000..03495c4 --- /dev/null +++ b/Package/SZUAbsolventenverein.Module.EventRegistration.nuspec @@ -0,0 +1,32 @@ + + + + $projectname$ + 1.0.0 + SZUAbsolventenverein + SZUAbsolventenverein + EventRegistration + A module to manage registration for events + SZUAbsolventenverein + false + MIT + https://github.com/oqtane/oqtane.framework + icon.png + oqtane module + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Package/debug.cmd b/Package/debug.cmd new file mode 100644 index 0000000..a4f6a9b --- /dev/null +++ b/Package/debug.cmd @@ -0,0 +1,11 @@ +@echo off +set TargetFramework=%1 +set ProjectName=%2 + +XCOPY "..\Client\bin\Debug\%TargetFramework%\%ProjectName%.Client.Oqtane.dll" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y +XCOPY "..\Client\bin\Debug\%TargetFramework%\%ProjectName%.Client.Oqtane.pdb" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y +XCOPY "..\Server\bin\Debug\%TargetFramework%\%ProjectName%.Server.Oqtane.dll" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y +XCOPY "..\Server\bin\Debug\%TargetFramework%\%ProjectName%.Server.Oqtane.pdb" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y +XCOPY "..\Shared\bin\Debug\%TargetFramework%\%ProjectName%.Shared.Oqtane.dll" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y +XCOPY "..\Shared\bin\Debug\%TargetFramework%\%ProjectName%.Shared.Oqtane.pdb" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y +XCOPY "..\Server\wwwroot\*" "..\..\oqtane.framework\Oqtane.Server\wwwroot\" /Y /S /I \ No newline at end of file diff --git a/Package/debug.sh b/Package/debug.sh new file mode 100644 index 0000000..c4d069f --- /dev/null +++ b/Package/debug.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +TargetFramework=$1 +ProjectName=$2 + +cp -f "../Client/bin/Debug/$TargetFramework/$ProjectName$.Client.Oqtane.dll" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/" +cp -f "../Client/bin/Debug/$TargetFramework/$ProjectName$.Client.Oqtane.pdb" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/" +cp -f "../Server/bin/Debug/$TargetFramework/$ProjectName$.Server.Oqtane.dll" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/" +cp -f "../Server/bin/Debug/$TargetFramework/$ProjectName$.Server.Oqtane.pdb" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/" +cp -f "../Shared/bin/Debug/$TargetFramework/$ProjectName$.Shared.Oqtane.dll" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/" +cp -f "../Shared/bin/Debug/$TargetFramework/$ProjectName$.Shared.Oqtane.pdb" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/" +cp -rf "../Server/wwwroot/"* "../../oqtane.framework/Oqtane.Server/wwwroot/" \ No newline at end of file diff --git a/Package/icon.png b/Package/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7422cf2f313e352d93b08d4e87fec74e52117713 GIT binary patch literal 7800 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 M>>IU0xA6S`1HzXf%>V!Z literal 0 HcmV?d00001 diff --git a/Package/release.cmd b/Package/release.cmd new file mode 100644 index 0000000..cdcad2e --- /dev/null +++ b/Package/release.cmd @@ -0,0 +1,7 @@ +@echo off +set TargetFramework=%1 +set ProjectName=%2 + +del "*.nupkg" +"..\..\oqtane.framework\oqtane.package\nuget.exe" pack %ProjectName%.nuspec -Properties targetframework=%TargetFramework%;projectname=%ProjectName% +XCOPY "*.nupkg" "..\..\oqtane.framework\Oqtane.Server\Packages\" /Y \ No newline at end of file diff --git a/Package/release.sh b/Package/release.sh new file mode 100644 index 0000000..0fd258f --- /dev/null +++ b/Package/release.sh @@ -0,0 +1,5 @@ +TargetFramework=$1 +ProjectName=$2 + +"..\..\oqtane.framework\oqtane.package\nuget.exe" pack %ProjectName%.nuspec -Properties targetframework=%TargetFramework%;projectname=%ProjectName% +cp -f "*.nupkg" "..\..\oqtane.framework\Oqtane.Server\Packages\" \ No newline at end of file diff --git a/SZUAbsolventenverein.Module.EventRegistration.sln b/SZUAbsolventenverein.Module.EventRegistration.sln new file mode 100644 index 0000000..052597f --- /dev/null +++ b/SZUAbsolventenverein.Module.EventRegistration.sln @@ -0,0 +1,46 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.13.35828.75 d17.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Oqtane.Server", "..\oqtane.framework\Oqtane.Server\Oqtane.Server.csproj", "{3AB6FCC9-EFEB-4C0E-A2CF-8103914C5196}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SZUAbsolventenverein.Module.EventRegistration.Client", "Client\SZUAbsolventenverein.Module.EventRegistration.Client.csproj", "{AA8E58A1-CD09-4208-BF66-A8BB341FD669}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SZUAbsolventenverein.Module.EventRegistration.Server", "Server\SZUAbsolventenverein.Module.EventRegistration.Server.csproj", "{04B05448-788F-433D-92C0-FED35122D45A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SZUAbsolventenverein.Module.EventRegistration.Shared", "Shared\SZUAbsolventenverein.Module.EventRegistration.Shared.csproj", "{18D73F73-D7BE-4388-85BA-FBD9AC96FCA2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SZUAbsolventenverein.Module.EventRegistration.Package", "Package\SZUAbsolventenverein.Module.EventRegistration.Package.csproj", "{C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3AB6FCC9-EFEB-4C0E-A2CF-8103914C5196}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3AB6FCC9-EFEB-4C0E-A2CF-8103914C5196}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Release|Any CPU.Build.0 = Release|Any CPU + {04B05448-788F-433D-92C0-FED35122D45A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04B05448-788F-433D-92C0-FED35122D45A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04B05448-788F-433D-92C0-FED35122D45A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04B05448-788F-433D-92C0-FED35122D45A}.Release|Any CPU.Build.0 = Release|Any CPU + {18D73F73-D7BE-4388-85BA-FBD9AC96FCA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {18D73F73-D7BE-4388-85BA-FBD9AC96FCA2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {18D73F73-D7BE-4388-85BA-FBD9AC96FCA2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {18D73F73-D7BE-4388-85BA-FBD9AC96FCA2}.Release|Any CPU.Build.0 = Release|Any CPU + {C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1D016F15-46FE-4726-8DFD-2E4FD4DC7668} + EndGlobalSection +EndGlobal diff --git a/Server/Controllers/EventRegistrationController.cs b/Server/Controllers/EventRegistrationController.cs new file mode 100644 index 0000000..7fe00e6 --- /dev/null +++ b/Server/Controllers/EventRegistrationController.cs @@ -0,0 +1,114 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using System.Collections.Generic; +using Microsoft.AspNetCore.Http; +using Oqtane.Shared; +using Oqtane.Enums; +using Oqtane.Infrastructure; +using SZUAbsolventenverein.Module.EventRegistration.Services; +using Oqtane.Controllers; +using System.Net; +using System.Threading.Tasks; + +namespace SZUAbsolventenverein.Module.EventRegistration.Controllers +{ + [Route(ControllerRoutes.ApiRoute)] + public class EventRegistrationController : ModuleControllerBase + { + private readonly IEventRegistrationService _EventRegistrationService; + + public EventRegistrationController(IEventRegistrationService EventRegistrationService, ILogManager logger, IHttpContextAccessor accessor) : base(logger, accessor) + { + _EventRegistrationService = EventRegistrationService; + } + + // GET: api/?moduleid=x + [HttpGet] + [Authorize(Policy = PolicyNames.ViewModule)] + public async Task> Get(string moduleid) + { + int ModuleId; + if (int.TryParse(moduleid, out ModuleId) && IsAuthorizedEntityId(EntityNames.Module, ModuleId)) + { + return await _EventRegistrationService.GetEventRegistrationsAsync(ModuleId); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Get Attempt {ModuleId}", moduleid); + HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + return null; + } + } + + // GET api//5 + [HttpGet("{id}/{moduleid}")] + [Authorize(Policy = PolicyNames.ViewModule)] + public async Task Get(int id, int moduleid) + { + Models.Event EventRegistration = await _EventRegistrationService.GetEventRegistrationAsync(id, moduleid); + if (EventRegistration != null && IsAuthorizedEntityId(EntityNames.Module, EventRegistration.ModuleId)) + { + return EventRegistration; + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Get Attempt {EventRegistrationId} {ModuleId}", id, moduleid); + HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + return null; + } + } + + // POST api/ + [HttpPost] + [Authorize(Policy = PolicyNames.EditModule)] + public async Task Post([FromBody] Models.Event EventRegistration) + { + if (ModelState.IsValid && IsAuthorizedEntityId(EntityNames.Module, EventRegistration.ModuleId)) + { + EventRegistration = await _EventRegistrationService.AddEventRegistrationAsync(EventRegistration); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Post Attempt {EventRegistration}", EventRegistration); + HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + EventRegistration = null; + } + return EventRegistration; + } + + // PUT api//5 + [HttpPut("{id}")] + [Authorize(Policy = PolicyNames.EditModule)] + public async Task Put(int id, [FromBody] Models.Event EventRegistration) + { + if (ModelState.IsValid && EventRegistration.EventRegistrationId == id && IsAuthorizedEntityId(EntityNames.Module, EventRegistration.ModuleId)) + { + EventRegistration = await _EventRegistrationService.UpdateEventRegistrationAsync(EventRegistration); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Put Attempt {EventRegistration}", EventRegistration); + HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + EventRegistration = null; + } + return EventRegistration; + } + + // DELETE api//5 + [HttpDelete("{id}/{moduleid}")] + [Authorize(Policy = PolicyNames.EditModule)] + public async Task Delete(int id, int moduleid) + { + Models.Event EventRegistration = await _EventRegistrationService.GetEventRegistrationAsync(id, moduleid); + if (EventRegistration != null && IsAuthorizedEntityId(EntityNames.Module, EventRegistration.ModuleId)) + { + await _EventRegistrationService.DeleteEventRegistrationAsync(id, EventRegistration.ModuleId); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Delete Attempt {EventRegistrationId} {ModuleId}", id, moduleid); + HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + } + } + } +} diff --git a/Server/Manager/EventRegistrationManager.cs b/Server/Manager/EventRegistrationManager.cs new file mode 100644 index 0000000..b23c74f --- /dev/null +++ b/Server/Manager/EventRegistrationManager.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json; +using Oqtane.Modules; +using Oqtane.Models; +using Oqtane.Infrastructure; +using Oqtane.Interfaces; +using Oqtane.Enums; +using Oqtane.Repository; +using SZUAbsolventenverein.Module.EventRegistration.Repository; +using System.Threading.Tasks; + +namespace SZUAbsolventenverein.Module.EventRegistration.Manager +{ + public class EventRegistrationManager : MigratableModuleBase, IInstallable, IPortable, ISearchable + { + private readonly IEventRegistrationRepository _EventRegistrationRepository; + private readonly IDBContextDependencies _DBContextDependencies; + + public EventRegistrationManager(IEventRegistrationRepository EventRegistrationRepository, IDBContextDependencies DBContextDependencies) + { + _EventRegistrationRepository = EventRegistrationRepository; + _DBContextDependencies = DBContextDependencies; + } + + public bool Install(Tenant tenant, string version) + { + return Migrate(new EventRegistrationContext(_DBContextDependencies), tenant, MigrationType.Up); + } + + public bool Uninstall(Tenant tenant) + { + return Migrate(new EventRegistrationContext(_DBContextDependencies), tenant, MigrationType.Down); + } + + public string ExportModule(Oqtane.Models.Module module) + { + string content = ""; + List EventRegistrations = _EventRegistrationRepository.GetEventRegistrations(module.ModuleId).ToList(); + if (EventRegistrations != null) + { + content = JsonSerializer.Serialize(EventRegistrations); + } + return content; + } + + public void ImportModule(Oqtane.Models.Module module, string content, string version) + { + List EventRegistrations = null; + if (!string.IsNullOrEmpty(content)) + { + EventRegistrations = JsonSerializer.Deserialize>(content); + } + if (EventRegistrations != null) + { + foreach(var EventRegistration in EventRegistrations) + { + _EventRegistrationRepository.AddEventRegistration(new Models.Event { ModuleId = module.ModuleId, Name = EventRegistration.Name }); + } + } + } + + public Task> GetSearchContentsAsync(PageModule pageModule, DateTime lastIndexedOn) + { + var searchContentList = new List(); + + foreach (var EventRegistration in _EventRegistrationRepository.GetEventRegistrations(pageModule.ModuleId)) + { + if (EventRegistration.ModifiedOn >= lastIndexedOn) + { + searchContentList.Add(new SearchContent + { + EntityName = "SZUAbsolventenvereinEventRegistration", + EntityId = EventRegistration.EventRegistrationId.ToString(), + Title = EventRegistration.Name, + Body = EventRegistration.Name, + ContentModifiedBy = EventRegistration.ModifiedBy, + ContentModifiedOn = EventRegistration.ModifiedOn + }); + } + } + + return Task.FromResult(searchContentList); + } + } +} diff --git a/Server/Migrations/01000000_InitializeModule.cs b/Server/Migrations/01000000_InitializeModule.cs new file mode 100644 index 0000000..83ff7b7 --- /dev/null +++ b/Server/Migrations/01000000_InitializeModule.cs @@ -0,0 +1,35 @@ +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Oqtane.Databases.Interfaces; +using Oqtane.Migrations; +using SZUAbsolventenverein.Module.EventRegistration.Migrations.EntityBuilders; +using SZUAbsolventenverein.Module.EventRegistration.Repository; + +namespace SZUAbsolventenverein.Module.EventRegistration.Migrations +{ + [DbContext(typeof(EventRegistrationContext))] + [Migration("SZUAbsolventenverein.Module.EventRegistration.01.00.00.00")] + public class InitializeModule : MultiDatabaseMigration + { + public InitializeModule(IDatabase database) : base(database) + { + } + + protected override void Up(MigrationBuilder migrationBuilder) + { + var entityBuilder = new EventRegistrationEntityBuilder(migrationBuilder, ActiveDatabase); + entityBuilder.Create(); + + var entityBuilder2 = new EventResponseEntityBuilder(migrationBuilder, ActiveDatabase); + entityBuilder2.Create(); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + var entityBuilder = new EventRegistrationEntityBuilder(migrationBuilder, ActiveDatabase); + entityBuilder.Drop(); + var entityBuilder2 = new EventResponseEntityBuilder(migrationBuilder, ActiveDatabase); + entityBuilder2.Drop(); + } + } +} diff --git a/Server/Migrations/EntityBuilders/EventRegistrationEntityBuilder.cs b/Server/Migrations/EntityBuilders/EventRegistrationEntityBuilder.cs new file mode 100644 index 0000000..c6f4f2f --- /dev/null +++ b/Server/Migrations/EntityBuilders/EventRegistrationEntityBuilder.cs @@ -0,0 +1,36 @@ +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations.Operations; +using Microsoft.EntityFrameworkCore.Migrations.Operations.Builders; +using Oqtane.Databases.Interfaces; +using Oqtane.Migrations; +using Oqtane.Migrations.EntityBuilders; + +namespace SZUAbsolventenverein.Module.EventRegistration.Migrations.EntityBuilders +{ + public class EventRegistrationEntityBuilder : AuditableBaseEntityBuilder + { + private const string _entityTableName = "SZUAbsolventenvereinEvent"; + private readonly PrimaryKey _primaryKey = new("PK_SZUAbsolventenvereinEvent", x => x.EventRegistrationId); + private readonly ForeignKey _moduleForeignKey = new("FK_SZUAbsolventenvereinEvent_Module", x => x.ModuleId, "Module", "ModuleId", ReferentialAction.Cascade); + + public EventRegistrationEntityBuilder(MigrationBuilder migrationBuilder, IDatabase database) : base(migrationBuilder, database) + { + EntityTableName = _entityTableName; + PrimaryKey = _primaryKey; + ForeignKeys.Add(_moduleForeignKey); + } + + protected override EventRegistrationEntityBuilder BuildTable(ColumnsBuilder table) + { + EventRegistrationId = AddAutoIncrementColumn(table,"EventRegistrationId"); + ModuleId = AddIntegerColumn(table,"ModuleId"); + Name = AddMaxStringColumn(table,"Name"); + AddAuditableColumns(table); + return this; + } + + public OperationBuilder EventRegistrationId { get; set; } + public OperationBuilder ModuleId { get; set; } + public OperationBuilder Name { get; set; } + } +} diff --git a/Server/Migrations/EntityBuilders/EventResponseEntityBuilder.cs b/Server/Migrations/EntityBuilders/EventResponseEntityBuilder.cs new file mode 100644 index 0000000..9d26e53 --- /dev/null +++ b/Server/Migrations/EntityBuilders/EventResponseEntityBuilder.cs @@ -0,0 +1,45 @@ +using Microsoft.AspNetCore.Identity; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations.Operations; +using Microsoft.EntityFrameworkCore.Migrations.Operations.Builders; +using Oqtane.Databases.Interfaces; +using Oqtane.Migrations; +using Oqtane.Migrations.EntityBuilders; + +namespace SZUAbsolventenverein.Module.EventRegistration.Migrations.EntityBuilders +{ + public class EventResponseEntityBuilder : AuditableBaseEntityBuilder + { + private const string _entityTableName = "SZUAbsolventenvereinEventResponse"; + private readonly PrimaryKey _primaryKey = new("PK_SZUAbsolventenvereinEventResponse", x => x.EventResponseId); + private readonly ForeignKey _moduleForeignKey = new("FK_SZUAbsolventenvereinEventResponse_Module", x => x.ModuleId, "Module", "ModuleId", ReferentialAction.Cascade); + private readonly ForeignKey _eventForeignKey = new("FK_SZUAbsolventenvereinEventResponse_Event", x => x.EventRegistrationId, "SZUAbsolventenvereinEvent", "EventRegistrationId", ReferentialAction.Cascade); + private readonly ForeignKey _ownerForeignKey = new("FK_SZUAbsolventenvereinEventResponse_User_Owner", x => x.OwnerId, "User", "UserId", ReferentialAction.Cascade); + + public EventResponseEntityBuilder(MigrationBuilder migrationBuilder, IDatabase database) : base(migrationBuilder, database) + { + EntityTableName = _entityTableName; + PrimaryKey = _primaryKey; + ForeignKeys.Add(_moduleForeignKey); + ForeignKeys.Add(_eventForeignKey); + ForeignKeys.Add(_ownerForeignKey); + } + + protected override EventResponseEntityBuilder BuildTable(ColumnsBuilder table) + { + EventResponseId = AddAutoIncrementColumn(table, "EventResponseId"); + ResponseType = AddBooleanColumn(table, "ResponseType"); + OwnerId = AddIntegerColumn(table, "OwnerId"); + EventRegistrationId = AddIntegerColumn(table,"EventRegistrationId"); + ModuleId = AddIntegerColumn(table,"ModuleId"); + AddAuditableColumns(table); + return this; + } + + public OperationBuilder EventResponseId { get; set; } + public OperationBuilder ResponseType { get; set; } + public OperationBuilder OwnerId { get; set; } + public OperationBuilder EventRegistrationId { get; set; } + public OperationBuilder ModuleId { get; set; } + } +} diff --git a/Server/Repository/EventRegistrationContext.cs b/Server/Repository/EventRegistrationContext.cs new file mode 100644 index 0000000..83d380b --- /dev/null +++ b/Server/Repository/EventRegistrationContext.cs @@ -0,0 +1,28 @@ +using Microsoft.EntityFrameworkCore; +using Microsoft.AspNetCore.Http; +using Oqtane.Modules; +using Oqtane.Repository; +using Oqtane.Infrastructure; +using Oqtane.Repository.Databases.Interfaces; + +namespace SZUAbsolventenverein.Module.EventRegistration.Repository +{ + public class EventRegistrationContext : DBContextBase, ITransientService, IMultiDatabase + { + public virtual DbSet Event { get; set; } + public virtual DbSet Response { get; set; } + + public EventRegistrationContext(IDBContextDependencies DBContextDependencies) : base(DBContextDependencies) + { + // ContextBase handles multi-tenant database connections + } + + protected override void OnModelCreating(ModelBuilder builder) + { + base.OnModelCreating(builder); + + builder.Entity().ToTable(ActiveDatabase.RewriteName("SZUAbsolventenvereinEvent")); + builder.Entity().ToTable(ActiveDatabase.RewriteName("SZUAbsolventenvereinEventResponse")); + } + } +} diff --git a/Server/Repository/EventRegistrationRepository.cs b/Server/Repository/EventRegistrationRepository.cs new file mode 100644 index 0000000..ac23c55 --- /dev/null +++ b/Server/Repository/EventRegistrationRepository.cs @@ -0,0 +1,65 @@ +using Microsoft.EntityFrameworkCore; +using System.Linq; +using System.Collections.Generic; +using Oqtane.Modules; + +namespace SZUAbsolventenverein.Module.EventRegistration.Repository +{ + public class EventRegistrationRepository : IEventRegistrationRepository, ITransientService + { + private readonly IDbContextFactory _factory; + + public EventRegistrationRepository(IDbContextFactory factory) + { + _factory = factory; + } + + public IEnumerable GetEventRegistrations(int ModuleId) + { + using var db = _factory.CreateDbContext(); + return db.Event.Where(item => item.ModuleId == ModuleId).ToList(); + } + + public Models.Event GetEventRegistration(int EventRegistrationId) + { + return GetEventRegistration(EventRegistrationId, true); + } + + public Models.Event GetEventRegistration(int EventRegistrationId, bool tracking) + { + using var db = _factory.CreateDbContext(); + if (tracking) + { + return db.Event.Find(EventRegistrationId); + } + else + { + return db.Event.AsNoTracking().FirstOrDefault(item => item.EventRegistrationId == EventRegistrationId); + } + } + + public Models.Event AddEventRegistration(Models.Event EventRegistration) + { + using var db = _factory.CreateDbContext(); + db.Event.Add(EventRegistration); + db.SaveChanges(); + return EventRegistration; + } + + public Models.Event UpdateEventRegistration(Models.Event EventRegistration) + { + using var db = _factory.CreateDbContext(); + db.Entry(EventRegistration).State = EntityState.Modified; + db.SaveChanges(); + return EventRegistration; + } + + public void DeleteEventRegistration(int EventRegistrationId) + { + using var db = _factory.CreateDbContext(); + Models.Event EventRegistration = db.Event.Find(EventRegistrationId); + db.Event.Remove(EventRegistration); + db.SaveChanges(); + } + } +} diff --git a/Server/Repository/IEventRegistrationRepository.cs b/Server/Repository/IEventRegistrationRepository.cs new file mode 100644 index 0000000..c674d93 --- /dev/null +++ b/Server/Repository/IEventRegistrationRepository.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace SZUAbsolventenverein.Module.EventRegistration.Repository +{ + public interface IEventRegistrationRepository + { + IEnumerable GetEventRegistrations(int ModuleId); + Models.Event GetEventRegistration(int EventRegistrationId); + Models.Event GetEventRegistration(int EventRegistrationId, bool tracking); + Models.Event AddEventRegistration(Models.Event EventRegistration); + Models.Event UpdateEventRegistration(Models.Event EventRegistration); + void DeleteEventRegistration(int EventRegistrationId); + } +} diff --git a/Server/SZUAbsolventenverein.Module.EventRegistration.Server.csproj b/Server/SZUAbsolventenverein.Module.EventRegistration.Server.csproj new file mode 100644 index 0000000..7813ab4 --- /dev/null +++ b/Server/SZUAbsolventenverein.Module.EventRegistration.Server.csproj @@ -0,0 +1,36 @@ + + + + net9.0 + true + 1.0.0 + SZUAbsolventenverein.Module.EventRegistration + SZUAbsolventenverein + SZUAbsolventenverein + A module to manage registration for events + SZUAbsolventenverein + SZUAbsolventenverein.Module.EventRegistration.Server.Oqtane + true + + + + + + + + + + + + + + + + + + + + ..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Server.dll + ..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Shared.dll + + diff --git a/Server/Services/EventRegistrationService.cs b/Server/Services/EventRegistrationService.cs new file mode 100644 index 0000000..3d2f62a --- /dev/null +++ b/Server/Services/EventRegistrationService.cs @@ -0,0 +1,101 @@ +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Oqtane.Enums; +using Oqtane.Infrastructure; +using Oqtane.Models; +using Oqtane.Security; +using Oqtane.Shared; +using SZUAbsolventenverein.Module.EventRegistration.Repository; + +namespace SZUAbsolventenverein.Module.EventRegistration.Services +{ + public class ServerEventRegistrationService : IEventRegistrationService + { + private readonly IEventRegistrationRepository _EventRegistrationRepository; + private readonly IUserPermissions _userPermissions; + private readonly ILogManager _logger; + private readonly IHttpContextAccessor _accessor; + private readonly Alias _alias; + + public ServerEventRegistrationService(IEventRegistrationRepository EventRegistrationRepository, IUserPermissions userPermissions, ITenantManager tenantManager, ILogManager logger, IHttpContextAccessor accessor) + { + _EventRegistrationRepository = EventRegistrationRepository; + _userPermissions = userPermissions; + _logger = logger; + _accessor = accessor; + _alias = tenantManager.GetAlias(); + } + + public Task> GetEventRegistrationsAsync(int ModuleId) + { + if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, ModuleId, PermissionNames.View)) + { + return Task.FromResult(_EventRegistrationRepository.GetEventRegistrations(ModuleId).ToList()); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Get Attempt {ModuleId}", ModuleId); + return null; + } + } + + public Task GetEventRegistrationAsync(int EventRegistrationId, int ModuleId) + { + if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, ModuleId, PermissionNames.View)) + { + return Task.FromResult(_EventRegistrationRepository.GetEventRegistration(EventRegistrationId)); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Get Attempt {EventRegistrationId} {ModuleId}", EventRegistrationId, ModuleId); + return null; + } + } + + public Task AddEventRegistrationAsync(Models.Event EventRegistration) + { + if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, EventRegistration.ModuleId, PermissionNames.Edit)) + { + EventRegistration = _EventRegistrationRepository.AddEventRegistration(EventRegistration); + _logger.Log(LogLevel.Information, this, LogFunction.Create, "EventRegistration Added {EventRegistration}", EventRegistration); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Add Attempt {EventRegistration}", EventRegistration); + EventRegistration = null; + } + return Task.FromResult(EventRegistration); + } + + public Task UpdateEventRegistrationAsync(Models.Event EventRegistration) + { + if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, EventRegistration.ModuleId, PermissionNames.Edit)) + { + EventRegistration = _EventRegistrationRepository.UpdateEventRegistration(EventRegistration); + _logger.Log(LogLevel.Information, this, LogFunction.Update, "EventRegistration Updated {EventRegistration}", EventRegistration); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Update Attempt {EventRegistration}", EventRegistration); + EventRegistration = null; + } + return Task.FromResult(EventRegistration); + } + + public Task DeleteEventRegistrationAsync(int EventRegistrationId, int ModuleId) + { + if (_userPermissions.IsAuthorized(_accessor.HttpContext.User, _alias.SiteId, EntityNames.Module, ModuleId, PermissionNames.Edit)) + { + _EventRegistrationRepository.DeleteEventRegistration(EventRegistrationId); + _logger.Log(LogLevel.Information, this, LogFunction.Delete, "EventRegistration Deleted {EventRegistrationId}", EventRegistrationId); + } + else + { + _logger.Log(LogLevel.Error, this, LogFunction.Security, "Unauthorized EventRegistration Delete Attempt {EventRegistrationId} {ModuleId}", EventRegistrationId, ModuleId); + } + return Task.CompletedTask; + } + } +} diff --git a/Server/Startup/ServerStartup.cs b/Server/Startup/ServerStartup.cs new file mode 100644 index 0000000..e613bc1 --- /dev/null +++ b/Server/Startup/ServerStartup.cs @@ -0,0 +1,28 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.DependencyInjection; +using Oqtane.Infrastructure; +using SZUAbsolventenverein.Module.EventRegistration.Repository; +using SZUAbsolventenverein.Module.EventRegistration.Services; + +namespace SZUAbsolventenverein.Module.EventRegistration.Startup +{ + public class ServerStartup : IServerStartup + { + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + // not implemented + } + + public void ConfigureMvc(IMvcBuilder mvcBuilder) + { + // not implemented + } + + public void ConfigureServices(IServiceCollection services) + { + services.AddTransient(); + services.AddDbContextFactory(opt => { }, ServiceLifetime.Transient); + } + } +} diff --git a/Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.css b/Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.css new file mode 100644 index 0000000..0856a26 --- /dev/null +++ b/Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.css @@ -0,0 +1 @@ +/* Module Custom Styles */ \ No newline at end of file diff --git a/Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.js b/Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.js new file mode 100644 index 0000000..7e346b4 --- /dev/null +++ b/Server/wwwroot/Modules/SZUAbsolventenverein.Module.EventRegistration/Module.js @@ -0,0 +1,5 @@ +/* Module Script */ +var SZUAbsolventenverein = SZUAbsolventenverein || {}; + +SZUAbsolventenverein.EventRegistration = { +}; \ No newline at end of file diff --git a/Server/wwwroot/_content/Placeholder.txt b/Server/wwwroot/_content/Placeholder.txt new file mode 100644 index 0000000..5a324d7 --- /dev/null +++ b/Server/wwwroot/_content/Placeholder.txt @@ -0,0 +1,11 @@ +The _content folder should only contain static resources from shared razor component libraries (RCLs). Static resources can be extracted from shared RCL Nuget packages by executing a Publish task on the module's Server project to a local folder and copying the files from the _content folder which is created. Each shared RCL would have its own appropriately named subfolder within the module's _content folder. + +ie. + +/_content + /Radzen.Blazor + /css + /fonts + /syncfusion.blazor + /scripts + /styles diff --git a/Shared/Interfaces/IEventRegistrationService.cs b/Shared/Interfaces/IEventRegistrationService.cs new file mode 100644 index 0000000..28fa34e --- /dev/null +++ b/Shared/Interfaces/IEventRegistrationService.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace SZUAbsolventenverein.Module.EventRegistration.Services +{ + public interface IEventRegistrationService + { + Task> GetEventRegistrationsAsync(int ModuleId); + + Task GetEventRegistrationAsync(int EventRegistrationId, int ModuleId); + + Task AddEventRegistrationAsync(Models.Event EventRegistration); + + Task UpdateEventRegistrationAsync(Models.Event EventRegistration); + + Task DeleteEventRegistrationAsync(int EventRegistrationId, int ModuleId); + } +} diff --git a/Shared/Models/Event.cs b/Shared/Models/Event.cs new file mode 100644 index 0000000..200cf42 --- /dev/null +++ b/Shared/Models/Event.cs @@ -0,0 +1,21 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Oqtane.Models; + +namespace SZUAbsolventenverein.Module.EventRegistration.Models +{ + [Table("SZUAbsolventenvereinEvent")] + public class Event : IAuditable + { + [Key] + public int EventRegistrationId { get; set; } + public int ModuleId { get; set; } + public string Name { get; set; } + + public string CreatedBy { get; set; } + public DateTime CreatedOn { get; set; } + public string ModifiedBy { get; set; } + public DateTime ModifiedOn { get; set; } + } +} diff --git a/Shared/Models/Response.cs b/Shared/Models/Response.cs new file mode 100644 index 0000000..d75814f --- /dev/null +++ b/Shared/Models/Response.cs @@ -0,0 +1,24 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Oqtane.Models; + +namespace SZUAbsolventenverein.Module.EventRegistration.Models +{ + [Table("SZUAbsolventenvereinEventResponse")] + public class Response : IAuditable + { + [Key] + public int EventResponseId { get; set; } + public bool ResponseType { get; set; } + public int OwnerId { get; set; } + public int EventRegistrationId { get; set; } + public int ModuleId { get; set; } + public string Name { get; set; } + + public string CreatedBy { get; set; } + public DateTime CreatedOn { get; set; } + public string ModifiedBy { get; set; } + public DateTime ModifiedOn { get; set; } + } +} diff --git a/Shared/SZUAbsolventenverein.Module.EventRegistration.Shared.csproj b/Shared/SZUAbsolventenverein.Module.EventRegistration.Shared.csproj new file mode 100644 index 0000000..4f059c6 --- /dev/null +++ b/Shared/SZUAbsolventenverein.Module.EventRegistration.Shared.csproj @@ -0,0 +1,22 @@ + + + + net9.0 + 1.0.0 + SZUAbsolventenverein.Module.EventRegistration + SZUAbsolventenverein + SZUAbsolventenverein + A module to manage registration for events + SZUAbsolventenverein + SZUAbsolventenverein.Module.EventRegistration.Shared.Oqtane + + + + + + + + ..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Shared.dll + + + diff --git a/template.json b/template.json new file mode 100644 index 0000000..6147304 --- /dev/null +++ b/template.json @@ -0,0 +1,6 @@ +{ + "Title": "Default Module Template", + "Type": "External", + "Version": "5.2.0", + "Namespace": "SZUAbsolventenverein.Module.EventRegistration" +}