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