juheelee #6

Merged
juheelee merged 3 commits from juheelee into main 2026-08-20 15:12:22 +09:00
Showing only changes of commit fa5335131e - Show all commits

View File

@@ -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);
}
}
}