summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/edit.composite
blob: c13c2ccc32cbb5646e9363abbd7165658a899431 (plain)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.    
-->
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
  xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1"
  targetNamespace="http://edit"
  name="edit">
        
    <component name="User">
        <t:implementation.python script="user.py"/>
        <property name="user">?</property>
        <property name="email">?</property>
        <property name="nickname">?</property>
        <property name="fullname">?</property>
        <property name="firstname">?</property>
        <property name="lastname">?</property>
        <property name="realm">?</property>
        <service name="User">
            <t:binding.http uri="user"/>
        </service>
    </component>
    
    <component name="MenuWidget">
        <t:implementation.widget location="/menu.html"/>
        <reference name="user" target="User"/>
    </component>
    
    <component name="EditWidget">
        <t:implementation.widget location="/index.html"/>
        <reference name="dashboard" target="Dashboard"/>
        <reference name="apps" target="Apps"/>
        <reference name="store" target="AppStore"/>
        <reference name="palettes" target="Palettes"/>
        <reference name="composites" target="Composites"/>
        <reference name="pages" target="Pages"/>
        <reference name="log" target="Log"/>
    </component>
    
    <component name="Dashboard">
        <t:implementation.python script="dashboard.py"/>
        <service name="Dashboard">
            <t:binding.http uri="dashboard"/>
        </service>        
        <reference name="user" target="User"/>
        <reference name="cache" target="DashboardCache"/>
        <reference name="apps" target="Apps"/>
    </component>
    
    <component name="AppStore">
        <t:implementation.python script="store.py"/>
        <service name="AppStore">
            <t:binding.http uri="appstore"/>
        </service>        
        <reference name="cache" target="StoreCache"/>
    </component>
    
    <component name="Apps">
        <t:implementation.python script="apps.py"/>
        <service name="Apps">
            <t:binding.http uri="apps"/>
        </service>
        <reference name="cache" target="AppCache"/>
        <reference name="store" target="AppStore"/>
        <reference name="composites" target="Composites"/>
        <reference name="pages" target="Pages"/>
    </component>
    
    <component name="Composites">
        <t:implementation.python script="composites.py"/>
        <service name="Composites">
            <t:binding.http uri="composites"/>
        </service>
        <reference name="cache" target="AppDocCache"/>
    </component>
    
    <component name="Pages">
        <t:implementation.python script="pages.py"/>
        <service name="Pages">
            <t:binding.http uri="pages"/>
        </service>
        <reference name="cache" target="AppDocCache"/>
    </component>
    
    <component name="Palettes">
        <t:implementation.python script="palettes.py"/>
        <service name="Palettes">
            <t:binding.http uri="palettes"/>
        </service>
        <reference name="cache" target="PaletteDocCache"/>
    </component>
    
    <component name="DashboardCache">
        <implementation.cpp path="../../components/cache" library="libdatacache"/>
        <service name="DashboardCache">
            <t:binding.http uri="dashboardcache"/>
        </service>
        <reference name="l1reader" target="Memcache"/>
        <reference name="l1writer" target="Memcache"/>
        <reference name="l2reader" target="DashboardDB"/>
        <reference name="l2writer" target="DashboardDB"/>
    </component>

    <component name="DashboardDB">
        <implementation.cpp path="../../components/filedb" library="libfiledb"/>
        <property name="dbname">dashboards</property>
        <property name="format">scheme</property>
        <service name="DashboardDB">
            <t:binding.http uri="dashboarddb"/>
        </service>
    </component>

    <component name="StoreCache">
        <implementation.cpp path="../../components/cache" library="libdatacache"/>
        <service name="StoreCache">
            <t:binding.http uri="storecache"/>
        </service>
        <reference name="l1reader" target="Memcache"/>
        <reference name="l1writer" target="Memcache"/>
        <reference name="l2reader" target="StoreDB"/>
        <reference name="l2writer" target="StoreDB"/>
    </component>

    <component name="StoreDB">
        <implementation.cpp path="../../components/filedb" library="libfiledb"/>
        <property name="dbname">store</property>
        <property name="format">scheme</property>
        <service name="StoreDB">
            <t:binding.http uri="storedb"/>
        </service>
    </component>

    <component name="AppCache">
        <implementation.cpp path="../../components/cache" library="libdatacache"/>
        <service name="AppCache">
            <t:binding.http uri="appcache"/>
        </service>
        <reference name="l1reader" target="Memcache"/>
        <reference name="l1writer" target="Memcache"/>
        <reference name="l2reader" target="AppDB"/>
        <reference name="l2writer" target="AppDB"/>
    </component>

    <component name="AppDB">
        <implementation.cpp path="../../components/filedb" library="libfiledb"/>
        <property name="dbname">apps</property>
        <property name="format">scheme</property>
        <service name="AppDB">
            <t:binding.http uri="appdb"/>
        </service>
    </component>

    <component name="AppDocCache">
        <implementation.cpp path="../../components/cache" library="libdatacache"/>
        <service name="AppDocCache">
            <t:binding.http uri="appdoccache"/>
        </service>
        <reference name="l1reader" target="Memcache"/>
        <reference name="l1writer" target="Memcache"/>
        <reference name="l2reader" target="AppDocDB"/>
        <reference name="l2writer" target="AppDocDB"/>
    </component>

    <component name="AppDocDB">
        <implementation.cpp path="../../components/filedb" library="libfiledb"/>
        <property name="dbname">apps</property>
        <property name="format">xml</property>
        <service name="AppDocDB">
            <t:binding.http uri="appdocdb"/>
        </service>
    </component>

    <component name="PaletteDocCache">
        <implementation.cpp path="../../components/cache" library="libdatacache"/>
        <service name="PaletteDocCache">
            <t:binding.http uri="palettedoccache"/>
        </service>
        <reference name="l1reader" target="Memcache"/>
        <reference name="l1writer" target="Memcache"/>
        <reference name="l2reader" target="PaletteDocDB"/>
        <reference name="l2writer" target="PaletteDocDB"/>
    </component>

    <component name="PaletteDocDB">
        <implementation.cpp path="../../components/filedb" library="libfiledb"/>
        <property name="dbname">palettes</property>
        <property name="format">xml</property>
        <service name="PaletteDocDB">
            <t:binding.http uri="palettedocdb"/>
        </service>
    </component>

    <component name="AppDataFileCache">
        <implementation.cpp path="../../components/cache" library="libdatacache"/>
        <service name="AppDataFileCache">
            <t:binding.http uri="appdatafilecache"/>
        </service>
        <reference name="l1reader" target="Memcache"/>
        <reference name="l1writer" target="Memcache"/>
        <reference name="l2reader" target="AppDataFileDB"/>
        <reference name="l2writer" target="AppDataFileDB"/>
    </component>

    <component name="AppDataFileDB">
        <implementation.cpp path="../../components/filedb" library="libfiledb"/>
        <property name="dbname">tmp/appdata/filedb</property>
        <property name="format">scheme</property>
        <service name="AppDataFileDB">
            <t:binding.http uri="appdatafiledb"/>
        </service>
    </component>

    <component name="Memcache">
        <implementation.cpp path="../../components/cache" library="libmemcache"/>
        <service name="Memcache">
            <t:binding.http uri="memcache"/>
        </service>
        <property name="servers">localhost:11211</property>
    </component>

    <component name="Log">
        <t:implementation.python script="log.py"/>
        <service name="Log">
            <t:binding.http uri="log"/>
        </service>        
    </component>
    
</composite>