List of usage examples for com.liferay.portal.kernel.workflow WorkflowConstants STATUS_ANY
int STATUS_ANY
To view the source code for com.liferay.portal.kernel.workflow WorkflowConstants STATUS_ANY.
Click Source Link
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public List<MBMessage> getCompanyMessages(long companyId, int status, int start, int end, OrderByComparator obc) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.findByCompanyId(companyId, start, end, obc); } else {/* w ww .j a v a 2s . co m*/ return mbMessagePersistence.findByC_S(companyId, status, start, end, obc); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public int getCompanyMessagesCount(long companyId, int status) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.countByCompanyId(companyId); } else {//w w w . j a va 2 s . co m return mbMessagePersistence.countByC_S(companyId, status); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public int getDiscussionMessagesCount(long classNameId, long classPK, int status) throws SystemException { MBDiscussion discussion = mbDiscussionPersistence.fetchByC_C(classNameId, classPK); if (discussion == null) { return 0; }//from www .j a v a2 s . c o m int count = 0; if (status == WorkflowConstants.STATUS_ANY) { count = mbMessagePersistence.countByThreadId(discussion.getThreadId()); } else { count = mbMessagePersistence.countByT_S(discussion.getThreadId(), status); } if (count >= 1) { return count - 1; } else { return 0; } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public List<MBMessage> getGroupMessages(long groupId, int status, int start, int end) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.findByGroupId(groupId, start, end); } else {//from w ww . java2 s. c o m return mbMessagePersistence.findByG_S(groupId, status, start, end); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public List<MBMessage> getGroupMessages(long groupId, int status, int start, int end, OrderByComparator obc) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.findByGroupId(groupId, start, end, obc); } else {/* w w w .j a v a2 s . co m*/ return mbMessagePersistence.findByG_S(groupId, status, start, end, obc); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.findByG_U(groupId, userId, start, end); } else {/*from w ww. jav a 2 s . com*/ return mbMessagePersistence.findByG_U_S(groupId, userId, status, start, end); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public List<MBMessage> getGroupMessages(long groupId, long userId, int status, int start, int end, OrderByComparator obc) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.findByG_U(groupId, userId, start, end, obc); } else {//from w w w . ja v a 2 s .co m return mbMessagePersistence.findByG_U_S(groupId, userId, status, start, end, obc); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public int getGroupMessagesCount(long groupId, int status) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.countByGroupId(groupId); } else {//from w w w.j a va 2 s . c o m return mbMessagePersistence.countByG_S(groupId, status); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public int getGroupMessagesCount(long groupId, long userId, int status) throws SystemException { if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.countByG_U(groupId, userId); } else {// www . j a v a 2 s .c om return mbMessagePersistence.countByG_U_S(groupId, userId, status); } }
From source file:com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl.java
License:Open Source License
public List<MBMessage> getMessages(String className, long classPK, int status) throws SystemException { long classNameId = PortalUtil.getClassNameId(className); if (status == WorkflowConstants.STATUS_ANY) { return mbMessagePersistence.findByC_C(classNameId, classPK); } else {/* w w w .j av a 2s.c o m*/ return mbMessagePersistence.findByC_C_S(classNameId, classPK, status); } }