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
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories