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