Statistics
| Revision:

root / hci / trunk / .metadata / .plugins / org.eclipse.core.resources / .history / 73 / 9091610dd111001014a7aaca645a4b74 @ 3

History | View | Annotate | Download (483 Bytes)

1
package com.eneraptor.hci
2

    
3
class ConfigController {
4

    
5
    def main = { }
6
	
7
	def hci = {
8
	
9
		[conf: InternalConfig]
10
			
11
	}
12
	
13
	def logic = {
14
		
15
		[conf: InternalConfig]
16
		
17
	}
18
	
19
	def connection = {
20
		
21
		[conf: InternalConfig]
22
		
23
	}
24
	
25
	def saveConnection = {
26
		
27
		InternalConfig.findByConfigId('logic-ip').configVal = params['logic-ip']
28
		InternalConfig.findByConfigId('logic-port').configVal = params['logic-port']
29
		redirect(action: 'connection')
30
		
31
	}
32
	
33
}