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="BookmarksFolderLocalServiceUtil.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.BookmarksFolderLocalService</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.BookmarksFolderLocalServiceFactory</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.BookmarksFolderLocalService
047: * @see com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceFactory
048: *
049: */
050: public class BookmarksFolderLocalServiceUtil {
051: public static com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
052: com.liferay.portlet.bookmarks.model.BookmarksFolder model)
053: throws com.liferay.portal.SystemException {
054: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
055: .getService();
056:
057: return bookmarksFolderLocalService.addBookmarksFolder(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: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
064: .getService();
065:
066: return bookmarksFolderLocalService
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: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
075: .getService();
076:
077: return bookmarksFolderLocalService.dynamicQuery(
078: queryInitializer, begin, end);
079: }
080:
081: public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
082: com.liferay.portlet.bookmarks.model.BookmarksFolder model)
083: throws com.liferay.portal.SystemException {
084: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
085: .getService();
086:
087: return bookmarksFolderLocalService.updateBookmarksFolder(model);
088: }
089:
090: public static com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence getBookmarksEntryPersistence() {
091: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
092: .getService();
093:
094: return bookmarksFolderLocalService
095: .getBookmarksEntryPersistence();
096: }
097:
098: public static void setBookmarksEntryPersistence(
099: com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence bookmarksEntryPersistence) {
100: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
101: .getService();
102:
103: bookmarksFolderLocalService
104: .setBookmarksEntryPersistence(bookmarksEntryPersistence);
105: }
106:
107: public static com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder getBookmarksEntryFinder() {
108: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
109: .getService();
110:
111: return bookmarksFolderLocalService.getBookmarksEntryFinder();
112: }
113:
114: public static void setBookmarksEntryFinder(
115: com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder bookmarksEntryFinder) {
116: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
117: .getService();
118:
119: bookmarksFolderLocalService
120: .setBookmarksEntryFinder(bookmarksEntryFinder);
121: }
122:
123: public static com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence getBookmarksFolderPersistence() {
124: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
125: .getService();
126:
127: return bookmarksFolderLocalService
128: .getBookmarksFolderPersistence();
129: }
130:
131: public static void setBookmarksFolderPersistence(
132: com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence bookmarksFolderPersistence) {
133: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
134: .getService();
135:
136: bookmarksFolderLocalService
137: .setBookmarksFolderPersistence(bookmarksFolderPersistence);
138: }
139:
140: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
141: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
142: .getService();
143:
144: return bookmarksFolderLocalService.getResourcePersistence();
145: }
146:
147: public static void setResourcePersistence(
148: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
149: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
150: .getService();
151:
152: bookmarksFolderLocalService
153: .setResourcePersistence(resourcePersistence);
154: }
155:
156: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
157: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
158: .getService();
159:
160: return bookmarksFolderLocalService.getResourceFinder();
161: }
162:
163: public static void setResourceFinder(
164: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
165: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
166: .getService();
167:
168: bookmarksFolderLocalService.setResourceFinder(resourceFinder);
169: }
170:
171: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
172: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
173: .getService();
174:
175: return bookmarksFolderLocalService.getUserPersistence();
176: }
177:
178: public static void setUserPersistence(
179: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
180: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
181: .getService();
182:
183: bookmarksFolderLocalService.setUserPersistence(userPersistence);
184: }
185:
186: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
187: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
188: .getService();
189:
190: return bookmarksFolderLocalService.getUserFinder();
191: }
192:
193: public static void setUserFinder(
194: com.liferay.portal.service.persistence.UserFinder userFinder) {
195: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
196: .getService();
197:
198: bookmarksFolderLocalService.setUserFinder(userFinder);
199: }
200:
201: public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
202: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
203: .getService();
204:
205: return bookmarksFolderLocalService.getTagsEntryPersistence();
206: }
207:
208: public static void setTagsEntryPersistence(
209: com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
210: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
211: .getService();
212:
213: bookmarksFolderLocalService
214: .setTagsEntryPersistence(tagsEntryPersistence);
215: }
216:
217: public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
218: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
219: .getService();
220:
221: return bookmarksFolderLocalService.getTagsEntryFinder();
222: }
223:
224: public static void setTagsEntryFinder(
225: com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
226: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
227: .getService();
228:
229: bookmarksFolderLocalService.setTagsEntryFinder(tagsEntryFinder);
230: }
231:
232: public static void afterPropertiesSet() {
233: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
234: .getService();
235:
236: bookmarksFolderLocalService.afterPropertiesSet();
237: }
238:
239: public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
240: long userId, long plid, long parentFolderId,
241: java.lang.String name, java.lang.String description,
242: boolean addCommunityPermissions, boolean addGuestPermissions)
243: throws com.liferay.portal.PortalException,
244: com.liferay.portal.SystemException {
245: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
246: .getService();
247:
248: return bookmarksFolderLocalService.addFolder(userId, plid,
249: parentFolderId, name, description,
250: addCommunityPermissions, addGuestPermissions);
251: }
252:
253: public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
254: java.lang.String uuid, long userId, long plid,
255: long parentFolderId, java.lang.String name,
256: java.lang.String description,
257: boolean addCommunityPermissions, boolean addGuestPermissions)
258: throws com.liferay.portal.PortalException,
259: com.liferay.portal.SystemException {
260: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
261: .getService();
262:
263: return bookmarksFolderLocalService.addFolder(uuid, userId,
264: plid, parentFolderId, name, description,
265: addCommunityPermissions, addGuestPermissions);
266: }
267:
268: public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
269: long userId, long plid, long parentFolderId,
270: java.lang.String name, java.lang.String description,
271: java.lang.String[] communityPermissions,
272: java.lang.String[] guestPermissions)
273: throws com.liferay.portal.PortalException,
274: com.liferay.portal.SystemException {
275: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
276: .getService();
277:
278: return bookmarksFolderLocalService.addFolder(userId, plid,
279: parentFolderId, name, description,
280: communityPermissions, guestPermissions);
281: }
282:
283: public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
284: java.lang.String uuid, long userId, long plid,
285: long parentFolderId, java.lang.String name,
286: java.lang.String description,
287: java.lang.Boolean addCommunityPermissions,
288: java.lang.Boolean addGuestPermissions,
289: java.lang.String[] communityPermissions,
290: java.lang.String[] guestPermissions)
291: throws com.liferay.portal.PortalException,
292: com.liferay.portal.SystemException {
293: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
294: .getService();
295:
296: return bookmarksFolderLocalService.addFolder(uuid, userId,
297: plid, parentFolderId, name, description,
298: addCommunityPermissions, addGuestPermissions,
299: communityPermissions, guestPermissions);
300: }
301:
302: public static void addFolderResources(long folderId,
303: boolean addCommunityPermissions, boolean addGuestPermissions)
304: throws com.liferay.portal.PortalException,
305: com.liferay.portal.SystemException {
306: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
307: .getService();
308:
309: bookmarksFolderLocalService.addFolderResources(folderId,
310: addCommunityPermissions, addGuestPermissions);
311: }
312:
313: public static void addFolderResources(
314: com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
315: boolean addCommunityPermissions, boolean addGuestPermissions)
316: throws com.liferay.portal.PortalException,
317: com.liferay.portal.SystemException {
318: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
319: .getService();
320:
321: bookmarksFolderLocalService.addFolderResources(folder,
322: addCommunityPermissions, addGuestPermissions);
323: }
324:
325: public static void addFolderResources(long folderId,
326: java.lang.String[] communityPermissions,
327: java.lang.String[] guestPermissions)
328: throws com.liferay.portal.PortalException,
329: com.liferay.portal.SystemException {
330: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
331: .getService();
332:
333: bookmarksFolderLocalService.addFolderResources(folderId,
334: communityPermissions, guestPermissions);
335: }
336:
337: public static void addFolderResources(
338: com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
339: java.lang.String[] communityPermissions,
340: java.lang.String[] guestPermissions)
341: throws com.liferay.portal.PortalException,
342: com.liferay.portal.SystemException {
343: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
344: .getService();
345:
346: bookmarksFolderLocalService.addFolderResources(folder,
347: communityPermissions, guestPermissions);
348: }
349:
350: public static void deleteFolder(long folderId)
351: throws com.liferay.portal.PortalException,
352: com.liferay.portal.SystemException {
353: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
354: .getService();
355:
356: bookmarksFolderLocalService.deleteFolder(folderId);
357: }
358:
359: public static void deleteFolder(
360: com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
361: throws com.liferay.portal.PortalException,
362: com.liferay.portal.SystemException {
363: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
364: .getService();
365:
366: bookmarksFolderLocalService.deleteFolder(folder);
367: }
368:
369: public static void deleteFolders(long groupId)
370: throws com.liferay.portal.PortalException,
371: com.liferay.portal.SystemException {
372: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
373: .getService();
374:
375: bookmarksFolderLocalService.deleteFolders(groupId);
376: }
377:
378: public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
379: long folderId) throws com.liferay.portal.PortalException,
380: com.liferay.portal.SystemException {
381: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
382: .getService();
383:
384: return bookmarksFolderLocalService.getFolder(folderId);
385: }
386:
387: public static java.util.List getFolders(long groupId,
388: long parentFolderId, int begin, int end)
389: throws com.liferay.portal.SystemException {
390: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
391: .getService();
392:
393: return bookmarksFolderLocalService.getFolders(groupId,
394: parentFolderId, begin, end);
395: }
396:
397: public static int getFoldersCount(long groupId, long parentFolderId)
398: throws com.liferay.portal.SystemException {
399: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
400: .getService();
401:
402: return bookmarksFolderLocalService.getFoldersCount(groupId,
403: parentFolderId);
404: }
405:
406: public static void getSubfolderIds(java.util.List folderIds,
407: long groupId, long folderId)
408: throws com.liferay.portal.SystemException {
409: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
410: .getService();
411:
412: bookmarksFolderLocalService.getSubfolderIds(folderIds, groupId,
413: folderId);
414: }
415:
416: public static void reIndex(java.lang.String[] ids)
417: throws com.liferay.portal.SystemException {
418: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
419: .getService();
420:
421: bookmarksFolderLocalService.reIndex(ids);
422: }
423:
424: public static com.liferay.portal.kernel.search.Hits search(
425: long companyId, long groupId, long[] folderIds,
426: java.lang.String keywords)
427: throws com.liferay.portal.SystemException {
428: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
429: .getService();
430:
431: return bookmarksFolderLocalService.search(companyId, groupId,
432: folderIds, keywords);
433: }
434:
435: public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
436: long folderId, long parentFolderId, java.lang.String name,
437: java.lang.String description, boolean mergeWithParentFolder)
438: throws com.liferay.portal.PortalException,
439: com.liferay.portal.SystemException {
440: BookmarksFolderLocalService bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory
441: .getService();
442:
443: return bookmarksFolderLocalService.updateFolder(folderId,
444: parentFolderId, name, description,
445: mergeWithParentFolder);
446: }
447: }
|