A Guide to setup and use Plantuml
- JRE: https://adoptopenjdk.net/
- GraphViz: https://graphviz.org/download/
- VSCode IDE: https://code.visualstudio.com/Download
- vs code Plugin: https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
package sample; | |
import java.util.HashMap; | |
import org.springframework.web.client.RestTemplate; | |
public class HelloWorld { | |
public static void main(String args[]) { | |
RestTemplate restTemplate = new RestTemplate(); |
package com.aem.project.core.servlets; | |
import com.adobe.cq.commerce.common.ValueMapDecorator; | |
import com.adobe.granite.ui.components.ds.DataSource; | |
import com.adobe.granite.ui.components.ds.SimpleDataSource; | |
import com.adobe.granite.ui.components.ds.ValueMapResource; | |
import com.day.crx.JcrConstants; | |
import org.apache.commons.collections4.iterators.TransformIterator; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; |
// src: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/206203e4a37e1a24c5558e5fed109ee8686eb82c/ui.apps/src/main/content/jcr_root/apps/acs-commons/touchui-widgets/showhidedialogfields/source/showhidedialogfieldstabs.js | |
/** | |
* Extension to the standard dropdown/select and checkbox component. It enables hidding/unhidding of multiple dialog fields | |
* and dialog tabs based on the selection made in the dropdown/select or on checkbox check or their combination. | |
* | |
* How to use: | |
* - add the empty property acs-cq-dialog-dropdown-checkbox-showhide to the dropdown/select or checkbox element | |
* - add the data attribute acs-cq-dialog-dropdown-checkbox-showhide-target to the dropdown/select or checkbox element, | |
* value should be the selector, usually a specific class name, to find all possible target elements that can be shown/hidden. | |
* - add the target class to each target component that can be shown/hidden |
---Reactor pom (add dependencies) | |
<dependency> | |
<groupId>com.adobe.acs</groupId> | |
<artifactId>acs-aem-commons-content</artifactId> | |
<version>3.2.4</version> | |
<type>content-package</type> | |
<classifier>min</classifier> | |
</dependency> | |
<dependency> |
Plantuml
// src: https://github.com/apache/sling-org-apache-sling-graphql-core/blob/6bcbd14910c76bcee6c32aa118d02d856e5be8ed/src/test/java/org/apache/sling/graphql/core/servlet/GraphQLServletTest.java | |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~ 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 | |
~ |
// src: https://github.com/adobe/aem-core-wcm-components/blob/e696d5d24a0d0fd973d28c5a4b8706487cc146c3/content/src/content/jcr_root/apps/core/wcm/components/commons/editor/clientlibs/panelselect/js/panelselect.js | |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
~ Copyright 2018 Adobe | |
~ | |
~ Licensed 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 | |
~ |
Copy script to AEM groovy console, change parameters and run!
package blog.techrevel.api; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import org.apache.commons.codec.binary.Base64; |
package com.techrevel.dam.core.servlets; | |
import java.io.IOException; | |
import java.util.Dictionary; | |
import javax.servlet.Servlet; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.servlets.HttpConstants; |