-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mbes/497-Add_grid_area_to_org_role
# Conflicts: # source/Energinet.DataHub.MarketParticipant.ApplyDBMigrationsApp/Energinet.DataHub.MarketParticipant.ApplyDBMigrationsApp.csproj # source/Energinet.DataHub.MarketParticipant.Domain/Model/IOrganizationRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/BalancePowerSupplierRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/BalanceResponsiblePartyRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/DanishEnergyAgencyRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/GridAccessProviderRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/ImbalanceSettlementResponsibleRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/MeteredDataAggregatorRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/MeteredDataResponsibleRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/MeteringPointAdministratorRole.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/OrganizationRoleBase.cs # source/Energinet.DataHub.MarketParticipant.Domain/Model/Roles/SystemOperatorRole.cs # source/Energinet.DataHub.MarketParticipant.Infrastructure/Persistence/EntityConfiguration/OrganizationRoleEntityConfiguration.cs # source/Energinet.DataHub.MarketParticipant.Infrastructure/Persistence/Mappers/OrganizationMapper.cs # source/Energinet.DataHub.MarketParticipant.Infrastructure/Persistence/Model/OrganizationRoleEntity.cs # source/Energinet.DataHub.MarketParticipant.IntegrationTests/Repositories/OrganizationRepositoryTests.cs # source/Energinet.DataHub.MarketParticipant.Tests/Model/OrganizationRoleBaseTests.cs
- Loading branch information
Showing
46 changed files
with
636 additions
and
87 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
source/Energinet.DataHub.MarketParticipant.Application/Commands/MarketRoleDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2020 Energinet DataHub A/S | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License2"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace Energinet.DataHub.MarketParticipant.Application.Commands | ||
{ | ||
public sealed record MarketRoleDto(string Function); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...Participant.ApplyDBMigrationsApp/Scripts/LocalDB/202202240930 Create MarketRole Table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE [dbo].[MarketRole] | ||
( | ||
[Id] [uniqueidentifier] NOT NULL, | ||
[OrganizationRoleId] [uniqueidentifier] NOT NULL, | ||
[Function] [int] NOT NULL, | ||
|
||
CONSTRAINT PK_MarketRole PRIMARY KEY ([Id]), | ||
CONSTRAINT FK_OrganizationRoleId_OrganizationRole FOREIGN KEY ([OrganizationRoleId]) REFERENCES [dbo].[OrganizationRole]([Id]) | ||
) | ||
GO |
10 changes: 10 additions & 0 deletions
10
...icipant.ApplyDBMigrationsApp/Scripts/U-001/Model/202202240930 Create MarketRole Table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE [dbo].[MarketRole] | ||
( | ||
[Id] [uniqueidentifier] NOT NULL, | ||
[OrganizationRoleId] [uniqueidentifier] NOT NULL, | ||
[Function] [int] NOT NULL, | ||
|
||
CONSTRAINT PK_MarketRole PRIMARY KEY ([Id]), | ||
CONSTRAINT FK_OrganizationRoleId_OrganizationRole FOREIGN KEY ([OrganizationRoleId]) REFERENCES [dbo].[OrganizationRole]([Id]) | ||
) | ||
GO |
67 changes: 67 additions & 0 deletions
67
source/Energinet.DataHub.MarketParticipant.Domain/Model/EicFunction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2020 Energinet DataHub A/S | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License2"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace Energinet.DataHub.MarketParticipant.Domain.Model | ||
{ | ||
public enum EicFunction | ||
{ | ||
BalanceResponsibleParty = 1, | ||
BalancingServiceProvider = 2, | ||
BillingAgent = 3, | ||
CapacityTrader = 4, | ||
Consumer = 5, | ||
ConsumptionResponsibleParty = 6, | ||
ConsentAdministrator = 7, | ||
CoordinatedCapacityCalculator = 8, | ||
CoordinationCentreOperator = 9, | ||
DataProvider = 10, | ||
EnergyServiceCompany = 11, | ||
EnergySupplier = 12, | ||
EnergyTrader = 13, | ||
GridAccessProvider = 14, | ||
ImbalanceSettlementResponsible = 15, | ||
InterconnectionTradeResponsible = 16, | ||
LfcOperator = 17, | ||
MarketInformationAggregator = 18, | ||
MarketOperator = 19, | ||
MeritOrderListResponsible = 20, | ||
MeterAdministrator = 21, | ||
MeterOperator = 22, | ||
MeteredDataAdministrator = 23, | ||
MeteredDataAggregator = 24, | ||
MeteredDataCollector = 25, | ||
MeteredDataResponsible = 26, | ||
MeteringPointAdministrator = 27, | ||
ModelMergingAgent = 28, | ||
ModellingAuthority = 29, | ||
NominatedElectricityMarketOperator = 30, | ||
NominationValidator = 31, | ||
PartyAdministrator = 32, | ||
PartyConnectedtotheGrid = 33, | ||
Producer = 34, | ||
ProductionResponsibleParty = 35, | ||
ReconciliationAccountable = 36, | ||
ReconciliationResponsible = 37, | ||
ReserveAllocator = 38, | ||
ResourceAggregator = 39, | ||
ResourceCapacityMechanismOperator = 40, | ||
ResourceProvider = 41, | ||
Scheduling = 42, | ||
Agent = 43, | ||
SchedulingAreaResponsible = 44, | ||
SystemOperator = 45, | ||
TradeResponsibleParty = 46, | ||
TransmissionCapacityAllocator = 47 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
source/Energinet.DataHub.MarketParticipant.Domain/Model/MarketRole.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2020 Energinet DataHub A/S | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License2"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using System; | ||
|
||
namespace Energinet.DataHub.MarketParticipant.Domain.Model | ||
{ | ||
/// <summary> | ||
/// Describes a marked role, defined by its function and permissions. | ||
/// </summary> | ||
public sealed class MarketRole | ||
{ | ||
public MarketRole(EicFunction function) | ||
{ | ||
Function = function; | ||
} | ||
|
||
/// <summary> | ||
/// Specifies the EIC function of the current role. | ||
/// </summary> | ||
public EicFunction Function { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ public enum RoleStatus | |
New = 1, | ||
Active = 2, | ||
Inactive = 3, | ||
Deleted = 4 | ||
Passive = 4, | ||
Deleted = 5 | ||
} | ||
} |
Oops, something went wrong.