use of com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery in project liferay-ide by liferay.
the class AdminPortletDataHandler method doPrepareManifestSummary.
@Override
protected void doPrepareManifestSummary(PortletDataContext portletDataContext, PortletPreferences portletPreferences) throws Exception {
ActionableDynamicQuery kbArticleActionableDynamicQuery = new KBArticleExportActionableDynamicQuery(portletDataContext);
kbArticleActionableDynamicQuery.performCount();
ActionableDynamicQuery kbTemplateActionableDynamicQuery = new KBTemplateExportActionableDynamicQuery(portletDataContext);
kbTemplateActionableDynamicQuery.performCount();
ActionableDynamicQuery kbCommentActionableDynamicQuery = getKBCommentActionableDynamicQuery(portletDataContext);
kbCommentActionableDynamicQuery.performCount();
}
use of com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery in project liferay-ide by liferay.
the class AdminPortletDataHandler method doExportData.
@Override
protected String doExportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception {
portletDataContext.addPortletPermissions(RESOURCE_NAME);
Element rootElement = addExportDataRootElement(portletDataContext);
rootElement.addAttribute("group-id", String.valueOf(portletDataContext.getScopeGroupId()));
ActionableDynamicQuery kbArticleActionableDynamicQuery = getKBArticleActionableDynamicQuery(portletDataContext);
kbArticleActionableDynamicQuery.performActions();
ActionableDynamicQuery kbTemplateActionableDynamicQuery = new KBTemplateExportActionableDynamicQuery(portletDataContext);
kbTemplateActionableDynamicQuery.performActions();
ActionableDynamicQuery kbCommentActionableDynamicQuery = getKBCommentActionableDynamicQuery(portletDataContext);
kbCommentActionableDynamicQuery.performActions();
return getExportDataRootElementString(rootElement);
}
Aggregations