-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Signalements] Rattachement des actions de contrôle au signalement (#916
) ## Related Pull Requests & Issues - Resolve #799
- Loading branch information
Showing
75 changed files
with
3,245 additions
and
1,638 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
.../src/main/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/ActionTargetTypeEnum.kt
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
...ain/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/EnvActionControlProperties.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...c/main/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/EnvActionNoteProperties.kt
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
...otlin/fr/gouv/cacem/monitorenv/domain/entities/mission/EnvActionSurveillanceProperties.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/FormalNoticeEnum.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...nd/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/InfractionTypeEnum.kt
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/MissionEntity.kt
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
8 changes: 0 additions & 8 deletions
8
backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/entities/mission/VesselTypeEnum.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...domain/entities/mission/ActionTypeEnum.kt → ...ities/mission/envAction/ActionTypeEnum.kt
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
5 changes: 3 additions & 2 deletions
5
...omain/entities/mission/EnvActionEntity.kt → ...ties/mission/envAction/EnvActionEntity.kt
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
26 changes: 26 additions & 0 deletions
26
...lin/fr/gouv/cacem/monitorenv/domain/entities/mission/envAction/EnvActionNoteProperties.kt
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,26 @@ | ||
package fr.gouv.cacem.monitorenv.domain.entities.mission.envAction | ||
|
||
import java.time.ZonedDateTime | ||
import java.util.* | ||
|
||
data class EnvActionNoteProperties( | ||
val observations: String? = null, | ||
) { | ||
fun toEnvActionNoteEntity( | ||
id: UUID, | ||
actionStartDateTimeUtc: ZonedDateTime?, | ||
actionEndDateTimeUtc: ZonedDateTime?, | ||
) = | ||
EnvActionNoteEntity( | ||
id = id, | ||
actionStartDateTimeUtc = actionStartDateTimeUtc, | ||
actionEndDateTimeUtc = actionEndDateTimeUtc, | ||
observations = observations, | ||
) | ||
companion object { | ||
fun fromEnvActionNoteEntity(envAction: EnvActionNoteEntity) = | ||
EnvActionNoteProperties( | ||
envAction.observations, | ||
) | ||
} | ||
} |
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
39 changes: 39 additions & 0 deletions
39
...ouv/cacem/monitorenv/domain/entities/mission/envAction/EnvActionSurveillanceProperties.kt
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,39 @@ | ||
package fr.gouv.cacem.monitorenv.domain.entities.mission.envAction | ||
|
||
import org.locationtech.jts.geom.Geometry | ||
import java.time.ZonedDateTime | ||
import java.util.* | ||
|
||
data class EnvActionSurveillanceProperties( | ||
val themes: List<ThemeEntity>? = listOf(), | ||
val observations: String? = null, | ||
val coverMissionZone: Boolean? = null, | ||
) { | ||
fun toEnvActionSurveillanceEntity( | ||
id: UUID, | ||
actionStartDateTimeUtc: ZonedDateTime?, | ||
actionEndDateTimeUtc: ZonedDateTime?, | ||
facade: String?, | ||
department: String?, | ||
geom: Geometry?, | ||
) = | ||
EnvActionSurveillanceEntity( | ||
id = id, | ||
actionStartDateTimeUtc = actionStartDateTimeUtc, | ||
actionEndDateTimeUtc = actionEndDateTimeUtc, | ||
facade = facade, | ||
department = department, | ||
geom = geom, | ||
themes = themes, | ||
observations = observations, | ||
coverMissionZone = coverMissionZone, | ||
) | ||
companion object { | ||
fun fromEnvActionSurveillanceEntity(envAction: EnvActionSurveillanceEntity) = | ||
EnvActionSurveillanceProperties( | ||
themes = envAction.themes, | ||
observations = envAction.observations, | ||
coverMissionZone = envAction.coverMissionZone, | ||
) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...nv/domain/entities/mission/ThemeEntity.kt → ...entities/mission/envAction/ThemeEntity.kt
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
7 changes: 7 additions & 0 deletions
7
...cem/monitorenv/domain/entities/mission/envAction/envActionControl/ActionTargetTypeEnum.kt
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,7 @@ | ||
package fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.envActionControl | ||
|
||
enum class ActionTargetTypeEnum { | ||
VEHICLE, | ||
COMPANY, | ||
INDIVIDUAL, | ||
} |
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
62 changes: 62 additions & 0 deletions
62
...nitorenv/domain/entities/mission/envAction/envActionControl/EnvActionControlProperties.kt
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,62 @@ | ||
package fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.envActionControl | ||
|
||
import fr.gouv.cacem.monitorenv.domain.entities.VehicleTypeEnum | ||
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.ThemeEntity | ||
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.envActionControl.infraction.InfractionEntity | ||
import org.locationtech.jts.geom.Geometry | ||
import java.time.ZonedDateTime | ||
import java.util.UUID | ||
|
||
data class EnvActionControlProperties( | ||
val themes: List<ThemeEntity>? = listOf(), | ||
val observations: String? = null, | ||
val actionNumberOfControls: Int? = null, | ||
val actionTargetType: ActionTargetTypeEnum? = null, | ||
val vehicleType: VehicleTypeEnum? = null, | ||
val infractions: List<InfractionEntity>? = listOf(), | ||
) { | ||
fun toEnvActionControlEntity( | ||
id: UUID, | ||
actionStartDateTimeUtc: ZonedDateTime?, | ||
actionEndDateTimeUtc: ZonedDateTime?, | ||
facade: String?, | ||
department: String?, | ||
geom: Geometry?, | ||
isAdministrativeControl: Boolean?, | ||
isComplianceWithWaterRegulationsControl: Boolean?, | ||
isSafetyEquipmentAndStandardsComplianceControl: Boolean?, | ||
isSeafarersControl: Boolean?, | ||
) = | ||
EnvActionControlEntity( | ||
id = id, | ||
actionStartDateTimeUtc = actionStartDateTimeUtc, | ||
actionEndDateTimeUtc = actionEndDateTimeUtc, | ||
facade = facade, | ||
department = department, | ||
geom = geom, | ||
themes = themes, | ||
observations = observations, | ||
actionNumberOfControls = actionNumberOfControls, | ||
actionTargetType = actionTargetType, | ||
vehicleType = vehicleType, | ||
infractions = infractions, | ||
isAdministrativeControl = isAdministrativeControl, | ||
isComplianceWithWaterRegulationsControl = | ||
isComplianceWithWaterRegulationsControl, | ||
isSafetyEquipmentAndStandardsComplianceControl = | ||
isSafetyEquipmentAndStandardsComplianceControl, | ||
isSeafarersControl = isSeafarersControl, | ||
) | ||
|
||
companion object { | ||
fun fromEnvActionControlEntity(envAction: EnvActionControlEntity) = | ||
EnvActionControlProperties( | ||
themes = envAction.themes, | ||
observations = envAction.observations, | ||
actionNumberOfControls = envAction.actionNumberOfControls, | ||
actionTargetType = envAction.actionTargetType, | ||
vehicleType = envAction.vehicleType, | ||
infractions = envAction.infractions, | ||
) | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...itorenv/domain/entities/mission/envAction/envActionControl/infraction/FormalNoticeEnum.kt
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,7 @@ | ||
package fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.envActionControl.infraction | ||
|
||
enum class FormalNoticeEnum { | ||
YES, | ||
NO, | ||
PENDING, | ||
} |
Oops, something went wrong.