Search in sources :

Example 1 with GadgetExportActionableDynamicQuery

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

Example 2 with GadgetExportActionableDynamicQuery

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

Aggregations

GadgetExportActionableDynamicQuery (com.liferay.opensocial.service.persistence.GadgetExportActionableDynamicQuery)2 ActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)2 Element (com.liferay.portal.kernel.xml.Element)1