This file contains hidden or 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
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
Install a bundle | |
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F | |
bundlefile=@"name of jar.jar" http://localhost:4505/system/console/bundles | |
Build a bundle | |
curl -u admin:admin -F bundleHome=/apps/centrica/bundles/name of bundle -F | |
descriptor=/apps/centrica/bundles/com.centrica.cq.wcm.core-bundle/name_of_bundle.bnd |
This file contains hidden or 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
// In a Firestore standard example, we quickly create a 'xmas tree' of nested stuff | |
// We use Promises directly: get().then(callback) and use snapshot.forEach() to iterate | |
let campaignsRef = db.collection('campaigns'); | |
let activeCampaigns = campaignsRef.where('active', '==', true).select().get() | |
.then(snapshot => { | |
snapshot.forEach(campaign => { | |
console.log(campaign.id); | |
let allTasks = campaignsRef.doc(campaign.id).collection('tasks').get().then( | |
snapshot => { | |
snapshot.forEach(task => { |
This file contains hidden or 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 apps.clientlib_async.sightly.templates; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.ArrayList; | |
import javax.script.Bindings; |
This file contains hidden or 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 org.apache.jackrabbit.oak.jcr; | |
import java.util.concurrent.Executors; | |
import javax.jcr.Repository; | |
import javax.jcr.RepositoryException; | |
import javax.jcr.Session; | |
import javax.jcr.SimpleCredentials; | |
import org.apache.jackrabbit.oak.api.CommitFailedException; |
This file contains hidden or 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 com.aem.workflowstep; | |
import com.adobe.granite.workflow.WorkflowException; | |
import com.adobe.granite.workflow.WorkflowSession; | |
import com.adobe.granite.workflow.exec.WorkItem; | |
import com.adobe.granite.workflow.exec.WorkflowData; | |
import com.adobe.granite.workflow.exec.WorkflowProcess; | |
import com.adobe.granite.workflow.metadata.MetaDataMap; | |
import org.osgi.framework.Constants; | |
import org.osgi.service.component.annotations.Component; |
This file contains hidden or 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 postURL = "/rest/services/[Project]/RenderServices/renderXDPMultiple:1.0"; | |
guideBridge.getDataXML({ | |
success : function (guideResultObject) { | |
var xmlDataAsString = guideResultObject.data; | |
console.log(xmlDataAsString); | |
parser = new DOMParser(); | |
xmlDoc = parser.parseFromString(xmlDataAsString,"text/xml"); | |
afBoundData = xmlDoc.getElementsByTagName("FORM"); //This must be equal to your root element node | |
var oSerializer = new XMLSerializer(); |
This file contains hidden or 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
if(this.value){ | |
ValidateSSN(this.value); | |
} | |
function ValidateSSN(ssn) | |
{ | |
if (/^\d{3}-\d{2}-\d{4}$/.test(ssn)) | |
{ | |
return (true); | |
} |
This file contains hidden or 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
if(searchFilter.value){ | |
var filteredList = dropdownValues.filter(checkSearch); | |
filteredList; | |
} else { | |
dropdownValues; | |
} | |
function checkSearch(dropdownValue) { | |
var searchValue = searchFilter.value; | |
return valueIncludes(dropdownValue.toUpperCase(),searchValue.toUpperCase()); |
This file contains hidden or 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 component = attachmentA; // Field whose value has changed | |
var fileItems = $('#'+component.parent.id).find(".guide-fu-fileItem"); | |
for (i = 0;i<fileItems.length;i++) { | |
var filename = $(fileItems[i]).find(".guide-fu-fileName").text(); | |
//check whether it is previously attached file or a newly attached one | |
console.log("filename: "+ filename); | |
if(filename!="helloworld.pdf"){ | |
alert("You must correct your file name before submitting"); |
This file contains hidden or 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
div[data-mandatory*="true"] .guideFieldLabel label::after { | |
content: "*"; | |
color: red; | |
} |
NewerOlder