Project

General

Profile

« Previous | Next » 

Revision 8749

Added by Jing Tao over 10 years ago

Store the cn url in the backup.

View differences:

src/edu/ucsb/nceas/metacat/admin/D1Admin.java
104 104
			try {
105 105
				
106 106
				// get the current configuration values
107
				String cnURL = PropertyService.getProperty("D1Client.CN_URL");
107 108
				String nodeName = PropertyService.getProperty("dataone.nodeName");
108 109
				String nodeDescription = PropertyService.getProperty("dataone.nodeDescription");
109 110
				String memberNodeId = PropertyService.getProperty("dataone.nodeId");
......
135 136
				if (nodeReplicate != null) {
136 137
					replicate = Boolean.parseBoolean(nodeReplicate);
137 138
				}
138
				
139
				request.setAttribute("D1Client.CN_URL", cnURL);
139 140
				request.setAttribute("dataone.nodeName", nodeName);
140 141
				request.setAttribute("dataone.nodeDescription", nodeDescription);
141 142
				request.setAttribute("dataone.nodeId", memberNodeId);
......
246 247
				// and preserve their entries.
247 248
				validationErrors.addAll(validateOptions(request));
248 249
				
250
				String cnURL = (String)request.getParameter("D1Client.CN_URL");
249 251
				String nodeName = (String)request.getParameter("dataone.nodeName");
250 252
				String nodeDescription = (String)request.getParameter("dataone.nodeDescription");
251 253
				String memberNodeId = (String)request.getParameter("dataone.nodeId");
......
290 292
					validationErrors.add("nodeName cannot be null");
291 293
				} else {
292 294
					
295
					PropertyService.setProperty("D1Client.CN_URL", cnURL);
293 296
					PropertyService.setPropertyNoPersist("dataone.nodeName", nodeName);
294 297
					PropertyService.setPropertyNoPersist("dataone.nodeDescription", nodeDescription);					
295 298
					PropertyService.setPropertyNoPersist("dataone.nodeSynchronize", Boolean.toString(synchronize));

Also available in: Unified diff