How to build a package with last modified content | Community
Skip to main content
evgenyb81780887
Level 2
December 1, 2018
Solved

How to build a package with last modified content

  • December 1, 2018
  • 6 replies
  • 1979 views

Hello everyone is there a way how I can build package only with files and folders which were "last modified"? is it possible to use regular expression?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Well, technically you can build the content package definition just using the HTTP interface of AEM. But that comes with a  lot of overhead and probably isn't very nice to build. I would recommend the logic into a bundle (probably using Java) and  then running everything from inside AEM.

Jörg

6 replies

arunpatidar
Community Advisor
Community Advisor
December 2, 2018
joerghoh
Adobe Employee
Adobe Employee
December 2, 2018

There is no standard function or API available for this specific usecase, you have to implement it yourself; Arun already provided a link which gives some hints how the standard APIs can be used (not exactly covering your usecase, but you use it to understand the API).

Jörg

evgenyb81780887
Level 2
December 2, 2018

I use Python for this task however I know that AEM doesn't support python

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
December 2, 2018

Well, technically you can build the content package definition just using the HTTP interface of AEM. But that comes with a  lot of overhead and probably isn't very nice to build. I would recommend the logic into a bundle (probably using Java) and  then running everything from inside AEM.

Jörg

evgenyb81780887
Level 2
December 2, 2018

Well, the problem that I don't know Java and I am not familiar with AEM. My question is if I can find modified content cuz I don't see that AEM marks it somehow , I observe jcr:created but I don't see  modified

joerghoh
Adobe Employee
Adobe Employee
December 3, 2018

there should be a "jcr:lastModified" property available, which is also exposed with the default JSON rendition (if not overlayed).