From fa5335131ea107724d07b76a22f629850d7562c2 Mon Sep 17 00:00:00 2001 From: juheelee Date: Thu, 20 Aug 2026 15:00:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20dap-was-dapmt=20=EB=B0=94=EB=9D=BC?= =?UTF-8?q?=EB=B3=B4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dat/report/model/ToolSourceType.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dap-tool-report/src/main/java/io/shinhanlife/dat/report/model/ToolSourceType.java diff --git a/dap-tool-report/src/main/java/io/shinhanlife/dat/report/model/ToolSourceType.java b/dap-tool-report/src/main/java/io/shinhanlife/dat/report/model/ToolSourceType.java new file mode 100644 index 00000000..650d243d --- /dev/null +++ b/dap-tool-report/src/main/java/io/shinhanlife/dat/report/model/ToolSourceType.java @@ -0,0 +1,18 @@ +package io.shinhanlife.dat.report.model; + +import java.util.Locale; + +/** Report 생성 시 참조할 Tool 소스 프로젝트. */ +public enum ToolSourceType { + DAP_WAS_DAPMT, + DAP_ADMIN; + + public static ToolSourceType from(String value) { + if (value == null || value.isBlank()) return DAP_WAS_DAPMT; + try { + return valueOf(value.trim().replace('-', '_').toUpperCase(Locale.ROOT)); + } catch (IllegalArgumentException exception) { + throw new IllegalArgumentException("지원하지 않는 Tool 소스 유형입니다: " + value); + } + } +}