1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class MBMessageFlagLocalServiceUtil {
40 public static com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
41 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
42 throws com.liferay.portal.SystemException {
43 return getService().addMBMessageFlag(mbMessageFlag);
44 }
45
46 public static com.liferay.portlet.messageboards.model.MBMessageFlag createMBMessageFlag(
47 long messageFlagId) {
48 return getService().createMBMessageFlag(messageFlagId);
49 }
50
51 public static void deleteMBMessageFlag(long messageFlagId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteMBMessageFlag(messageFlagId);
55 }
56
57 public static void deleteMBMessageFlag(
58 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
59 throws com.liferay.portal.SystemException {
60 getService().deleteMBMessageFlag(mbMessageFlag);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.messageboards.model.MBMessageFlag getMBMessageFlag(
91 long messageFlagId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getMBMessageFlag(messageFlagId);
95 }
96
97 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> getMBMessageFlags(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getMBMessageFlags(start, end);
100 }
101
102 public static int getMBMessageFlagsCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getMBMessageFlagsCount();
105 }
106
107 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
108 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
109 throws com.liferay.portal.SystemException {
110 return getService().updateMBMessageFlag(mbMessageFlag);
111 }
112
113 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
114 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateMBMessageFlag(mbMessageFlag, merge);
117 }
118
119 public static void addQuestionFlag(long messageId)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 getService().addQuestionFlag(messageId);
123 }
124
125 public static void addReadFlags(long userId,
126 com.liferay.portlet.messageboards.model.MBThread thread)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 getService().addReadFlags(userId, thread);
130 }
131
132 public static void deleteFlags(long userId)
133 throws com.liferay.portal.SystemException {
134 getService().deleteFlags(userId);
135 }
136
137 public static void deleteFlags(long messageId, int flag)
138 throws com.liferay.portal.SystemException {
139 getService().deleteFlags(messageId, flag);
140 }
141
142 public static void deleteQuestionAndAnswerFlags(long threadId)
143 throws com.liferay.portal.SystemException {
144 getService().deleteQuestionAndAnswerFlags(threadId);
145 }
146
147 public static void deleteThreadFlags(long threadId)
148 throws com.liferay.portal.SystemException {
149 getService().deleteThreadFlags(threadId);
150 }
151
152 public static com.liferay.portlet.messageboards.model.MBMessageFlag getReadFlag(
153 long userId, com.liferay.portlet.messageboards.model.MBThread thread)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService().getReadFlag(userId, thread);
157 }
158
159 public static boolean hasAnswerFlag(long messageId)
160 throws com.liferay.portal.SystemException {
161 return getService().hasAnswerFlag(messageId);
162 }
163
164 public static boolean hasQuestionFlag(long messageId)
165 throws com.liferay.portal.SystemException {
166 return getService().hasQuestionFlag(messageId);
167 }
168
169 public static boolean hasReadFlag(long userId,
170 com.liferay.portlet.messageboards.model.MBThread thread)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException {
173 return getService().hasReadFlag(userId, thread);
174 }
175
176 public static MBMessageFlagLocalService getService() {
177 if (_service == null) {
178 _service = (MBMessageFlagLocalService)PortalBeanLocatorUtil.locate(MBMessageFlagLocalService.class.getName());
179 }
180
181 return _service;
182 }
183
184 public void setService(MBMessageFlagLocalService service) {
185 _service = service;
186 }
187
188 private static MBMessageFlagLocalService _service;
189 }