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.bookmarks.service;
022:
023: /**
024: * <a href="BookmarksEntryLocalServiceUtil.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.bookmarks.service.BookmarksEntryLocalService</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.bookmarks.service.BookmarksEntryLocalServiceFactory</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.bookmarks.service.BookmarksEntryLocalService
047: * @see com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceFactory
048: *
049: */
050: public class BookmarksEntryLocalServiceUtil {
051: public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
052: com.liferay.portlet.bookmarks.model.BookmarksEntry model)
053: throws com.liferay.portal.SystemException {
054: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
055: .getService();
056:
057: return bookmarksEntryLocalService.addBookmarksEntry(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: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
064: .getService();
065:
066: return bookmarksEntryLocalService
067: .dynamicQuery(queryInitializer);
068: }
069:
070: public static java.util.List dynamicQuery(
071: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
072: int begin, int end)
073: throws com.liferay.portal.SystemException {
074: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
075: .getService();
076:
077: return bookmarksEntryLocalService.dynamicQuery(
078: queryInitializer, begin, end);
079: }
080:
081: public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
082: com.liferay.portlet.bookmarks.model.BookmarksEntry model)
083: throws com.liferay.portal.SystemException {
084: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
085: .getService();
086:
087: return bookmarksEntryLocalService.updateBookmarksEntry(model);
088: }
089:
090: public static com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence getBookmarksEntryPersistence() {
091: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
092: .getService();
093:
094: return bookmarksEntryLocalService
095: .getBookmarksEntryPersistence();
096: }
097:
098: public static void setBookmarksEntryPersistence(
099: com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence bookmarksEntryPersistence) {
100: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
101: .getService();
102:
103: bookmarksEntryLocalService
104: .setBookmarksEntryPersistence(bookmarksEntryPersistence);
105: }
106:
107: public static com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder getBookmarksEntryFinder() {
108: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
109: .getService();
110:
111: return bookmarksEntryLocalService.getBookmarksEntryFinder();
112: }
113:
114: public static void setBookmarksEntryFinder(
115: com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder bookmarksEntryFinder) {
116: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
117: .getService();
118:
119: bookmarksEntryLocalService
120: .setBookmarksEntryFinder(bookmarksEntryFinder);
121: }
122:
123: public static com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence getBookmarksFolderPersistence() {
124: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
125: .getService();
126:
127: return bookmarksEntryLocalService
128: .getBookmarksFolderPersistence();
129: }
130:
131: public static void setBookmarksFolderPersistence(
132: com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence bookmarksFolderPersistence) {
133: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
134: .getService();
135:
136: bookmarksEntryLocalService
137: .setBookmarksFolderPersistence(bookmarksFolderPersistence);
138: }
139:
140: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
141: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
142: .getService();
143:
144: return bookmarksEntryLocalService.getResourcePersistence();
145: }
146:
147: public static void setResourcePersistence(
148: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
149: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
150: .getService();
151:
152: bookmarksEntryLocalService
153: .setResourcePersistence(resourcePersistence);
154: }
155:
156: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
157: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
158: .getService();
159:
160: return bookmarksEntryLocalService.getResourceFinder();
161: }
162:
163: public static void setResourceFinder(
164: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
165: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
166: .getService();
167:
168: bookmarksEntryLocalService.setResourceFinder(resourceFinder);
169: }
170:
171: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
172: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
173: .getService();
174:
175: return bookmarksEntryLocalService.getUserPersistence();
176: }
177:
178: public static void setUserPersistence(
179: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
180: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
181: .getService();
182:
183: bookmarksEntryLocalService.setUserPersistence(userPersistence);
184: }
185:
186: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
187: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
188: .getService();
189:
190: return bookmarksEntryLocalService.getUserFinder();
191: }
192:
193: public static void setUserFinder(
194: com.liferay.portal.service.persistence.UserFinder userFinder) {
195: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
196: .getService();
197:
198: bookmarksEntryLocalService.setUserFinder(userFinder);
199: }
200:
201: public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
202: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
203: .getService();
204:
205: return bookmarksEntryLocalService.getTagsAssetPersistence();
206: }
207:
208: public static void setTagsAssetPersistence(
209: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
210: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
211: .getService();
212:
213: bookmarksEntryLocalService
214: .setTagsAssetPersistence(tagsAssetPersistence);
215: }
216:
217: public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
218: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
219: .getService();
220:
221: return bookmarksEntryLocalService.getTagsAssetFinder();
222: }
223:
224: public static void setTagsAssetFinder(
225: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
226: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
227: .getService();
228:
229: bookmarksEntryLocalService.setTagsAssetFinder(tagsAssetFinder);
230: }
231:
232: public static void afterPropertiesSet() {
233: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
234: .getService();
235:
236: bookmarksEntryLocalService.afterPropertiesSet();
237: }
238:
239: public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
240: long userId, long folderId, java.lang.String name,
241: java.lang.String url, java.lang.String comments,
242: java.lang.String[] tagsEntries,
243: boolean addCommunityPermissions, boolean addGuestPermissions)
244: throws com.liferay.portal.PortalException,
245: com.liferay.portal.SystemException {
246: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
247: .getService();
248:
249: return bookmarksEntryLocalService.addEntry(userId, folderId,
250: name, url, comments, tagsEntries,
251: addCommunityPermissions, addGuestPermissions);
252: }
253:
254: public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
255: java.lang.String uuid, long userId, long folderId,
256: java.lang.String name, java.lang.String url,
257: java.lang.String comments, java.lang.String[] tagsEntries,
258: boolean addCommunityPermissions, boolean addGuestPermissions)
259: throws com.liferay.portal.PortalException,
260: com.liferay.portal.SystemException {
261: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
262: .getService();
263:
264: return bookmarksEntryLocalService.addEntry(uuid, userId,
265: folderId, name, url, comments, tagsEntries,
266: addCommunityPermissions, addGuestPermissions);
267: }
268:
269: public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
270: long userId, long folderId, java.lang.String name,
271: java.lang.String url, java.lang.String comments,
272: java.lang.String[] tagsEntries,
273: java.lang.String[] communityPermissions,
274: java.lang.String[] guestPermissions)
275: throws com.liferay.portal.PortalException,
276: com.liferay.portal.SystemException {
277: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
278: .getService();
279:
280: return bookmarksEntryLocalService.addEntry(userId, folderId,
281: name, url, comments, tagsEntries, communityPermissions,
282: guestPermissions);
283: }
284:
285: public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
286: java.lang.String uuid, long userId, long folderId,
287: java.lang.String name, java.lang.String url,
288: java.lang.String comments, java.lang.String[] tagsEntries,
289: java.lang.Boolean addCommunityPermissions,
290: java.lang.Boolean addGuestPermissions,
291: java.lang.String[] communityPermissions,
292: java.lang.String[] guestPermissions)
293: throws com.liferay.portal.PortalException,
294: com.liferay.portal.SystemException {
295: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
296: .getService();
297:
298: return bookmarksEntryLocalService.addEntry(uuid, userId,
299: folderId, name, url, comments, tagsEntries,
300: addCommunityPermissions, addGuestPermissions,
301: communityPermissions, guestPermissions);
302: }
303:
304: public static void addEntryResources(long folderId, long entryId,
305: boolean addCommunityPermissions, boolean addGuestPermissions)
306: throws com.liferay.portal.PortalException,
307: com.liferay.portal.SystemException {
308: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
309: .getService();
310:
311: bookmarksEntryLocalService.addEntryResources(folderId, entryId,
312: addCommunityPermissions, addGuestPermissions);
313: }
314:
315: public static void addEntryResources(
316: com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
317: com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
318: boolean addCommunityPermissions, boolean addGuestPermissions)
319: throws com.liferay.portal.PortalException,
320: com.liferay.portal.SystemException {
321: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
322: .getService();
323:
324: bookmarksEntryLocalService.addEntryResources(folder, entry,
325: addCommunityPermissions, addGuestPermissions);
326: }
327:
328: public static void addEntryResources(long folderId, long entryId,
329: java.lang.String[] communityPermissions,
330: java.lang.String[] guestPermissions)
331: throws com.liferay.portal.PortalException,
332: com.liferay.portal.SystemException {
333: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
334: .getService();
335:
336: bookmarksEntryLocalService.addEntryResources(folderId, entryId,
337: communityPermissions, guestPermissions);
338: }
339:
340: public static void addEntryResources(
341: com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
342: com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
343: java.lang.String[] communityPermissions,
344: java.lang.String[] guestPermissions)
345: throws com.liferay.portal.PortalException,
346: com.liferay.portal.SystemException {
347: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
348: .getService();
349:
350: bookmarksEntryLocalService.addEntryResources(folder, entry,
351: communityPermissions, guestPermissions);
352: }
353:
354: public static void deleteEntries(long folderId)
355: throws com.liferay.portal.PortalException,
356: com.liferay.portal.SystemException {
357: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
358: .getService();
359:
360: bookmarksEntryLocalService.deleteEntries(folderId);
361: }
362:
363: public static void deleteEntry(long entryId)
364: throws com.liferay.portal.PortalException,
365: com.liferay.portal.SystemException {
366: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
367: .getService();
368:
369: bookmarksEntryLocalService.deleteEntry(entryId);
370: }
371:
372: public static void deleteEntry(
373: com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
374: throws com.liferay.portal.PortalException,
375: com.liferay.portal.SystemException {
376: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
377: .getService();
378:
379: bookmarksEntryLocalService.deleteEntry(entry);
380: }
381:
382: public static java.util.List getEntries(long folderId, int begin,
383: int end) throws com.liferay.portal.SystemException {
384: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
385: .getService();
386:
387: return bookmarksEntryLocalService.getEntries(folderId, begin,
388: end);
389: }
390:
391: public static java.util.List getEntries(
392: long folderId,
393: int begin,
394: int end,
395: com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396: throws com.liferay.portal.SystemException {
397: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
398: .getService();
399:
400: return bookmarksEntryLocalService.getEntries(folderId, begin,
401: end, orderByComparator);
402: }
403:
404: public static int getEntriesCount(long folderId)
405: throws com.liferay.portal.SystemException {
406: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
407: .getService();
408:
409: return bookmarksEntryLocalService.getEntriesCount(folderId);
410: }
411:
412: public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
413: long entryId) throws com.liferay.portal.PortalException,
414: com.liferay.portal.SystemException {
415: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
416: .getService();
417:
418: return bookmarksEntryLocalService.getEntry(entryId);
419: }
420:
421: public static int getFoldersEntriesCount(java.util.List folderIds)
422: throws com.liferay.portal.SystemException {
423: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
424: .getService();
425:
426: return bookmarksEntryLocalService
427: .getFoldersEntriesCount(folderIds);
428: }
429:
430: public static java.util.List getGroupEntries(long groupId,
431: int begin, int end)
432: throws com.liferay.portal.SystemException {
433: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
434: .getService();
435:
436: return bookmarksEntryLocalService.getGroupEntries(groupId,
437: begin, end);
438: }
439:
440: public static java.util.List getGroupEntries(long groupId,
441: long userId, int begin, int end)
442: throws com.liferay.portal.SystemException {
443: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
444: .getService();
445:
446: return bookmarksEntryLocalService.getGroupEntries(groupId,
447: userId, begin, end);
448: }
449:
450: public static int getGroupEntriesCount(long groupId)
451: throws com.liferay.portal.SystemException {
452: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
453: .getService();
454:
455: return bookmarksEntryLocalService.getGroupEntriesCount(groupId);
456: }
457:
458: public static int getGroupEntriesCount(long groupId, long userId)
459: throws com.liferay.portal.SystemException {
460: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
461: .getService();
462:
463: return bookmarksEntryLocalService.getGroupEntriesCount(groupId,
464: userId);
465: }
466:
467: public static java.util.List getNoAssetEntries()
468: throws com.liferay.portal.SystemException {
469: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
470: .getService();
471:
472: return bookmarksEntryLocalService.getNoAssetEntries();
473: }
474:
475: public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
476: long entryId) throws com.liferay.portal.PortalException,
477: com.liferay.portal.SystemException {
478: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
479: .getService();
480:
481: return bookmarksEntryLocalService.openEntry(entryId);
482: }
483:
484: public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
485: long userId, long entryId, long folderId,
486: java.lang.String name, java.lang.String url,
487: java.lang.String comments, java.lang.String[] tagsEntries)
488: throws com.liferay.portal.PortalException,
489: com.liferay.portal.SystemException {
490: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
491: .getService();
492:
493: return bookmarksEntryLocalService.updateEntry(userId, entryId,
494: folderId, name, url, comments, tagsEntries);
495: }
496:
497: public static void updateTagsAsset(long userId,
498: com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
499: java.lang.String[] tagsEntries)
500: throws com.liferay.portal.PortalException,
501: com.liferay.portal.SystemException {
502: BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory
503: .getService();
504:
505: bookmarksEntryLocalService.updateTagsAsset(userId, entry,
506: tagsEntries);
507: }
508: }
|