Custum Listener
Hello,
I have a static file named “SiteMap.xml”. When I publish this file, I want to create a Listener that intercept the publish job, change the content of the file (with a function that I created) and then publish it.
So I have some questions:
• How can I intercept the publish job of this file?
• Which function allow me to get the static file?
• In my Listener Java class, the event has to be an instanceOf what?
• In the configConsole, which event should I modify to add my Listener class?
PS: the function that I created Is going to get the channels of a site, some channel’s ContentAssociations and their ManagedObject, so my listener should be on the Management Stage so that I can get all these information ,am I correct?
Thanks in advance for your response and Happy New Year !!
Best regards
Malek
Comments
-
Do you want to Change the XML before your publish?
Or
You need to change the XML after it is published to delivery stage.
In either case you should not be modifying the xml outside of persistence events. Also static file deployment can be extended on the delivery da side provided da has subscribed for static files. Same can be done via custom shell script.
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 181 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories