Skip to content

Commit 7e97be0

Browse files
authored
Merge pull request #376 from experdb/develop
Develop
2 parents dfb6cb6 + ff45368 commit 7e97be0

54 files changed

Lines changed: 431 additions & 205 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eXperDB-Management-Agent/src/main/java/com/k4m/dx/tcontrol/server/DxT040.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public class DxT040 extends SocketCtl{
5858
, "du -s $PGLOG" //PG_LOG 용량
5959
, "ls $PGALOG | wc -l"
6060
, "ls $PGLOG | wc -l"
61+
, " psql -t -c \"select setting from pg_settings where name = 'max_wal_size'\""
6162
};
6263

6364
public DxT040(Socket socket, BufferedInputStream is, BufferedOutputStream os) {
@@ -93,6 +94,7 @@ public void execute(String strDxExCode, JSONObject jObj) throws Exception {
9394
String pgalog_cnt;
9495
String log_cnt="";
9596

97+
String max_wal_size="";
9698

9799
byte[] sendBuff = null;
98100

@@ -115,8 +117,13 @@ public void execute(String strDxExCode, JSONObject jObj) throws Exception {
115117
resultHP.put(ProtocolID.PGWAL_CNT, pgwal_cnt);
116118

117119
wal_keep_segments = util.getPidExec(arrCmd[4]);
118-
resultHP.put(ProtocolID.WAL_KEEP_SEGMENTS, wal_keep_segments);
119-
120+
if(wal_keep_segments.trim().equals("0")) {
121+
max_wal_size = util.getPidExec(arrCmd[14]);
122+
resultHP.put(ProtocolID.WAL_KEEP_SEGMENTS, 0);
123+
resultHP.put(ProtocolID.MAX_WAL_SIZE, max_wal_size);
124+
}else {
125+
resultHP.put(ProtocolID.WAL_KEEP_SEGMENTS, wal_keep_segments);
126+
}
120127

121128
pgalog_path = util.getPidExec(arrCmd[5]);
122129
resultHP.put(ProtocolID.PGALOG_PATH, pgalog_path);
@@ -149,6 +156,8 @@ public void execute(String strDxExCode, JSONObject jObj) throws Exception {
149156
log_cnt = util.getPidExec(arrCmd[13]);
150157
resultHP.put(ProtocolID.LOG_CNT, log_cnt);
151158

159+
160+
152161
setShowData(serverInfoObj, resultHP);
153162

154163

eXperDB-Management-Agent/src/main/java/com/k4m/dx/tcontrol/socket/ProtocolID.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ public class ProtocolID {
275275
public static final String PGDBAK_PATH = "PGDBAK_PATH";
276276
public static final String PGWAL_PATH = "PGWAL_PATH";
277277
public static final String WAL_KEEP_SEGMENTS = "WAL_KEEP_SEGMENTS";
278+
public static final String MAX_WAL_SIZE = "MAX_WAL_SIZE";
278279
public static final String BACKUP_PATH = "BACKUP_PATH";
279280
public static final String BACKUP_MOUNT = "BACKUP_MOUNT";
280281
public static final String BACKUP_V = "BACKUP_V";

eXperDB-Management-WebConsole/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.k4m</groupId>
66
<artifactId>eXperDB-Management-WebConsole</artifactId>
77
<packaging>war</packaging>
8-
<version>v15.0.4</version>
8+
<version>v15.1.0</version>
99
<name>eXperDB-Management-WebConsole</name>
1010
<url>http://www.egovframe.go.kr</url>
1111

eXperDB-Management-WebConsole/src/main/java/com/k4m/dx/tcontrol/admin/usermanager/service/UserManagerService.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,11 @@ public interface UserManagerService {
9797

9898
public void updateEncUserPw(Map<String, Object> param) throws Exception;
9999

100+
/**
101+
* 사용자 유저 사용유무 n
102+
* @param string
103+
* @throws Exception
104+
*/
105+
public void updateUserUseyn(String usr_id)throws Exception;
106+
100107
}

eXperDB-Management-WebConsole/src/main/java/com/k4m/dx/tcontrol/admin/usermanager/service/impl/UserManagerDAO.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ public void updateEncUserPw(Map<String, Object> param) throws SQLException {
152152
update("userManagerSql.updateEncUserPw", param);
153153

154154
}
155+
156+
157+
/**
158+
* 사용자 사용유무 변경
159+
*
160+
* @param string
161+
* @throws SQLException
162+
*/
163+
public void updateUserUseyn(String string) throws SQLException {
164+
update("userManagerSql.updateUserUseyn", string);
165+
}
155166

156167

157168
}

eXperDB-Management-WebConsole/src/main/java/com/k4m/dx/tcontrol/admin/usermanager/service/impl/UserManagerServiceImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ public void updateUserPw(UserVO userVo) throws Exception {
7373
public void updateEncUserPw(Map<String, Object> param) throws Exception{
7474
userManagerDAO.updateEncUserPw(param);
7575
}
76-
76+
77+
@Override
78+
public void updateUserUseyn(String usr_id) throws Exception {
79+
userManagerDAO.updateUserUseyn(usr_id);
80+
81+
}
7782

7883

7984
}

eXperDB-Management-WebConsole/src/main/java/com/k4m/dx/tcontrol/cmmn/WebConsoleSetting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class WebConsoleSetting {
1515

1616
public static void main(String[] args) throws Exception {
1717
String strLanguage ="";
18-
String strVersion ="eXperDB-Management-WebConsole-15.0.4";
18+
String strVersion ="eXperDB-Management-WebConsole-15.1.0";
1919

2020
String strDatabaseIp = "";
2121
String strDatabasePort = "";
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package com.k4m.dx.tcontrol.cmmn_web;
2+
3+
import javax.servlet.http.HttpServletRequest;
4+
5+
import org.springframework.stereotype.Controller;
6+
import org.springframework.ui.ModelMap;
7+
import org.springframework.web.bind.annotation.RequestMapping;
8+
import org.springframework.web.servlet.ModelAndView;
9+
10+
@Controller
11+
public class ErrorSettingController {
12+
13+
14+
@RequestMapping(value = "/error/400")
15+
public ModelAndView error400(HttpServletRequest request, ModelMap model) throws Exception {
16+
ModelAndView mv = new ModelAndView();
17+
mv.setViewName("error/400Error");
18+
return mv;
19+
}
20+
21+
@RequestMapping(value = "/error/401")
22+
public ModelAndView error401(HttpServletRequest request, ModelMap model) throws Exception {
23+
ModelAndView mv = new ModelAndView();
24+
mv.setViewName("error/401Error");
25+
return mv;
26+
}
27+
28+
@RequestMapping(value = "/error/403")
29+
public ModelAndView error403(HttpServletRequest request, ModelMap model) throws Exception {
30+
ModelAndView mv = new ModelAndView();
31+
mv.setViewName("error/403Error");
32+
return mv;
33+
}
34+
35+
@RequestMapping(value = "/error/404")
36+
public ModelAndView error404(HttpServletRequest request, ModelMap model) throws Exception {
37+
ModelAndView mv = new ModelAndView();
38+
mv.setViewName("error/404Error");
39+
return mv;
40+
}
41+
42+
@RequestMapping(value = "/error/500")
43+
public ModelAndView error500(HttpServletRequest request, ModelMap model) throws Exception {
44+
ModelAndView mv = new ModelAndView();
45+
mv.setViewName("error/500Error");
46+
return mv;
47+
}
48+
49+
50+
}

eXperDB-Management-WebConsole/src/main/java/com/k4m/dx/tcontrol/encrypt/service/call/BackupServiceCall.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public JSONObject validateBackupFile(MultipartFile mFile, HashMap<String, Object
176176
return result;
177177
}
178178

179-
if(!header.ContainsPolicy() && (boolean) param.get("chkKey")){
179+
if(!header.ContainsPolicy() && (boolean) param.get("chkPolicy")){
180180
System.out.println("not contains policy in file");
181181
result.put("RESULT_CODE", SystemCode.ResultCode.ITEM_NOT_FOUND_ERROR);
182182
result.put("RESULT_MESSAGE", "The backup file does not contain the policy data");
@@ -190,7 +190,7 @@ public JSONObject validateBackupFile(MultipartFile mFile, HashMap<String, Object
190190
return result;
191191
}
192192

193-
if(!header.ContainsBackupLog() && (boolean) param.get("chkConfig")){
193+
if(!header.ContainsConfig() && (boolean) param.get("chkConfig")){
194194
System.out.println("not contains config info in file");
195195
result.put("RESULT_CODE", SystemCode.ResultCode.ITEM_NOT_FOUND_ERROR);
196196
result.put("RESULT_MESSAGE", "The backup file does not contain the config data");

eXperDB-Management-WebConsole/src/main/java/com/k4m/dx/tcontrol/encrypt/service/call/SecurityPolicyServiceCall.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ public JSONObject selectProfileProtectionContents(String lang, String restIp, in
323323
System.out.println(" offset : " + profileCipherSpec.getOffset());
324324
System.out.println(" length : " + profileCipherSpec.getLength());
325325
System.out.println(" binUid : " + profileCipherSpec.getBinUid());
326+
jsonObj.put("rownum", i+1);
326327
jsonObj.put("specIndex", profileCipherSpec.getSpecIndex());
327328
jsonObj.put("profileUid", profileCipherSpec.getProfileUid());
328329
jsonObj.put("CipherAlgorithmCode", profileCipherSpec.getCipherAlgorithmCode());
@@ -476,6 +477,7 @@ public JSONObject selectProfileProtectionContents(String lang, String restIp, in
476477
}
477478
}
478479

480+
jsonObj.put("no", i+1);
479481
jsonObj.put("specName", new String(profileAclSpec.getSpecName().getBytes("iso-8859-1"),"UTF-8"));
480482
if(profileAclSpec.getServerInstanceId() != null){
481483
jsonObj.put("serverInstanceId", new String(profileAclSpec.getServerInstanceId().getBytes("iso-8859-1"),"UTF-8"));

0 commit comments

Comments
 (0)