This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.avionos.aem.assets.cacheablerenditions.api.CacheableRendition; | |
import com.day.cq.dam.api.Asset; | |
// get cacheable rendition from rendition | |
final CacheableRendition cacheableRendition = resourceResolver | |
.getResource("/content/dam/avionos/images/one.png") | |
.adaptTo(Asset.class) | |
.getRendition("cq5dam.thumbnail.48.48.png") | |
.adaptTo(CacheableRendition.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.citytechinc.cq.component.annotations.Component | |
import com.citytechinc.cq.component.annotations.DialogField | |
import com.citytechinc.cq.component.annotations.Option | |
import com.citytechinc.cq.component.annotations.widgets.PathField | |
import com.citytechinc.cq.component.annotations.widgets.Selection | |
import com.citytechinc.cq.component.annotations.widgets.Switch | |
import com.citytechinc.cq.component.annotations.widgets.TextField | |
import com.icfolson.aem.library.core.components.AbstractComponent | |
import com.icfolson.aem.library.core.constants.PathConstants | |
import com.icfolson.aem.multicompositeaddon.widget.MultiCompositeField |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" fileName="_cq_dialog.xml" jcr:primaryType="nt:unstructured" jcr:title="Header" mode="edit" sling:resourceType="cq/gui/components/authoring/dialog"> | |
<content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> | |
<layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/tabs"/> | |
<items jcr:primaryType="nt:unstructured"> | |
<SecondaryNavigation xmlns:cq="http://www.day.com/jcr/cq/1.0" cq:showOnCreate="{Boolean}true" jcr:primaryType="nt:unstructured" jcr:title="Secondary Navigation" sling:resourceType="granite/ui/components/foundation/section"> | |
<layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/> | |
<items jcr:primaryType="nt:unstructured"> | |
<column jcr:primaryType="nt:unstructured" sling:resou |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Dialog" | |
xtype="dialog"> | |
<listeners jcr:primaryType="nt:unstructured" | |
loadcontent="function(dialog) { | |
// call servlet or perform arbitrary javascript functions | |
dialog.getField('./operator').disable(); | |
}" /> | |
<items jcr:primaryType="cq:WidgetCollection"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<parent> | |
<groupId>com.citytechinc.cqlibrary</groupId> | |
<artifactId>cq5-library</artifactId> | |
<version>4.0.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" | |
jcr:primaryType="cq:Dialog" xtype="dialog"> | |
<items jcr:primaryType="cq:WidgetCollection"> | |
<tabs jcr:primaryType="cq:TabPanel"> | |
<items jcr:primaryType="cq:WidgetCollection"> | |
<first jcr:primaryType="nt:unstructured" title="Form" xtype="panel"> | |
<items jcr:primaryType="cq:WidgetCollection"> | |
<name jcr:primaryType="cq:Widget" fieldLabel="Name" name="./name" xtype="textfield" allowBlank="{Boolean}false" | |
validator="function(value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.Collections; | |
import javax.servlet.ServletException; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.servlets.SlingSafeMethodsServlet; | |
import org.codehaus.jackson.JsonFactory; | |
import org.codehaus.jackson.JsonGenerationException; |