-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFunctions.lddl
More file actions
107 lines (100 loc) · 2.19 KB
/
Functions.lddl
File metadata and controls
107 lines (100 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
* Functions used to register web services and datasources.
*/
void register_datasources(list) {
list.each {
register_datasource(it)
}
}
register_datasource = { s ->
def language = s.lang ?: 'en-US'
println "Registering datasource ${s.name}"
serviceInterfaceDefinition {
name "${s.name} Interface"
domain DOMAIN
type DATASOURCE
protocol 'SOAP_RPC_ENCODED'
url "${s.url}?wsdl"
}
service {
id s.id
name s.name
url s.url
protocol 'SOAP_RPC_ENCODED'
domain DOMAIN
type DATASOURCE
copyright COPYRIGHT
resource MASC_ID
license APACHE
description s.desc
allow 'commercial', 'nonprofit', 'research'
control 'client', 'server'
federate true
attributes {
lang language
}
}
news "Configured ${s.name}"
}
register_services = { list ->
list.each {
register_service(it)
}
}
register_service = { s ->
serviceInterfaceDefinition {
name "${s.name} Interface"
domain DOMAIN
type SERVICE
protocol 'SOAP_RPC_ENCODED'
url "${s.url}?wsdl"
}
def language = s.lang ?: 'en-US'
service {
id s.id
name s.name
url s.url
protocol 'SOAP_RPC_ENCODED'
domain DOMAIN
type SERVICE
copyright COPYRIGHT
resource NONE_ID
license s.license
description s.desc
allow 'commercial', 'nonprofit', 'research'
control 'client', 'server'
federate true
attributes {
lang language
}
}
news "Configured ${s.name}"
}
register_converter = { s ->
serviceInterfaceDefinition {
name "${s.name} Interface"
domain DOMAIN
type SERVICE
protocol 'SOAP_RPC_ENCODED'
url "${s.url}?wsdl"
}
service {
id s.id
name s.name
url s.url
protocol 'SOAP_RPC_ENCODED'
domain DOMAIN
type SERVICE
copyright COPYRIGHT
resource NONE_ID
license APACHE
description s.desc
allow 'commercial', 'nonprofit', 'research'
control 'client', 'server'
federate true
attributes {
lang 'any'
}
}
news "Registered ${s.name}"
}