001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.messageboards.service;
022:
023: /**
024: * <a href="MBMessageFlagLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.messageboards.service.MBMessageFlagLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.messageboards.service.MBMessageFlagLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.messageboards.service.MBMessageFlagLocalService
047: * @see com.liferay.portlet.messageboards.service.MBMessageFlagLocalServiceFactory
048: *
049: */
050: public class MBMessageFlagLocalServiceUtil {
051: public static com.liferay.portlet.messageboards.model.MBMessageFlag addMBMessageFlag(
052: com.liferay.portlet.messageboards.model.MBMessageFlag model)
053: throws com.liferay.portal.SystemException {
054: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
055: .getService();
056:
057: return mbMessageFlagLocalService.addMBMessageFlag(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
064: .getService();
065:
066: return mbMessageFlagLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
074: .getService();
075:
076: return mbMessageFlagLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.messageboards.model.MBMessageFlag updateMBMessageFlag(
081: com.liferay.portlet.messageboards.model.MBMessageFlag model)
082: throws com.liferay.portal.SystemException {
083: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
084: .getService();
085:
086: return mbMessageFlagLocalService.updateMBMessageFlag(model);
087: }
088:
089: public static com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence() {
090: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
091: .getService();
092:
093: return mbMessageFlagLocalService.getMBBanPersistence();
094: }
095:
096: public static void setMBBanPersistence(
097: com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence) {
098: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
099: .getService();
100:
101: mbMessageFlagLocalService.setMBBanPersistence(mbBanPersistence);
102: }
103:
104: public static com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence() {
105: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
106: .getService();
107:
108: return mbMessageFlagLocalService.getMBCategoryPersistence();
109: }
110:
111: public static void setMBCategoryPersistence(
112: com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence) {
113: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
114: .getService();
115:
116: mbMessageFlagLocalService
117: .setMBCategoryPersistence(mbCategoryPersistence);
118: }
119:
120: public static com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder() {
121: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
122: .getService();
123:
124: return mbMessageFlagLocalService.getMBCategoryFinder();
125: }
126:
127: public static void setMBCategoryFinder(
128: com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder) {
129: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
130: .getService();
131:
132: mbMessageFlagLocalService.setMBCategoryFinder(mbCategoryFinder);
133: }
134:
135: public static com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence() {
136: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
137: .getService();
138:
139: return mbMessageFlagLocalService.getMBDiscussionPersistence();
140: }
141:
142: public static void setMBDiscussionPersistence(
143: com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence) {
144: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
145: .getService();
146:
147: mbMessageFlagLocalService
148: .setMBDiscussionPersistence(mbDiscussionPersistence);
149: }
150:
151: public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
152: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
153: .getService();
154:
155: return mbMessageFlagLocalService.getMBMessagePersistence();
156: }
157:
158: public static void setMBMessagePersistence(
159: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
160: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
161: .getService();
162:
163: mbMessageFlagLocalService
164: .setMBMessagePersistence(mbMessagePersistence);
165: }
166:
167: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
168: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
169: .getService();
170:
171: return mbMessageFlagLocalService.getMBMessageFinder();
172: }
173:
174: public static void setMBMessageFinder(
175: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
176: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
177: .getService();
178:
179: mbMessageFlagLocalService.setMBMessageFinder(mbMessageFinder);
180: }
181:
182: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence() {
183: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
184: .getService();
185:
186: return mbMessageFlagLocalService.getMBMessageFlagPersistence();
187: }
188:
189: public static void setMBMessageFlagPersistence(
190: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence) {
191: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
192: .getService();
193:
194: mbMessageFlagLocalService
195: .setMBMessageFlagPersistence(mbMessageFlagPersistence);
196: }
197:
198: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder() {
199: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
200: .getService();
201:
202: return mbMessageFlagLocalService.getMBMessageFlagFinder();
203: }
204:
205: public static void setMBMessageFlagFinder(
206: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder) {
207: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
208: .getService();
209:
210: mbMessageFlagLocalService
211: .setMBMessageFlagFinder(mbMessageFlagFinder);
212: }
213:
214: public static com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence() {
215: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
216: .getService();
217:
218: return mbMessageFlagLocalService.getMBStatsUserPersistence();
219: }
220:
221: public static void setMBStatsUserPersistence(
222: com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence) {
223: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
224: .getService();
225:
226: mbMessageFlagLocalService
227: .setMBStatsUserPersistence(mbStatsUserPersistence);
228: }
229:
230: public static com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence() {
231: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
232: .getService();
233:
234: return mbMessageFlagLocalService.getMBThreadPersistence();
235: }
236:
237: public static void setMBThreadPersistence(
238: com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence) {
239: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
240: .getService();
241:
242: mbMessageFlagLocalService
243: .setMBThreadPersistence(mbThreadPersistence);
244: }
245:
246: public static com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder() {
247: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
248: .getService();
249:
250: return mbMessageFlagLocalService.getMBThreadFinder();
251: }
252:
253: public static void setMBThreadFinder(
254: com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder) {
255: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
256: .getService();
257:
258: mbMessageFlagLocalService.setMBThreadFinder(mbThreadFinder);
259: }
260:
261: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
262: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
263: .getService();
264:
265: return mbMessageFlagLocalService.getUserPersistence();
266: }
267:
268: public static void setUserPersistence(
269: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
270: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
271: .getService();
272:
273: mbMessageFlagLocalService.setUserPersistence(userPersistence);
274: }
275:
276: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
277: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
278: .getService();
279:
280: return mbMessageFlagLocalService.getUserFinder();
281: }
282:
283: public static void setUserFinder(
284: com.liferay.portal.service.persistence.UserFinder userFinder) {
285: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
286: .getService();
287:
288: mbMessageFlagLocalService.setUserFinder(userFinder);
289: }
290:
291: public static void afterPropertiesSet() {
292: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
293: .getService();
294:
295: mbMessageFlagLocalService.afterPropertiesSet();
296: }
297:
298: public static void addReadFlags(long userId, java.util.List messages)
299: throws com.liferay.portal.PortalException,
300: com.liferay.portal.SystemException {
301: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
302: .getService();
303:
304: mbMessageFlagLocalService.addReadFlags(userId, messages);
305: }
306:
307: public static void deleteFlags(long userId)
308: throws com.liferay.portal.SystemException {
309: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
310: .getService();
311:
312: mbMessageFlagLocalService.deleteFlags(userId);
313: }
314:
315: public static boolean hasReadFlag(long userId, long messageId)
316: throws com.liferay.portal.PortalException,
317: com.liferay.portal.SystemException {
318: MBMessageFlagLocalService mbMessageFlagLocalService = MBMessageFlagLocalServiceFactory
319: .getService();
320:
321: return mbMessageFlagLocalService.hasReadFlag(userId, messageId);
322: }
323: }
|