Liferay 7.2 customaization of asset publisher ADT template Edit and Delete

Jamie Sammons, modified 4 Years ago. New Member Posts: 18 Join Date: 7/9/14 Recent Posts

Hi

I have one asset publisher for dynamic contents and configured with my custom template and carried out Delete & Edit action(please see the below custom urls)  formed using FTL for the contents.

Carried out the action from my util class and both functioalities are working fine and I dont know how to call the liferay's deafault success message after the action. I dont know how to call the liferay's default success message after the action. Is any one faced the same and resolved please assit me. Thanks in advance.

assetRenderer = curEntry.getAssetRenderer()
        journalArticle = assetRenderer.getAssetObject()
        GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")
        Group = GroupLocalService.getGroup(curEntry.getGroupId())
        myService =  serviceLocator.findService("com.test.portal.developer.util.service.UtilService")
        org = vzUtilService.getContentField(journalArticle, "Org")
        ppauth = myService.getJournalPortletAuth(request, curEntry.getCompanyId())
        permissionUrl = myService.getPermissionUrl(journalArticle, "/group/guest/asset-publisher-page")
        
        deleteUrl = myService.getDeleteUrl(journalArticle, "/asset-publisher-page")
        
        editUrl = "/group"+Group.friendlyURL+"/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet&p_p_lifecycle=0&p_p_state=normal&"
                + "_com_liferay_journal_web_portlet_JournalPortlet_mvcPath=%2Fedit_article.jsp&_com_liferay_journal_web_portlet_JournalPortlet_groupId="
                + curEntry.getGroupId()
                + "&_com_liferay_journal_web_portlet_JournalPortlet_articleId="
                + journalArticle.getArticleId()
                + "&p_p_auth="+ppauth