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