use of com.liferay.opensocial.service.persistence.GadgetExportActionableDynamicQuery 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.opensocial.service.persistence.GadgetExportActionableDynamicQuery 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);
}
Aggregations