001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface MBMessageFlagLocalService {
043 public com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
044 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
048 long messageFlagId);
049
050 public void deleteMBMessageFlag(long messageFlagId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteMBMessageFlag(
055 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
081 long messageFlagId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getMBMessageFlagsCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
095 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
099 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
100 boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public void addReadFlags(long userId,
104 com.liferay.portlet.messageboards.model.MBThread thread)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public void addQuestionFlag(long messageId)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException;
111
112 public void deleteAnswerFlags(long threadId, long messageId)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public void deleteFlags(long userId)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public void deleteFlags(long messageId, int flag)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 public void deleteQuestionAndAnswerFlags(long threadId)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 public void deleteThreadFlags(long threadId)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
129 long userId, com.liferay.portlet.messageboards.model.MBThread thread)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public boolean hasAnswerFlag(long messageId)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public boolean hasQuestionFlag(long messageId)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public boolean hasReadFlag(long userId,
143 com.liferay.portlet.messageboards.model.MBThread thread)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146 }