Search in sources :

Example 1 with KBTemplateExportActionableDynamicQuery

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();
}
Also used : KBTemplateExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery) KBArticleExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery) KBTemplateExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery) KBArticleExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery) KBCommentExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBCommentExportActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Example 2 with KBTemplateExportActionableDynamicQuery

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);
}
Also used : Element(com.liferay.portal.kernel.xml.Element) KBTemplateExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery) KBTemplateExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery) KBArticleExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery) KBCommentExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBCommentExportActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Aggregations

KBArticleExportActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery)2 KBCommentExportActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBCommentExportActionableDynamicQuery)2 KBTemplateExportActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBTemplateExportActionableDynamicQuery)2 ActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)2 Element (com.liferay.portal.kernel.xml.Element)1