Skip to content

nateyolles/aem-sling-pipes-layouts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AEM Sling Pipes Configurations/Layouts/Recipes

This project contains Apache Sling Pipes configurations for Adobe Experience Manager. These configurations could potentially be useful for an AEM project. Hopefully they'll at least be helpful examples of what can be accomplished with Sling Pipes.

Pipe Configurations

Delete .DS_Store files

Delete all macOS/OS X .DS_Store and ._.DS_Store files from the /content folder which may have been added through WebDAV or another process:

Currently works on AEM 6.3 but not AEM 6.2

curl -u admin:admin -X POST http://localhost:4502/etc/pipes/content/deleteDsStore.json

List pages missing jcr:content

Get a list of Pages from /content that are missing the jcr:content child resource:

curl -u admin:admin -F size=-1 http://localhost:4502/etc/pipes/content/getPagesWithoutPageContent.json

Delete old completed workflows

Delete completed workflows older than a provided date:

curl -u admin:admin -F "bindings={date:'2016-07-04'}" http://localhost:4502/etc/pipes/workflow/instances/deleteOlderThan.json

Turn off all workflow launchers

curl -u admin:admin -X POST http://localhost:4502/etc/pipes/workflow/launchers/toggleOff.json

Turn on workflow launchers

curl -u admin:admin -X POST http://localhost:4502/etc/pipes/workflow/lauchers/toggleOn.json

Turn off all replication agents

Currently works on AEM 6.2 but not AEM 6.3

curl -u admin:admin -X POST http://localhost:4502/etc/pipes/replication/agents/toggleOff.json

Turn on replication agents

Currently works on AEM 6.2 but not AEM 6.3

curl -u admin:admin -X POST http://localhost:4502/etc/pipes/replication/agents/toggleOn.json

More to come...

Install Dependencies

Sling Pipes

Download Sling Pipes: org.apache.sling.pipes-0.0.10.jar.

Sling Query

Download Sling Query: org.apache.sling.query-3.0.0.jar.

Install

Install the downloaded JAR files into your running AEM instance: http://localhost:4502/system/console/bundles.

How to build

To build all the modules run in the project root directory the following command with Maven 3:

mvn clean install

If you have a running AEM instance you can build and package the whole project and deploy into AEM with

mvn clean install -PautoInstallPackage

Or to deploy it to a publish instance, run

mvn clean install -PautoInstallPackagePublish

Or alternatively

mvn clean install -PautoInstallPackage -Daem.port=4503

Maven settings

The project comes with the auto-public repository configured. To setup the repository in your Maven settings, refer to:

http://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html

Releases

No releases published

Packages

No packages published