SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"
All pages below content path
const puppeteer = require('puppeteer'); | |
const qs = require('query-string'); | |
const fs = require('fs'); | |
const util = require('util'); | |
const readline = require('readline-sync'); | |
const viewport = { | |
width:1500, | |
height: 1000, | |
deviceScaleFactor: 1, |
// Before start, select galaxy frame in the chrome development tools | |
async function selectTarget(button, name) { | |
console.log("Button will be clicked: ", button) | |
await button.click(); // to open dropdown | |
var item = await [].slice.call(button.nextElementSibling.querySelectorAll('li')).filter(el => el.textContent == name).pop(); | |
console.log("Item will be clicked: ", item) | |
await item.click(); | |
} |
/*! mmapi v1.4 Copyright 2006-2015 Maxymiser Inc */ | |
/*v1.4.15.64764*/ | |
/*Please do not modify this file except configuration section at the bottom.*/ | |
(function(a,D){function K(b){this.enableUtility=function(a){var d=b.getParam("un",b.baseStorage.storeStrategy.persistent)||"";(new RegExp("(^|,)"+a+"($|,)")).test(d)||(d=d.split(","),d.push(a),b.setParam("un",d.join(",").replace(/(^,)|(,$)/g,""),b.baseStorage.storeStrategy.persistent));return this};this.disableUtility=function(a){var d=b.getParam("un",b.baseStorage.storeStrategy.persistent)||"";(new RegExp("(^|,)"+a+"($|,)")).test(d)&&(d=d.replace(new RegExp("(^|,)"+a+"($|,)","gi"),",").replace(/(^,)|(,$)/g, | |
""),b.setParam("un",d,b.baseStorage.storeStrategy.persistent));return this};this.enable=function(){b.enable();return this};this.disable=function(){b.disable();return this};this.getConfig=function(){return{storageType:b.storageType,cprefix:b.cprefix,domain:b.domain,baseContentUrl:b.baseContentUrl,cookie_domain:b.cookie_domain,srv:b.srv,async:b.async,beforeInit |
SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"
All pages below content path
Class | Package |
---|---|
CookieUtil | com.adobe.cq.commerce.common.CookieUtil |
FrameworkContentExporterUtils | com.adobe.cq.mobile.angular.data.util.FrameworkContentExporterUtils |
IndexerUtil | com.adobe.cq.searchcollections.lucene.IndexerUtil |
BlogMetadataSearchUtil | com.adobe.cq.social.blog.BlogMetadataSearchUtil |
BlogUtil | com.adobe.cq.social.blog.BlogUtil |
CalendarUtil |
package removeDotDir; | |
import java.io.File; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
public class Main { | |
public static final boolean DELETE = true; | |
public static final String PATH_NAME = "C:\\Users\\daehwan\\git\\mypackage\\ui.apps\\src\\main\\content\\jcr_root"; |
final int READ=0, MODIFY=1, CREATE=2, DELETE=3, REPLICATE=4; | |
String sitePath = "/content/mypage"; | |
boolean siteAcl = false; | |
if (jcrSession.nodeExists(sitePath)){ | |
BitSet bits = new BitSet(5); | |
bits.set(READ); | |
bits.set(MODIFY); | |
bits.set(CREATE); | |
bits.set(DELETE); |
//in servlet | |
response.setContentType("text/html"); | |
response.setCharacterEncoding("UTF-8"); | |
// get changelog | |
changes.insert(0, "<pre>"); | |
changes.append("</pre>"); | |
setProperty(PN_CHANGE_LOG, changes.toString()); |
var intervalObj = { | |
id: 0, | |
start: function (){ | |
var inprogress = $(".inprogress").text("Wait"); | |
var intervalId = 0; | |
intervalId = setInterval(function(){ | |
var text = inprogress.text(); | |
if (text.length < 50) { |