");
79 |
80 | if (type == TRANSLATION_CLOUD_CONFIG_CLASS
81 | && cloudConfigUtil.isCloudConfigAppliedOnImmediateResource(resource,
82 | BootstrapTranslationCloudConfig.RESOURCE_TYPE))
83 | {
84 | try
85 | {
86 | return (AdapterType) new BootstrapTranslationCloudConfigImpl(resource);
87 | }
88 | catch (TranslationException te)
89 | {
90 | log.error(te.getMessage(), te);
91 | return null;
92 | }
93 | }
94 |
95 | log.warn("Unable to adapt to resource of type {}", type.getName());
96 | return null;
97 | }
98 | }
--------------------------------------------------------------------------------
/core/src/main/java/com/adobe/granite/translation/connector/bootstrap/core/impl/config/BootstrapTranslationCloudConfigImpl.java:
--------------------------------------------------------------------------------
1 | /*
2 | *************************************************************************
3 | ADOBE SYSTEMS INCORPORATED
4 | Copyright [first year code created] Adobe Systems Incorporated
5 | All Rights Reserved.
6 |
7 | NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
8 | terms of the Adobe license agreement accompanying it. If you have received this file from a
9 | source other than Adobe, then your use, modification, or distribution of it requires the prior
10 | written permission of Adobe.
11 | *************************************************************************
12 | */
13 |
14 | package com.adobe.granite.translation.connector.bootstrap.core.impl.config;
15 |
16 | import com.adobe.granite.translation.api.TranslationException;
17 | import com.adobe.granite.translation.connector.bootstrap.core.BootstrapTranslationCloudConfig;
18 |
19 | import org.apache.jackrabbit.JcrConstants;
20 | import org.apache.sling.api.resource.Resource;
21 | import org.apache.sling.api.resource.ValueMap;
22 | import org.slf4j.Logger;
23 | import org.slf4j.LoggerFactory;
24 |
25 | public class BootstrapTranslationCloudConfigImpl implements BootstrapTranslationCloudConfig {
26 | private static final Logger log = LoggerFactory.getLogger(BootstrapTranslationCloudConfigImpl.class);
27 |
28 | private String dummyServerUrl;
29 | private String dummyConfigId;
30 | private String previewPath;
31 |
32 | public BootstrapTranslationCloudConfigImpl(Resource translationConfigResource) throws TranslationException {
33 | log.trace("BootstrapTranslationCloudConfigImpl.");
34 |
35 | Resource configContent;
36 | if (JcrConstants.JCR_CONTENT.equals(translationConfigResource.getName())) {
37 | configContent = translationConfigResource;
38 | } else {
39 | configContent = translationConfigResource.getChild(JcrConstants.JCR_CONTENT);
40 | }
41 |
42 | if (configContent != null) {
43 | ValueMap properties = configContent.adaptTo(ValueMap.class);
44 |
45 | this.dummyServerUrl = properties.get(PROPERTY_DUMMY_SERVER_URL, "");
46 | this.dummyConfigId = properties.get(PROPERTY_DUMMY_CONFIG_ID, "");
47 | this.previewPath = properties.get(PROPERTY_PREVIEW_PATH, "");
48 |
49 | if (log.isTraceEnabled()) {
50 | log.trace("Created Bootstrap Cloud Config with the following:");
51 | log.trace("dummyServerUrl: {}", dummyServerUrl);
52 | log.trace("dummyConfigId: {}", dummyConfigId);
53 | log.trace("previewPath: {}", previewPath);
54 |
55 | }
56 | } else {
57 | throw new TranslationException("Error getting Cloud Config credentials",
58 | TranslationException.ErrorCode.MISSING_CREDENTIALS);
59 | }
60 | }
61 |
62 | public String getDummyServerUrl() {
63 | log.trace("BootstrapTranslationCloudConfigImpl.getDummyServerUrl");
64 | return dummyServerUrl;
65 | }
66 |
67 | public String getDummyConfigId() {
68 | log.trace("BootstrapTranslationCloudConfigImpl.getDummyConfigId");
69 | return dummyConfigId;
70 | }
71 |
72 | public String getPreviewPath(){
73 | log.trace("BootstrapTranslationCloudConfigImpl.gePreviewPath");
74 | return previewPath;
75 | }
76 | }
--------------------------------------------------------------------------------
/core/src/main/java/com/adobe/granite/translation/connector/bootstrap/core/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2015 Adobe Systems Incorporated
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | @Version("1.0")
17 | package com.adobe.granite.translation.connector.bootstrap.core;
18 |
19 | import org.osgi.annotation.versioning.Version;
--------------------------------------------------------------------------------
/core/src/main/java/com/adobe/granite/translation/connector/bootstrap/ui/models/BootStrapModelUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | ADOBE CONFIDENTIAL
3 | Copyright 2018 Adobe Systems Incorporated
4 | All Rights Reserved.
5 | NOTICE: All information contained herein is, and remains
6 | the property of Adobe Systems Incorporated and its suppliers,
7 | if any. The intellectual and technical concepts contained
8 | herein are proprietary to Adobe Systems Incorporated and its
9 | suppliers and may be covered by U.S. and Foreign Patents,
10 | patents in process, and are protected by trade secret or copyright law.
11 | Dissemination of this information or reproduction of this material
12 | is strictly forbidden unless prior written permission is obtained
13 | from Adobe Systems Incorporated.
14 | */
15 |
16 | package com.adobe.granite.translation.connector.bootstrap.ui.models;
17 |
18 | import org.apache.jackrabbit.JcrConstants;
19 | import org.apache.sling.api.resource.Resource;
20 | import org.slf4j.Logger;
21 |
22 | import javax.jcr.Node;
23 | import javax.jcr.RepositoryException;
24 |
25 | /**
26 | * Utility class for Bootstrap connector sling model
27 | */
28 |
29 | public class BootStrapModelUtils {
30 |
31 | // Helper for fetching properties from content node
32 | static String getStringPropertyFromContent(Resource resource, String property, Logger logger) {
33 | try {
34 | if (resource != null) {
35 | Resource contentResource = resource.getChild(JcrConstants.JCR_CONTENT);
36 | if (contentResource != null) {
37 | Node content = contentResource.adaptTo(Node.class);
38 | if (content != null && content.hasProperty(property)) {
39 | return content.getProperty(property).getString();
40 | }
41 | }
42 | }
43 | } catch (RepositoryException e) {
44 | logger.error("Error fetching Property {} from {}", property, resource.getPath());
45 | }
46 | return "";
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/core/src/main/java/com/adobe/granite/translation/connector/bootstrap/ui/models/BootStrapTranslationConnectorModel.java:
--------------------------------------------------------------------------------
1 | /*
2 | ADOBE CONFIDENTIAL
3 | Copyright 2018 Adobe Systems Incorporated
4 | All Rights Reserved.
5 | NOTICE: All information contained herein is, and remains
6 | the property of Adobe Systems Incorporated and its suppliers,
7 | if any. The intellectual and technical concepts contained
8 | herein are proprietary to Adobe Systems Incorporated and its
9 | suppliers and may be covered by U.S. and Foreign Patents,
10 | patents in process, and are protected by trade secret or copyright law.
11 | Dissemination of this information or reproduction of this material
12 | is strictly forbidden unless prior written permission is obtained
13 | from Adobe Systems Incorporated.
14 | */
15 |
16 | package com.adobe.granite.translation.connector.bootstrap.ui.models;
17 |
18 | import com.adobe.granite.translation.connector.bootstrap.core.BootstrapTranslationCloudConfig;
19 | import com.day.cq.commons.jcr.JcrConstants;
20 | import org.apache.sling.api.SlingHttpServletRequest;
21 | import org.apache.sling.api.resource.Resource;
22 | import org.apache.sling.api.resource.ResourceResolver;
23 | import org.apache.sling.models.annotations.Model;
24 | import org.apache.sling.models.annotations.injectorspecific.Self;
25 | import org.slf4j.Logger;
26 | import org.slf4j.LoggerFactory;
27 |
28 | import javax.annotation.PostConstruct;
29 |
30 | /*
31 | * Sling Model used in editform.html sightly file for fetching the bootstrap cloud config input fields for populating the form
32 | * For more info about Sling Model refer https://sling.apache.org/documentation/bundles/models.html#osgi-service-filters
33 | */
34 |
35 | @Model(adaptables = SlingHttpServletRequest.class)
36 | public class BootStrapTranslationConnectorModel {
37 |
38 | private static final Logger logger = LoggerFactory.getLogger(BootStrapTranslationConnectorModel.class);
39 |
40 | @Self
41 | private SlingHttpServletRequest request;
42 |
43 | private ResourceResolver resourceResolver;
44 | private String bootStrapConfigPath;
45 | private Resource bootStrapConfigResource;
46 |
47 | @PostConstruct
48 | public void postConstruct() throws Exception {
49 | bootStrapConfigPath = request.getRequestPathInfo().getSuffix();
50 | resourceResolver = request.getResourceResolver();
51 | bootStrapConfigResource = resourceResolver.getResource(bootStrapConfigPath);
52 | }
53 |
54 | /*
55 | * Get the server url for the configuration
56 | */
57 | public String getServerUrl() {
58 | return BootStrapModelUtils.getStringPropertyFromContent(bootStrapConfigResource, BootstrapTranslationCloudConfig.PROPERTY_DUMMY_SERVER_URL, logger);
59 | }
60 |
61 | public String getServiceId() {
62 | return BootStrapModelUtils.getStringPropertyFromContent(bootStrapConfigResource, BootstrapTranslationCloudConfig.PROPERTY_DUMMY_CONFIG_ID, logger);
63 | }
64 |
65 | public String getPreviewDirectory() {
66 | return BootStrapModelUtils.getStringPropertyFromContent(bootStrapConfigResource, BootstrapTranslationCloudConfig.PROPERTY_PREVIEW_PATH, logger);
67 | }
68 |
69 | /*
70 | * form action attribute (post path where the configuration input values would be saved), jcr:content node of the configuration for bootstrap
71 | */
72 | public String getFormPostPath() {
73 | return bootStrapConfigPath + '/' + JcrConstants.JCR_CONTENT;
74 | }
75 |
76 | }
77 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | 4.0.0
19 | com.adobe.granite.translation.connector
20 | bootstrap-connector
21 | Bootstrap Translation Connector
22 | pom
23 | 2.0-SNAPSHOT
24 | Bootstrap Translation Connector
25 |
26 |
27 | core
28 | ui.apps
29 | ui.content
30 |
31 |
32 |
33 | scm:git:https://github.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector.git
34 | scm:git:https://github.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector.git
35 | https://github.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector
36 | HEAD
37 |
38 |
39 |
40 |
41 |
42 | project.local
43 | project
44 | file:///${project.basedir}/repository
45 |
46 |
47 |
48 |
49 | localhost
50 | 4502
51 | localhost
52 | 4503
53 | admin
54 | admin
55 | admin
56 | admin
57 |
58 | UTF-8
59 | UTF-8
60 |
61 |
62 |
63 |
64 |
65 |
66 | org.apache.maven.plugins
67 | maven-release-plugin
68 | 2.5.3
69 |
70 | [maven-scm] :
71 | clean install
72 | install
73 | release
74 |
75 |
76 |
77 |
78 | org.apache.maven.plugins
79 | maven-source-plugin
80 | 3.0.1
81 | true
82 |
83 |
84 |
85 | org.apache.maven.plugins
86 | maven-jar-plugin
87 | 3.0.2
88 |
89 |
90 |
91 | org.apache.maven.plugins
92 | maven-enforcer-plugin
93 |
94 |
95 | enforce-maven
96 |
97 | enforce
98 |
99 |
100 |
101 |
102 | [3.3.9,)
103 |
104 |
105 | Project must be compiled with Java 8 or higher
106 | 1.8.0
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | org.apache.maven.plugins
116 | maven-compiler-plugin
117 |
118 | 1.8
119 | 1.8
120 |
121 |
122 |
123 |
124 | org.apache.maven.plugins
125 | maven-idea-plugin
126 | 2.2.1
127 |
128 | 1.8
129 | true
130 | true
131 |
132 |
133 |
134 |
135 | org.apache.maven.plugins
136 | maven-eclipse-plugin
137 | 2.10
138 |
139 | true
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | org.apache.maven.plugins
148 | maven-clean-plugin
149 | 3.0.0
150 |
151 |
152 |
153 | org.apache.felix
154 | maven-scr-plugin
155 |
156 |
157 | generate-scr-scrdescriptor
158 |
159 | scr
160 |
161 |
162 |
163 | Adobe Systems Incorporated
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 | org.apache.maven.plugins
172 | maven-resources-plugin
173 | 3.0.2
174 |
175 |
176 |
177 | org.apache.maven.plugins
178 | maven-compiler-plugin
179 | 3.6.1
180 |
181 |
182 |
183 | org.apache.maven.plugins
184 | maven-install-plugin
185 | 2.5.2
186 |
187 |
188 |
189 | org.apache.maven.plugins
190 | maven-surefire-plugin
191 | 2.20
192 |
193 |
194 |
195 | org.apache.maven.plugins
196 | maven-failsafe-plugin
197 | 2.20
198 |
199 |
200 |
201 | org.apache.maven.plugins
202 | maven-deploy-plugin
203 | 2.8.2
204 |
205 |
206 |
207 | org.apache.sling
208 | maven-sling-plugin
209 | 2.2.0
210 |
211 | http://${aem.host}:${aem.port}/system/console
212 | WebConsole
213 |
214 |
215 |
216 |
217 | org.apache.sling
218 | htl-maven-plugin
219 | 1.0.6
220 |
221 | true
222 |
223 |
224 |
225 |
226 | validate
227 |
228 |
229 |
230 |
231 |
232 |
233 | com.day.jcr.vault
234 | content-package-maven-plugin
235 | 0.5.1
236 |
237 | http://${aem.host}:${aem.port}/crx/packmgr/service.jsp
238 | true
239 | true
240 | ${vault.user}
241 | ${vault.password}
242 |
243 |
244 |
245 |
246 | org.apache.felix
247 | maven-bundle-plugin
248 | 3.3.0
249 | true
250 |
251 |
252 |
253 | org.apache.maven.plugins
254 | maven-enforcer-plugin
255 | 1.4.1
256 |
257 |
258 |
259 | org.apache.maven.plugins
260 | maven-dependency-plugin
261 | 3.0.0
262 |
263 |
264 |
265 | org.codehaus.mojo
266 | build-helper-maven-plugin
267 | 3.0.0
268 |
269 |
270 |
271 | org.eclipse.m2e
272 | lifecycle-mapping
273 | 1.0.0
274 |
275 |
276 |
277 |
278 |
279 | org.apache.maven.plugins
280 | maven-enforcer-plugin
281 | [1.0.0,)
282 |
283 | enforce
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 | org.apache.maven.plugins
294 |
295 |
296 | maven-dependency-plugin
297 |
298 |
299 | [2.2,)
300 |
301 |
302 | copy-dependencies
303 | unpack
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 | org.codehaus.mojo
314 |
315 |
316 | build-helper-maven-plugin
317 |
318 |
319 | [1.5,)
320 |
321 |
322 |
323 | reserve-network-port
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 | adobe-public
345 |
346 |
347 | true
348 |
349 |
350 |
351 | adobe-public-releases
352 | Adobe Public Releases
353 | https://repo.adobe.com/nexus/content/groups/public
354 |
355 |
356 |
357 |
358 | adobe-public-releases
359 | Adobe Public Repository
360 | https://repo.adobe.com/nexus/content/groups/public
361 |
362 | true
363 | never
364 |
365 |
366 | false
367 |
368 |
369 |
370 | localinstance
371 | AEM local repository
372 | http://localhost:4502/maven/repository
373 |
374 | true
375 |
376 |
377 | true
378 |
379 |
380 |
381 |
382 |
383 |
384 | adobe-public-releases
385 | Adobe Public Repository
386 | https://repo.adobe.com/nexus/content/groups/public
387 |
388 | true
389 | never
390 |
391 |
392 | false
393 |
394 |
395 |
396 | localinstance
397 | AEM local repository
398 | http://localhost:4502/maven/repository
399 |
400 | true
401 |
402 |
403 | true
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 | autoInstallBundle
412 |
421 |
422 | false
423 |
424 |
425 |
426 |
427 |
428 | org.apache.sling
429 | maven-sling-plugin
430 |
431 |
432 | install-bundle
433 |
434 | install
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 |
444 |
445 | autoInstallPackage
446 |
447 | false
448 |
449 |
450 |
451 |
452 |
453 | com.day.jcr.vault
454 | content-package-maven-plugin
455 |
456 |
457 | install-package
458 |
459 | install
460 |
461 |
462 | http://${aem.host}:${aem.port}/crx/packmgr/service.jsp
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 | autoInstallPackagePublish
474 |
475 | false
476 |
477 |
478 |
479 |
480 |
481 | com.day.jcr.vault
482 | content-package-maven-plugin
483 |
484 |
485 | install-package-publish
486 |
487 | install
488 |
489 |
490 | http://${aem.publish.host}:${aem.publish.port}/crx/packmgr/service.jsp
491 |
492 |
493 |
494 |
495 |
496 |
497 |
498 |
499 |
500 |
501 |
502 |
503 |
504 |
505 |
506 |
507 |
508 |
509 |
510 | org.apache.felix
511 | org.apache.felix.scr.annotations
512 | 1.9.6
513 | provided
514 |
515 |
516 | org.osgi
517 | osgi.core
518 | 6.0.0
519 | provided
520 |
521 |
522 | org.osgi
523 | osgi.cmpn
524 | 6.0.0
525 | provided
526 |
527 |
528 | org.osgi
529 | osgi.annotation
530 | 6.0.1
531 | provided
532 |
533 |
534 |
535 | org.slf4j
536 | slf4j-api
537 | 1.5.11
538 | provided
539 |
540 |
541 |
542 | com.adobe.aem
543 | aem-sdk-api
544 | 2020.7.3902.20200716T022312Z-200604
545 | provided
546 |
547 |
548 |
549 |
550 | javax.servlet
551 | servlet-api
552 | 2.5
553 | provided
554 |
555 |
556 | javax.servlet.jsp
557 | jsp-api
558 | 2.1
559 | provided
560 |
561 |
562 |
563 | javax.jcr
564 | jcr
565 | 2.0
566 | provided
567 |
568 |
569 |
570 | com.day.cq.wcm
571 | cq-wcm-taglib
572 | 5.7.4
573 | provided
574 |
575 |
576 |
577 | com.adobe.granite.translation
578 | bootstrap-tms.core
579 | 4.0
580 |
581 |
582 |
583 |
584 |
--------------------------------------------------------------------------------
/ui.apps/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | 4.0.0
19 |
20 |
21 |
22 |
23 |
24 | com.adobe.granite.translation.connector
25 | bootstrap-connector
26 | 2.0-SNAPSHOT
27 | ../pom.xml
28 |
29 |
30 |
31 |
32 |
33 | bootstrap-connector.ui.apps
34 | content-package
35 | Bootstrap Translation Connector - UI apps
36 | Bootstrap connector implementation for the Granite Translation API. This connector provides a reference implementation of the API. Please visit www.adobe.com for more details.
37 |
38 |
39 |
40 |
41 |
42 | src/main/content/jcr_root
43 |
44 |
45 |
47 | ${basedir}/src/main/content/META-INF
48 | ../vault-work/META-INF
49 |
50 |
51 |
52 | ${basedir}/src/main/content/jcr_root
53 |
54 |
55 | **/.vlt
56 | **/.vltignore
57 | **/.gitignore
58 | **/*.iml
59 | **/.classpath
60 | **/.project
61 | **/.settings
62 | **/.DS_Store
63 | **/target/**
64 | **/pom.xml
65 |
66 |
67 |
68 |
69 |
75 |
76 | maven-resources-plugin
77 |
78 |
79 | true
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | com.day.jcr.vault
88 | content-package-maven-plugin
89 | true
90 |
91 | src/main/content/META-INF/vault/filter.xml
92 | true
93 | true
94 | com.adobe.granite.translation.connector
95 |
96 |
97 | com.adobe.granite.translation.connector
98 | bootstrap-connector.core
99 | /apps/bootstrap-connector/install
100 |
101 |
102 | com.adobe.granite.translation
103 | bootstrap-tms.core
104 | /apps/bootstrap-connector/install
105 |
106 |
107 |
108 |
109 | com.adobe.granite.translation.connector
110 | bootstrap-connector.ui.content
111 | [${project.version},)
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | com.adobe.granite.translation.connector
125 | bootstrap-connector.core
126 | 2.0-SNAPSHOT
127 |
128 |
129 |
130 | com.adobe.aem
131 | aem-sdk-api
132 |
133 |
134 |
135 | javax.jcr
136 | jcr
137 |
138 |
139 |
140 | javax.servlet
141 | servlet-api
142 |
143 |
144 |
145 | com.day.cq.wcm
146 | cq-wcm-taglib
147 |
148 |
149 |
150 | com.adobe.granite.translation
151 | bootstrap-tms.core
152 |
153 |
154 |
155 |
--------------------------------------------------------------------------------
/ui.apps/repository/com/adobe/granite/translation/bootstrap-tms.core/4.0/bootstrap-tms.core-4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/7600a6427561e4062e1b2b4da17aa85ef3dbcb67/ui.apps/repository/com/adobe/granite/translation/bootstrap-tms.core/4.0/bootstrap-tms.core-4.0.jar
--------------------------------------------------------------------------------
/ui.apps/repository/com/adobe/granite/translation/bootstrap-tms.core/4.0/bootstrap-tms.core-4.0.pom:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | com.adobe.granite.translation
6 | bootstrap-tms.core
7 | 4.0
8 | POM was created from install:install-file
9 |
10 |
--------------------------------------------------------------------------------
/ui.apps/repository/com/adobe/granite/translation/bootstrap-tms.core/maven-metadata-local.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.adobe.granite.translation
4 | bootstrap-tms.core
5 |
6 | 4.0
7 |
8 | 4.0
9 |
10 | 20200730102420
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
17 |
18 |
19 |
23 |
24 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-01.png/file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/7600a6427561e4062e1b2b4da17aa85ef3dbcb67/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-01.png/file
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-01.png/file.dir/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-02.png/file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/7600a6427561e4062e1b2b4da17aa85ef3dbcb67/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-02.png/file
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-02.png/file.dir/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-03.png/file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/7600a6427561e4062e1b2b4da17aa85ef3dbcb67/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-03.png/file
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/screenshots/screenshot-03.png/file.dir/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/definition/thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/7600a6427561e4062e1b2b4da17aa85ef3dbcb67/ui.apps/src/main/content/META-INF/vault/definition/thumbnail.png
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/META-INF/vault/settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/clientlibs/aem-bootstrap-connector/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/clientlibs/aem-bootstrap-connector/css.txt:
--------------------------------------------------------------------------------
1 | css/styles.css
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/clientlibs/aem-bootstrap-connector/css/styles.css:
--------------------------------------------------------------------------------
1 | .form-legend {
2 | display: block;
3 | margin: .5rem 0 .625rem 0;
4 | font-family: adobe-clean,Helvetica,Arial,sans-serif;
5 | font-weight: 700;
6 | font-style: normal;
7 | font-size: 1.125rem;
8 | line-height: 1.25rem;
9 | }
10 |
11 | .fieldlabel {
12 | color: #707070;
13 | display: block;
14 | line-height: 1.6875rem;
15 | }
16 |
17 | .inputTextField {
18 | display: block;
19 | width: 100%;
20 | margin: 0 0 .375rem;
21 | box-sizing: border-box;
22 | border: .0625rem solid;
23 | padding: .625rem;
24 | min-width: 6.875rem;
25 | height: 2.375rem;
26 | font-family: adobe-clean,Helvetica,Arial,sans-serif;
27 | font-weight: normal;
28 | font-style: normal;
29 | vertical-align: top;
30 | font-size: .8125rem;
31 | line-height: 1.0625rem;
32 | border-color: #d0d0d0;
33 | background-color: #fff;
34 | color: #323232;
35 | }
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/clientlibs/aem-bootstrap-connector/js.txt:
--------------------------------------------------------------------------------
1 | js/bootstrapConnector.js
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/clientlibs/aem-bootstrap-connector/js/bootstrapConnector.js:
--------------------------------------------------------------------------------
1 | /*
2 | ADOBE CONFIDENTIAL
3 | Copyright 2016 Adobe Systems Incorporated
4 | All Rights Reserved.
5 | NOTICE: All information contained herein is, and remains
6 | the property of Adobe Systems Incorporated and its suppliers,
7 | if any. The intellectual and technical concepts contained
8 | herein are proprietary to Adobe Systems Incorporated and its
9 | suppliers and may be covered by U.S. and Foreign Patents,
10 | patents in process, and are protected by trade secret or copyright law.
11 | Dissemination of this information or reproduction of this material
12 | is strictly forbidden unless prior written permission is obtained
13 | from Adobe Systems Incorporated.
14 | */
15 | (function(document, XSS, $) {
16 |
17 | "use strict";
18 | var subscriptionKeyComponent = ".bootStrapServerID";
19 |
20 | /*
21 | Registering a custom validator before form is submitted via save and close
22 | */
23 | $(window).adaptTo("foundation-registry").register("foundation.validation.validator", {
24 | selector: subscriptionKeyComponent,
25 | validate: function(e) {
26 | return verifySubscriptionKey(e);
27 | }
28 | });
29 |
30 |
31 | function verifySubscriptionKey(e) {
32 | var key = $(subscriptionKeyComponent)[0].value;
33 | // Partners may write their own logic to verify that the key or other identifier is valid via any ajax call to their server
34 | var keyValid = false;
35 | /*
36 | Some code to check if the key is valid
37 | */
38 | keyValid = true;
39 | if (keyValid) {
40 | return "";
41 | } else {
42 | return Granite.I18n.get("Key invalid");
43 | }
44 |
45 | }
46 |
47 | })(document, _g.XSS, Granite.$);
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/clientlibs/aem-bootstrap-connector/js/bootstrapConnector.js.dir/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
8 |
9 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/config/com.day.cq.security.ACLSetup.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/config/org.apache.sling.commons.log.LogManager.factory.config-bootstrap-connector.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/config/org.apache.sling.commons.log.LogManager.factory.writer-bootstrap-connector.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/config/org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-bootstrap.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/templates/bootstrap-connector-servicepage/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
14 |
15 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/templates/bootstrap-connector-servicepage/thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/7600a6427561e4062e1b2b4da17aa85ef3dbcb67/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/templates/bootstrap-connector-servicepage/thumbnail.png
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/templates/forms/description.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | To get a free trial account visit www.adobe.com/bootstrap.html
4 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/templates/forms/editFormWithTabs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/bootstrap-connector/templates/forms/editform.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/settings/cloudconfigs/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/settings/cloudconfigs/translation/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/ui.apps/src/main/content/jcr_root/apps/settings/cloudconfigs/translation/bootstrap-translation/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
25 |
26 |
--------------------------------------------------------------------------------
/ui.content/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | 4.0.0
19 |
20 |
21 |
22 |
23 |
24 | bootstrap-connector
25 | com.adobe.granite.translation.connector
26 | 2.0-SNAPSHOT
27 |
28 |
29 |
30 |
31 |
32 | com.adobe.granite.translation.connector
33 | bootstrap-connector.ui.content
34 | 2.0-SNAPSHOT
35 | content-package
36 | Bootstrap Translation Connector - UI contents
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | org.apache.jackrabbit
48 | filevault-package-maven-plugin
49 | true
50 |
51 | merge_preserve
52 | com.adobe.granite.translation.connector
53 |
54 |
55 |
56 | com.day.jcr.vault
57 | content-package-maven-plugin
58 | true
59 |
60 | true
61 | true
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | javax.jcr
73 | jcr
74 |
75 |
76 |
77 | javax.servlet
78 | servlet-api
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/ui.content/src/main/content/META-INF/vault/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
17 |
18 |
19 |
23 |
24 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/ui.content/src/main/content/META-INF/vault/definition/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/ui.content/src/main/content/META-INF/vault/filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ui.content/src/main/content/META-INF/vault/settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ui.content/src/main/content/jcr_root/home/users/system/bootstrap-service/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ui.content/src/main/content/jcr_root/var/bootstrap-tms/.content.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------