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 plid, long parentFolderId, java.lang.String name,
111 java.lang.String description, boolean addCommunityPermissions,
112 boolean addGuestPermissions)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return getService()
116 .addFolder(userId, plid, parentFolderId, name, description,
117 addCommunityPermissions, addGuestPermissions);
118 }
119
120 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
121 java.lang.String uuid, long userId, long plid, long parentFolderId,
122 java.lang.String name, java.lang.String description,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addFolder(uuid, userId, plid, parentFolderId, name,
128 description, addCommunityPermissions, addGuestPermissions);
129 }
130
131 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
132 long userId, long plid, long parentFolderId, java.lang.String name,
133 java.lang.String description, java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException {
137 return getService()
138 .addFolder(userId, plid, parentFolderId, name, description,
139 communityPermissions, guestPermissions);
140 }
141
142 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
143 java.lang.String uuid, long userId, long plid, long parentFolderId,
144 java.lang.String name, java.lang.String description,
145 java.lang.Boolean addCommunityPermissions,
146 java.lang.Boolean addGuestPermissions,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException {
151 return getService()
152 .addFolder(uuid, userId, plid, parentFolderId, name,
153 description, addCommunityPermissions, addGuestPermissions,
154 communityPermissions, guestPermissions);
155 }
156
157 public static void addFolderResources(long folderId,
158 boolean addCommunityPermissions, boolean addGuestPermissions)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 getService()
162 .addFolderResources(folderId, addCommunityPermissions,
163 addGuestPermissions);
164 }
165
166 public static void addFolderResources(
167 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
168 boolean addCommunityPermissions, boolean addGuestPermissions)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException {
171 getService()
172 .addFolderResources(folder, addCommunityPermissions,
173 addGuestPermissions);
174 }
175
176 public static void addFolderResources(long folderId,
177 java.lang.String[] communityPermissions,
178 java.lang.String[] guestPermissions)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 getService()
182 .addFolderResources(folderId, communityPermissions, guestPermissions);
183 }
184
185 public static void addFolderResources(
186 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
187 java.lang.String[] communityPermissions,
188 java.lang.String[] guestPermissions)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 getService()
192 .addFolderResources(folder, communityPermissions, guestPermissions);
193 }
194
195 public static void deleteFolder(long folderId)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 getService().deleteFolder(folderId);
199 }
200
201 public static void deleteFolder(
202 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException {
205 getService().deleteFolder(folder);
206 }
207
208 public static void deleteFolders(long groupId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 getService().deleteFolders(groupId);
212 }
213
214 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
215 long folderId)
216 throws com.liferay.portal.PortalException,
217 com.liferay.portal.SystemException {
218 return getService().getFolder(folderId);
219 }
220
221 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
222 long groupId, long parentFolderId, int start, int end)
223 throws com.liferay.portal.SystemException {
224 return getService().getFolders(groupId, parentFolderId, start, end);
225 }
226
227 public static int getFoldersCount(long groupId, long parentFolderId)
228 throws com.liferay.portal.SystemException {
229 return getService().getFoldersCount(groupId, parentFolderId);
230 }
231
232 public static void getSubfolderIds(java.util.List<Long> folderIds,
233 long groupId, long folderId) throws com.liferay.portal.SystemException {
234 getService().getSubfolderIds(folderIds, groupId, folderId);
235 }
236
237 public static void reIndex(java.lang.String[] ids)
238 throws com.liferay.portal.SystemException {
239 getService().reIndex(ids);
240 }
241
242 public static com.liferay.portal.kernel.search.Hits search(long companyId,
243 long groupId, long[] folderIds, java.lang.String keywords, int start,
244 int end) throws com.liferay.portal.SystemException {
245 return getService()
246 .search(companyId, groupId, folderIds, keywords, start, end);
247 }
248
249 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
250 long folderId, long parentFolderId, java.lang.String name,
251 java.lang.String description, boolean mergeWithParentFolder)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 return getService()
255 .updateFolder(folderId, parentFolderId, name, description,
256 mergeWithParentFolder);
257 }
258
259 public static BookmarksFolderLocalService getService() {
260 if (_service == null) {
261 throw new RuntimeException("BookmarksFolderLocalService is not set");
262 }
263
264 return _service;
265 }
266
267 public void setService(BookmarksFolderLocalService service) {
268 _service = service;
269 }
270
271 private static BookmarksFolderLocalService _service;
272 }