Search in sources :

Example 6 with Property

use of com.liferay.portal.kernel.dao.orm.Property in project liferay-ide by liferay.

the class ArtistExportActionableDynamicQuery method addCriteria.

@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
    _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate");
    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(Artist.class.getName());
    Property workflowStatusProperty = PropertyFactoryUtil.forName("status");
    dynamicQuery.add(workflowStatusProperty.in(stagedModelDataHandler.getExportableStatuses()));
}
Also used : Artist(org.liferay.jukebox.model.Artist) Property(com.liferay.portal.kernel.dao.orm.Property)

Example 7 with Property

use of com.liferay.portal.kernel.dao.orm.Property in project liferay-ide by liferay.

the class SongExportActionableDynamicQuery method addCriteria.

@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
    _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate");
    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(Song.class.getName());
    Property workflowStatusProperty = PropertyFactoryUtil.forName("status");
    dynamicQuery.add(workflowStatusProperty.in(stagedModelDataHandler.getExportableStatuses()));
}
Also used : Song(org.liferay.jukebox.model.Song) Property(com.liferay.portal.kernel.dao.orm.Property)

Example 8 with Property

use of com.liferay.portal.kernel.dao.orm.Property in project liferay-ide by liferay.

the class KBArticleExportActionableDynamicQuery method addCriteria.

@Override
protected void addCriteria(DynamicQuery dynamicQuery) {
    _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate");
    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(KBArticle.class.getName());
    Property workflowStatusProperty = PropertyFactoryUtil.forName("status");
    dynamicQuery.add(workflowStatusProperty.in(stagedModelDataHandler.getExportableStatuses()));
}
Also used : KBArticle(com.liferay.knowledgebase.model.KBArticle) Property(com.liferay.portal.kernel.dao.orm.Property)

Aggregations

Property (com.liferay.portal.kernel.dao.orm.Property)8 DynamicQuery (com.liferay.portal.kernel.dao.orm.DynamicQuery)3 KBArticle (com.liferay.knowledgebase.model.KBArticle)2 Conjunction (com.liferay.portal.kernel.dao.orm.Conjunction)2 Criterion (com.liferay.portal.kernel.dao.orm.Criterion)2 Disjunction (com.liferay.portal.kernel.dao.orm.Disjunction)2 Junction (com.liferay.portal.kernel.dao.orm.Junction)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 KBArticleActionableDynamicQuery (com.liferay.knowledgebase.service.persistence.KBArticleActionableDynamicQuery)1 ActionableDynamicQuery (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)1 Document (com.liferay.portal.kernel.search.Document)1 Album (org.liferay.jukebox.model.Album)1 Artist (org.liferay.jukebox.model.Artist)1 Song (org.liferay.jukebox.model.Song)1