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