1
19
20 package com.liferay.portlet.bookmarks.service;
21
22
23
44 public class BookmarksFolderLocalServiceUtil {
45 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
46 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
47 throws com.liferay.portal.SystemException {
48 return getService().addBookmarksFolder(bookmarksFolder);
49 }
50
51 public static com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
52 long folderId) {
53 return getService().createBookmarksFolder(folderId);
54 }
55
56 public static void deleteBookmarksFolder(long folderId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteBookmarksFolder(folderId);
60 }
61
62 public static void deleteBookmarksFolder(
63 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
64 throws com.liferay.portal.SystemException {
65 getService().deleteBookmarksFolder(bookmarksFolder);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
81 long folderId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getBookmarksFolder(folderId);
85 }
86
87 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getBookmarksFolders(start, end);
90 }
91
92 public static int getBookmarksFoldersCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getBookmarksFoldersCount();
95 }
96
97 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
98 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
99 throws com.liferay.portal.SystemException {
100 return getService().updateBookmarksFolder(bookmarksFolder);
101 }
102
103 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
104 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateBookmarksFolder(bookmarksFolder, merge);
107 }
108
109 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
110 long userId, long parentFolderId, java.lang.String name,
111 java.lang.String description,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return getService()
116 .addFolder(userId, parentFolderId, name, description,
117 serviceContext);
118 }
119
120 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
121 java.lang.String uuid, long userId, long parentFolderId,
122 java.lang.String name, java.lang.String description,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addFolder(uuid, userId, parentFolderId, name, description,
128 serviceContext);
129 }
130
131 public static void addFolderResources(long folderId,
132 boolean addCommunityPermissions, boolean addGuestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 getService()
136 .addFolderResources(folderId, addCommunityPermissions,
137 addGuestPermissions);
138 }
139
140 public static void addFolderResources(
141 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 getService()
146 .addFolderResources(folder, addCommunityPermissions,
147 addGuestPermissions);
148 }
149
150 public static void addFolderResources(long folderId,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService()
156 .addFolderResources(folderId, communityPermissions, guestPermissions);
157 }
158
159 public static void addFolderResources(
160 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addFolderResources(folder, communityPermissions, guestPermissions);
167 }
168
169 public static void deleteFolder(long folderId)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException {
172 getService().deleteFolder(folderId);
173 }
174
175 public static void deleteFolder(
176 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 getService().deleteFolder(folder);
180 }
181
182 public static void deleteFolders(long groupId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 getService().deleteFolders(groupId);
186 }
187
188 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
189 long folderId)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 return getService().getFolder(folderId);
193 }
194
195 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
196 long groupId, long parentFolderId, int start, int end)
197 throws com.liferay.portal.SystemException {
198 return getService().getFolders(groupId, parentFolderId, start, end);
199 }
200
201 public static int getFoldersCount(long groupId, long parentFolderId)
202 throws com.liferay.portal.SystemException {
203 return getService().getFoldersCount(groupId, parentFolderId);
204 }
205
206 public static void getSubfolderIds(java.util.List<Long> folderIds,
207 long groupId, long folderId) throws com.liferay.portal.SystemException {
208 getService().getSubfolderIds(folderIds, groupId, folderId);
209 }
210
211 public static void reIndex(java.lang.String[] ids)
212 throws com.liferay.portal.SystemException {
213 getService().reIndex(ids);
214 }
215
216 public static com.liferay.portal.kernel.search.Hits search(long companyId,
217 long groupId, long userId, long[] folderIds, java.lang.String keywords,
218 int start, int end) throws com.liferay.portal.SystemException {
219 return getService()
220 .search(companyId, groupId, userId, folderIds, keywords,
221 start, end);
222 }
223
224 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
225 long folderId, long parentFolderId, java.lang.String name,
226 java.lang.String description, boolean mergeWithParentFolder,
227 com.liferay.portal.service.ServiceContext serviceContext)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 return getService()
231 .updateFolder(folderId, parentFolderId, name, description,
232 mergeWithParentFolder, serviceContext);
233 }
234
235 public static BookmarksFolderLocalService getService() {
236 if (_service == null) {
237 throw new RuntimeException("BookmarksFolderLocalService is not set");
238 }
239
240 return _service;
241 }
242
243 public void setService(BookmarksFolderLocalService service) {
244 _service = service;
245 }
246
247 private static BookmarksFolderLocalService _service;
248 }