diff --git a/WebContent/jsp/onl/admin/common/propertyManDetail.jsp b/WebContent/jsp/onl/admin/common/propertyManDetail.jsp index 582d220..c4574f0 100644 --- a/WebContent/jsp/onl/admin/common/propertyManDetail.jsp +++ b/WebContent/jsp/onl/admin/common/propertyManDetail.jsp @@ -250,6 +250,29 @@ var url_view = ''; }); }); + + $("#btn_pop_encrypt").click(function() { + var prpty2Val = $("input[name=prpty2Val]").val(); + if (prpty2Val == '') { + alert("프라퍼티 값을 입력하세요"); + return; + } + var postData = { + cmd : "ENCRYPT", + prpty2Val : prpty2Val, + }; + $.ajax({ + type : "POST", + url : url, + data : postData, + success : function(args) { + $("input[name=prpty2Val]").val(args); + }, + error : function(e) { + alert(e.responseText); + } + }); + }); buttonControl(key); titleControl(key); @@ -289,12 +312,17 @@ var url_view = ''; - - - + +
<%= localeMessage.getString("propertyDetail.propertyKey") %> - + + + +
<%= localeMessage.getString("propertyDetail.propertyValue") %><%= localeMessage.getString("propertyDetail.propertyValue") %> + + +
diff --git a/libs/damo-manager.jar b/libs/damo-manager.jar new file mode 100644 index 0000000..146c60d Binary files /dev/null and b/libs/damo-manager.jar differ diff --git a/src/main/java/com/eactive/eai/rms/onl/manage/comm/property/PropertyController.java b/src/main/java/com/eactive/eai/rms/onl/manage/comm/property/PropertyController.java index 026cd60..18ee223 100644 --- a/src/main/java/com/eactive/eai/rms/onl/manage/comm/property/PropertyController.java +++ b/src/main/java/com/eactive/eai/rms/onl/manage/comm/property/PropertyController.java @@ -19,6 +19,7 @@ import com.eactive.eai.agent.encryption.ReloadEncryptionYNCommand; import com.eactive.eai.agent.property.ReloadPropertyCommand; import com.eactive.eai.rms.common.base.OnlBaseAnnotationController; import com.eactive.eai.rms.common.vo.GridResponse; +import com.eactive.ext.djb.DamoManager; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; @@ -151,5 +152,12 @@ public class PropertyController extends OnlBaseAnnotationController { resultMap.put("merge", lmerge); return new ModelAndView("excelView", resultMap); } + + + @PostMapping(value = "/onl/admin/common/propertyMan.json", params = "cmd=ENCRYPT") + public ResponseEntity encrypt(PropertyUI propertyForm) throws Exception { + String encrypted = DamoManager.getInstance().encrypt(propertyForm.getPrpty2Val()); + return ResponseEntity.ok(encrypted); + } } \ No newline at end of file