내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

A Simple Example of Sling Pipes in AEM | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

A Simple Example of Sling Pipes in AEM by Anurag Chaudhary

Abstract

With Sling Pipes it's very easy to update the AEM content. It is a tool for executing CURD operations over resources in AEM repository. Hope this will be helpful.

Plumber is OSGi service and it has newPipe method in which we need to pass resourceResolver. After that we can call several pipes or methods to achieve our objective. Some of them are-

echo(path) - to retrieve the root resource of the path.

write(config) - to write/update properties of a resource.

run() - to execute the code.



Use case: To update property of a node using Sling Pipe OSGi service.



Dependencies required-

1. Sling Query (org.apache.sling.query-4.0.0)-

Maven Repository: org.apache.sling » org.apache.sling.query » 4.0.0 (mvnrepository.com)

2, Sling Pipes (org.apache.sling.pipes-3.1.0)-

Maven Repository: org.apache.sling » org.apache.sling.pipes » 3.1.0 (mvnrepository.com)

Either install the bundle of respective dependency in console or add them in the project's pom.xml

Read Full Blog

A Simple Example of Sling Pipes in AEM

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

0 답변 개