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