How to build a package with last modified content | Community
Skip to main content
evgenyb81780887
Level 2
Dec 1, 2018 9:41 PM UTC
Solved

How to build a package with last modified content

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.
joerghoh
joerghohAccepted solution
Employee
Dec 2, 2018 7:10 PM UTC

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

joerghoh
Employee
Dec 3, 2018 12:24 PM UTC

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

Translate
evgenyb81780887
Level 2
Dec 2, 2018 8:04 PM UTC

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

Translate
joerghoh
joerghohAccepted solution
Employee
Dec 2, 2018 7:10 PM UTC

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

Translate
evgenyb81780887
Level 2
Dec 2, 2018 6:41 PM UTC

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

Translate
joerghoh
Employee
Dec 2, 2018 11:40 AM UTC

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

Translate
arunpatidar
New Participant
Dec 2, 2018 7:52 AM UTC