use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery 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);
}
use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.
the class ArtistIndexer method reindexEntries.
protected void reindexEntries(long companyId) throws PortalException, SystemException {
final Collection<Document> documents = new ArrayList<Document>();
ActionableDynamicQuery actionableDynamicQuery = new ArtistActionableDynamicQuery() {
@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
}
@Override
protected void performAction(Object object) throws PortalException {
Artist artist = (Artist) object;
Document document = getDocument(artist);
documents.add(document);
}
};
actionableDynamicQuery.setCompanyId(companyId);
actionableDynamicQuery.performActions();
SearchEngineUtil.updateDocuments(getSearchEngineId(), companyId, documents);
}
use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.
the class AdminPortletDataHandler method doPrepareManifestSummary.
@Override
protected void doPrepareManifestSummary(PortletDataContext portletDataContext, PortletPreferences portletPreferences) throws Exception {
ActionableDynamicQuery actionableDynamicQuery = new GadgetExportActionableDynamicQuery(portletDataContext);
actionableDynamicQuery.performCount();
}
use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.
the class AdminPortletDataHandler method doExportData.
@Override
protected String doExportData(final PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception {
Element rootElement = addExportDataRootElement(portletDataContext);
portletDataContext.addPortletPermissions(GadgetPermission.RESOURCE_NAME);
rootElement.addAttribute("group-id", String.valueOf(portletDataContext.getScopeGroupId()));
ActionableDynamicQuery actionableDynamicQuery = new GadgetExportActionableDynamicQuery(portletDataContext);
actionableDynamicQuery.performActions();
return getExportDataRootElementString(rootElement);
}
use of com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery in project liferay-ide by liferay.
the class JukeboxPortletDataHandler method doExportData.
@Override
protected String doExportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception {
Element rootElement = addExportDataRootElement(portletDataContext);
if (portletDataContext.getBooleanParameter(NAMESPACE, "albums")) {
ActionableDynamicQuery albumActionableDynamicQuery = new AlbumExportActionableDynamicQuery(portletDataContext);
albumActionableDynamicQuery.performActions();
}
if (portletDataContext.getBooleanParameter(NAMESPACE, "artists")) {
ActionableDynamicQuery artistActionableDynamicQuery = new ArtistExportActionableDynamicQuery(portletDataContext);
artistActionableDynamicQuery.performActions();
}
return getExportDataRootElementString(rootElement);
}
Aggregations