use of com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery 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.KBArticleExportActionableDynamicQuery in project liferay-ide by liferay.
the class AdminPortletDataHandler method getKBArticleActionableDynamicQuery.
protected ActionableDynamicQuery getKBArticleActionableDynamicQuery(final PortletDataContext portletDataContext) throws Exception {
return new KBArticleExportActionableDynamicQuery(portletDataContext) {
@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
super.addCriteria(dynamicQuery);
OrderFactoryUtil.addOrderByComparator(dynamicQuery, new KBArticleVersionComparator(true));
}
};
}
Aggregations