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