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
<!--/* A Sightly comment, which would be added to the */--> |
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
<% Resource checkboxResource = formResourceManager.getCheckboxFieldResource(resource); %> | |
<li class="field" data-fieldtype="checkbox"> | |
<div class="formbuilder-template-title"><coral-icon icon="select" size="M"></coral-icon><span><%= i18n.get("Checkbox") %></span></div> | |
<script class="field-properties" type="text/x-handlebars-template"> | |
<sling:include resource="<%= checkboxResource %>" | |
resourceType="dam/gui/coral/components/admin/schemaforms/formbuilder/formfields/checkboxfield" /> | |
</script> | |
</li> | |
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
var allCheckbox = $('[data-metatype=checkbox]', $form); | |
allCheckbox.each(function (index, checkbox) { | |
var $checkbox = $(checkbox); | |
if($checkbox.is(":checked")){ | |
$checkbox.attr('value','true'); | |
} | |
// Add false to checkbox if asset is not opened in bulk metadata editor |
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
<dependency> | |
<groupId>org.osgi</groupId> | |
<artifactId>osgi.core</artifactId> | |
<version>6.0.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.osgi</groupId> | |
<artifactId>osgi.cmpn</artifactId> | |
<version>6.0.0</version> |
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
package blog.techrevel.service.impl; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import static org.apache.sling.engine.EngineConstants.*; | |
import org.apache.sling.api.resource.Resource; | |
import org.osgi.service.component.annotations.Component; | |
import org.osgi.framework.Constants; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
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
path=/content/dam | |
p.hits=selective | |
p.properties=jcr:path jcr:content/metadata/dam:sha1 | |
property=jcr:content/metadata/dam:sha1 | |
property.operation=exists | |
p.limit=-1 |
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
<'sling'='http://sling.apache.org/jcr/sling/1.0'> | |
<'nt'='http://www.jcp.org/jcr/nt/1.0'> | |
<'techrevel'='http://www.techrevel.blog'> | |
[sling:Folder] > nt:folder | |
- * (undefined) | |
- * (undefined) multiple | |
+ * (nt:base) = sling:Folder version |
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
package blog.techrevel.listeners; | |
import java.util.List; | |
import org.apache.sling.api.resource.observation.ResourceChange; | |
import org.apache.sling.api.resource.observation.ResourceChangeListener; | |
import org.osgi.service.component.annotations.Component; | |
import org.osgi.service.metatype.annotations.Designate; | |
import org.osgi.service.metatype.annotations.ObjectClassDefinition; | |
import org.osgi.service.metatype.annotations.AttributeDefinition; | |
import org.slf4j.Logger; |
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
<!-- Netcentric ACL Tool --> | |
<dependency> | |
<groupId>biz.netcentric.cq.tools.accesscontroltool</groupId> | |
<artifactId>accesscontroltool-package</artifactId> | |
<type>content-package</type> | |
<version>2.5.3</version> | |
</dependency> | |
<!-- Oak Index for netcentric ACL Tool --> | |
<dependency> | |
<groupId>biz.netcentric.cq.tools.accesscontroltool</groupId> |
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.util.HashMap; | |
import java.util.Map; | |
import org.apache.sling.api.resource.LoginException; | |
import org.apache.sling.api.resource.ResourceResolver; | |
import org.apache.sling.api.resource.ResourceResolverFactory; | |
import org.osgi.service.component.annotations.Component; | |
import org.osgi.service.component.annotations.Reference; | |
import org.osgi.service.event.Event; | |
import org.osgi.service.event.EventConstants; |