001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class BookmarksFolderLocalServiceUtil {
033 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
034 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addBookmarksFolder(bookmarksFolder);
037 }
038
039 public static com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
040 long folderId) {
041 return getService().createBookmarksFolder(folderId);
042 }
043
044 public static void deleteBookmarksFolder(long folderId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteBookmarksFolder(folderId);
048 }
049
050 public static void deleteBookmarksFolder(
051 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteBookmarksFolder(bookmarksFolder);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
087 long folderId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getBookmarksFolder(folderId);
091 }
092
093 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolderByUuidAndGroupId(
094 java.lang.String uuid, long groupId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getBookmarksFolderByUuidAndGroupId(uuid, groupId);
098 }
099
100 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getBookmarksFolders(start, end);
104 }
105
106 public static int getBookmarksFoldersCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getBookmarksFoldersCount();
109 }
110
111 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
112 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateBookmarksFolder(bookmarksFolder);
115 }
116
117 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
118 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateBookmarksFolder(bookmarksFolder, merge);
122 }
123
124 public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
125 long userId, long parentFolderId, java.lang.String name,
126 java.lang.String description,
127 com.liferay.portal.service.ServiceContext serviceContext)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .addFolder(userId, parentFolderId, name, description,
132 serviceContext);
133 }
134
135 public static void addFolderResources(
136 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 getService()
141 .addFolderResources(folder, addCommunityPermissions,
142 addGuestPermissions);
143 }
144
145 public static void addFolderResources(
146 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 getService()
152 .addFolderResources(folder, communityPermissions, guestPermissions);
153 }
154
155 public static void addFolderResources(long folderId,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 getService()
160 .addFolderResources(folderId, addCommunityPermissions,
161 addGuestPermissions);
162 }
163
164 public static void addFolderResources(long folderId,
165 java.lang.String[] communityPermissions,
166 java.lang.String[] guestPermissions)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 getService()
170 .addFolderResources(folderId, communityPermissions, guestPermissions);
171 }
172
173 public static void deleteFolder(
174 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException {
177 getService().deleteFolder(folder);
178 }
179
180 public static void deleteFolder(long folderId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 getService().deleteFolder(folderId);
184 }
185
186 public static void deleteFolders(long groupId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 getService().deleteFolders(groupId);
190 }
191
192 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
193 long companyId, int start, int end)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getCompanyFolders(companyId, start, end);
196 }
197
198 public static int getCompanyFoldersCount(long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().getCompanyFoldersCount(companyId);
201 }
202
203 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
204 long folderId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getService().getFolder(folderId);
208 }
209
210 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
211 long groupId)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getService().getFolders(groupId);
214 }
215
216 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
217 long groupId, long parentFolderId)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getService().getFolders(groupId, parentFolderId);
220 }
221
222 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
223 long groupId, long parentFolderId, int start, int end)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().getFolders(groupId, parentFolderId, start, end);
226 }
227
228 public static int getFoldersCount(long groupId, long parentFolderId)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getFoldersCount(groupId, parentFolderId);
231 }
232
233 public static void getSubfolderIds(
234 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 getService().getSubfolderIds(folderIds, groupId, folderId);
237 }
238
239 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
240 long folderId, long parentFolderId, java.lang.String name,
241 java.lang.String description, boolean mergeWithParentFolder,
242 com.liferay.portal.service.ServiceContext serviceContext)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException {
245 return getService()
246 .updateFolder(folderId, parentFolderId, name, description,
247 mergeWithParentFolder, serviceContext);
248 }
249
250 public static BookmarksFolderLocalService getService() {
251 if (_service == null) {
252 _service = (BookmarksFolderLocalService)PortalBeanLocatorUtil.locate(BookmarksFolderLocalService.class.getName());
253 }
254
255 return _service;
256 }
257
258 public void setService(BookmarksFolderLocalService service) {
259 _service = service;
260 }
261
262 private static BookmarksFolderLocalService _service;
263 }