Search in sources :

Example 1 with AlbumExportActionableDynamicQuery

use of org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery 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);
}
Also used : Element(com.liferay.portal.kernel.xml.Element) AlbumExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery) ArtistExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.ArtistExportActionableDynamicQuery) AlbumExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery) ArtistExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.ArtistExportActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Example 2 with AlbumExportActionableDynamicQuery

use of org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery in project liferay-ide by liferay.

the class JukeboxPortletDataHandler method doPrepareManifestSummary.

@Override
protected void doPrepareManifestSummary(PortletDataContext portletDataContext, PortletPreferences portletPreferences) throws Exception {
    ActionableDynamicQuery albumActionableDynamicQuery = new AlbumExportActionableDynamicQuery(portletDataContext);
    albumActionableDynamicQuery.performCount();
    ActionableDynamicQuery artistActionableDynamicQuery = new ArtistExportActionableDynamicQuery(portletDataContext);
    artistActionableDynamicQuery.performCount();
}
Also used : AlbumExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery) ArtistExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.ArtistExportActionableDynamicQuery) AlbumExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery) ArtistExportActionableDynamicQuery(org.liferay.jukebox.service.persistence.ArtistExportActionableDynamicQuery) ActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)

Aggregations

ActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)2 AlbumExportActionableDynamicQuery (org.liferay.jukebox.service.persistence.AlbumExportActionableDynamicQuery)2 ArtistExportActionableDynamicQuery (org.liferay.jukebox.service.persistence.ArtistExportActionableDynamicQuery)2 Element (com.liferay.portal.kernel.xml.Element)1