I need to understand the flow of control (working) of the 'Publish' tab that is seen on the Admin interface menu bar.
I have a requirement where user searches for an asset, then clicking on my custom tab, the selected assets will be extracted to disk in xml format and a zip file of the assets will be created for archival.
To achieve this, I am trying to understand the 'Export to XML' option. This is available on the click of publish tab of admin interface.
Any help will be appreciated.
I have used the SitesApp.getActiveDocumetn() to get the asset id , asset type and then using REST API, I succeeded in extracting the asset attributes.
Then using java code, I achieved the xml file creation for the selected asset and the further coding was done.