Search in sources :

Example 1 with KBArticleExportActionableDynamicQuery

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();
}
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 KBArticleExportActionableDynamicQuery

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));
        }
    };
}
Also used : KBArticleVersionComparator(com.liferay.knowledgebase.util.comparator.KBArticleVersionComparator) DynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery) 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) KBArticleExportActionableDynamicQuery(com.liferay.knowledgebase.service.persistence.KBArticleExportActionableDynamicQuery)

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 KBArticleVersionComparator (com.liferay.knowledgebase.util.comparator.KBArticleVersionComparator)1 DynamicQuery (com.liferay.portal.kernel.dao.orm.DynamicQuery)1