Skip to content

Commit d627aed

Browse files
committed
Remove useless NadFromElement and add attributes to NetworkAreaDiagram
Signed-off-by: Ayoub LABIDI <[email protected]>
1 parent 65442fe commit d627aed

22 files changed

+186
-103
lines changed

src/main/java/org/gridsuite/studyconfig/server/configuration/DiagramLayoutJacksonConfiguration.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
/*
2-
Copyright (c) 2024, RTE (http://www.rte-france.com)
3-
This Source Code Form is subject to the terms of the Mozilla Public
4-
License, v. 2.0. If a copy of the MPL was not distributed with this
5-
file, You can obtain one at http://mozilla.org/MPL/2.0/.
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77
package org.gridsuite.studyconfig.server.configuration;
88

99
import com.fasterxml.jackson.databind.Module;
1010
import com.fasterxml.jackson.databind.jsontype.NamedType;
1111
import com.fasterxml.jackson.databind.module.SimpleModule;
12-
import org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout.NadFromElementDiagramLayout;
1312
import org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout.NetworkAreaDiagramLayout;
1413
import org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout.SubstationDiagramLayout;
1514
import org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout.VoltageLevelDiagramLayout;
@@ -33,8 +32,7 @@ public Module diagramLayoutTypeModule() {
3332
module.registerSubtypes(
3433
new NamedType(SubstationDiagramLayout.class, "substation"),
3534
new NamedType(VoltageLevelDiagramLayout.class, "voltage-level"),
36-
new NamedType(NetworkAreaDiagramLayout.class, "network-area-diagram"),
37-
new NamedType(NadFromElementDiagramLayout.class, "nad-from-element")
35+
new NamedType(NetworkAreaDiagramLayout.class, "network-area-diagram")
3836
);
3937

4038
return module;

src/main/java/org/gridsuite/studyconfig/server/controller/StudyLayoutController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.controller;
28

39
import io.swagger.v3.oas.annotations.Operation;

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/StudyLayout.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.dto.studylayout;
28

39
import lombok.*;

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/diagramlayout/AbstractDiagramLayout.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout;
28

39
import com.fasterxml.jackson.annotation.JsonTypeInfo;

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/diagramlayout/DiagramGridLayout.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout;
28

39
import lombok.AllArgsConstructor;

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/diagramlayout/NadFromElementDiagramLayout.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/diagramlayout/NetworkAreaDiagramLayout.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout;
28

39
import lombok.AllArgsConstructor;
@@ -7,13 +13,18 @@
713
import lombok.experimental.SuperBuilder;
814

915
import java.util.List;
16+
import java.util.UUID;
1017

1118
@SuperBuilder
1219
@AllArgsConstructor
1320
@NoArgsConstructor
1421
@Setter
1522
@Getter
1623
public class NetworkAreaDiagramLayout extends AbstractDiagramLayout {
24+
UUID filterUuid;
25+
UUID nadConfigUuid;
1726
List<String> voltageLevelIds;
27+
List<String> voltageLevelToExpandIds;
28+
List<String> voltageLevelToOmitIds;
1829
Integer depth;
1930
}

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/diagramlayout/SubstationDiagramLayout.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout;
28

39
import lombok.AllArgsConstructor;

src/main/java/org/gridsuite/studyconfig/server/dto/studylayout/diagramlayout/VoltageLevelDiagramLayout.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.dto.studylayout.diagramlayout;
28

39
import lombok.AllArgsConstructor;

src/main/java/org/gridsuite/studyconfig/server/entities/studylayout/AbstractDiagramLayoutEntity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
17
package org.gridsuite.studyconfig.server.entities.studylayout;
28

39
import jakarta.persistence.*;

0 commit comments

Comments
 (0)