1
14
15 package com.liferay.portlet.bookmarks.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class BookmarksFolderServiceUtil {
40 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
41 long plid, long parentFolderId, java.lang.String name,
42 java.lang.String description, boolean addCommunityPermissions,
43 boolean addGuestPermissions)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException, java.rmi.RemoteException {
46 return getService()
47 .addFolder(plid, parentFolderId, name, description,
48 addCommunityPermissions, addGuestPermissions);
49 }
50
51 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
52 long plid, long parentFolderId, java.lang.String name,
53 java.lang.String description, java.lang.String[] communityPermissions,
54 java.lang.String[] guestPermissions)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException, java.rmi.RemoteException {
57 return getService()
58 .addFolder(plid, parentFolderId, name, description,
59 communityPermissions, guestPermissions);
60 }
61
62 public static void deleteFolder(long folderId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException, java.rmi.RemoteException {
65 getService().deleteFolder(folderId);
66 }
67
68 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
69 long folderId)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException, java.rmi.RemoteException {
72 return getService().getFolder(folderId);
73 }
74
75 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
76 long folderId, long parentFolderId, java.lang.String name,
77 java.lang.String description, boolean mergeWithParentFolder)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException, java.rmi.RemoteException {
80 return getService()
81 .updateFolder(folderId, parentFolderId, name, description,
82 mergeWithParentFolder);
83 }
84
85 public static BookmarksFolderService getService() {
86 if (_service == null) {
87 _service = (BookmarksFolderService)PortalBeanLocatorUtil.locate(BookmarksFolderService.class.getName());
88 }
89
90 return _service;
91 }
92
93 public void setService(BookmarksFolderService service) {
94 _service = service;
95 }
96
97 private static BookmarksFolderService _service;
98 }