001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.bookmarks.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link BookmarksEntryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       BookmarksEntryLocalService
026     * @generated
027     */
028    public class BookmarksEntryLocalServiceWrapper
029            implements BookmarksEntryLocalService,
030                    ServiceWrapper<BookmarksEntryLocalService> {
031            public BookmarksEntryLocalServiceWrapper(
032                    BookmarksEntryLocalService bookmarksEntryLocalService) {
033                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
034            }
035    
036            /**
037            * Adds the bookmarks entry to the database. Also notifies the appropriate model listeners.
038            *
039            * @param bookmarksEntry the bookmarks entry
040            * @return the bookmarks entry that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
044                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _bookmarksEntryLocalService.addBookmarksEntry(bookmarksEntry);
047            }
048    
049            /**
050            * Creates a new bookmarks entry with the primary key. Does not add the bookmarks entry to the database.
051            *
052            * @param entryId the primary key for the new bookmarks entry
053            * @return the new bookmarks entry
054            */
055            public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
056                    long entryId) {
057                    return _bookmarksEntryLocalService.createBookmarksEntry(entryId);
058            }
059    
060            /**
061            * Deletes the bookmarks entry with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param entryId the primary key of the bookmarks entry
064            * @return the bookmarks entry that was removed
065            * @throws PortalException if a bookmarks entry with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteBookmarksEntry(
069                    long entryId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _bookmarksEntryLocalService.deleteBookmarksEntry(entryId);
073            }
074    
075            /**
076            * Deletes the bookmarks entry from the database. Also notifies the appropriate model listeners.
077            *
078            * @param bookmarksEntry the bookmarks entry
079            * @return the bookmarks entry that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteBookmarksEntry(
083                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _bookmarksEntryLocalService.deleteBookmarksEntry(bookmarksEntry);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _bookmarksEntryLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery, start,
147                            end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _bookmarksEntryLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchBookmarksEntry(
164                    long entryId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _bookmarksEntryLocalService.fetchBookmarksEntry(entryId);
167            }
168    
169            /**
170            * Returns the bookmarks entry with the primary key.
171            *
172            * @param entryId the primary key of the bookmarks entry
173            * @return the bookmarks entry
174            * @throws PortalException if a bookmarks entry with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
178                    long entryId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _bookmarksEntryLocalService.getBookmarksEntry(entryId);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _bookmarksEntryLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns the bookmarks entry with the UUID in the group.
193            *
194            * @param uuid the UUID of bookmarks entry
195            * @param groupId the group id of the bookmarks entry
196            * @return the bookmarks entry
197            * @throws PortalException if a bookmarks entry with the UUID in the group could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _bookmarksEntryLocalService.getBookmarksEntryByUuidAndGroupId(uuid,
205                            groupId);
206            }
207    
208            /**
209            * Returns a range of all the bookmarks entries.
210            *
211            * <p>
212            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
213            * </p>
214            *
215            * @param start the lower bound of the range of bookmarks entries
216            * @param end the upper bound of the range of bookmarks entries (not inclusive)
217            * @return the range of bookmarks entries
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
221                    int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _bookmarksEntryLocalService.getBookmarksEntries(start, end);
224            }
225    
226            /**
227            * Returns the number of bookmarks entries.
228            *
229            * @return the number of bookmarks entries
230            * @throws SystemException if a system exception occurred
231            */
232            public int getBookmarksEntriesCount()
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _bookmarksEntryLocalService.getBookmarksEntriesCount();
235            }
236    
237            /**
238            * Updates the bookmarks entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param bookmarksEntry the bookmarks entry
241            * @return the bookmarks entry that was updated
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
245                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry);
248            }
249    
250            /**
251            * Returns the Spring bean ID for this bean.
252            *
253            * @return the Spring bean ID for this bean
254            */
255            public java.lang.String getBeanIdentifier() {
256                    return _bookmarksEntryLocalService.getBeanIdentifier();
257            }
258    
259            /**
260            * Sets the Spring bean ID for this bean.
261            *
262            * @param beanIdentifier the Spring bean ID for this bean
263            */
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _bookmarksEntryLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
269                    long userId, long groupId, long folderId, java.lang.String name,
270                    java.lang.String url, java.lang.String description,
271                    com.liferay.portal.service.ServiceContext serviceContext)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _bookmarksEntryLocalService.addEntry(userId, groupId, folderId,
275                            name, url, description, serviceContext);
276            }
277    
278            public void deleteEntries(long groupId, long folderId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _bookmarksEntryLocalService.deleteEntries(groupId, folderId);
282            }
283    
284            public void deleteEntries(long groupId, long folderId,
285                    boolean includeTrashedEntries)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _bookmarksEntryLocalService.deleteEntries(groupId, folderId,
289                            includeTrashedEntries);
290            }
291    
292            public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteEntry(
293                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return _bookmarksEntryLocalService.deleteEntry(entry);
297            }
298    
299            public com.liferay.portlet.bookmarks.model.BookmarksEntry deleteEntry(
300                    long entryId)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _bookmarksEntryLocalService.deleteEntry(entryId);
304            }
305    
306            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
307                    long groupId, long folderId, int start, int end)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _bookmarksEntryLocalService.getEntries(groupId, folderId, start,
310                            end);
311            }
312    
313            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
314                    long groupId, long folderId, int start, int end,
315                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _bookmarksEntryLocalService.getEntries(groupId, folderId, start,
318                            end, orderByComparator);
319            }
320    
321            public int getEntriesCount(long groupId, long folderId)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _bookmarksEntryLocalService.getEntriesCount(groupId, folderId);
324            }
325    
326            public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
327                    long entryId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return _bookmarksEntryLocalService.getEntry(entryId);
331            }
332    
333            public int getFoldersEntriesCount(long groupId,
334                    java.util.List<java.lang.Long> folderIds)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _bookmarksEntryLocalService.getFoldersEntriesCount(groupId,
337                            folderIds);
338            }
339    
340            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
341                    long groupId, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _bookmarksEntryLocalService.getGroupEntries(groupId, start, end);
344            }
345    
346            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
347                    long groupId, long userId, int start, int end)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _bookmarksEntryLocalService.getGroupEntries(groupId, userId,
350                            start, end);
351            }
352    
353            public int getGroupEntriesCount(long groupId)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _bookmarksEntryLocalService.getGroupEntriesCount(groupId);
356            }
357    
358            public int getGroupEntriesCount(long groupId, long userId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _bookmarksEntryLocalService.getGroupEntriesCount(groupId, userId);
361            }
362    
363            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _bookmarksEntryLocalService.getNoAssetEntries();
366            }
367    
368            public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
369                    long entryId, long parentFolderId)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _bookmarksEntryLocalService.moveEntry(entryId, parentFolderId);
373            }
374    
375            public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
376                    long userId, long entryId, long parentFolderId)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    return _bookmarksEntryLocalService.moveEntryFromTrash(userId, entryId,
380                            parentFolderId);
381            }
382    
383            public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
384                    long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return _bookmarksEntryLocalService.moveEntryToTrash(userId, entry);
388            }
389    
390            public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
391                    long userId, long entryId)
392                    throws com.liferay.portal.kernel.exception.PortalException,
393                            com.liferay.portal.kernel.exception.SystemException {
394                    return _bookmarksEntryLocalService.moveEntryToTrash(userId, entryId);
395            }
396    
397            public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
398                    long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _bookmarksEntryLocalService.openEntry(userId, entry);
401            }
402    
403            public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
404                    long userId, long entryId)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    return _bookmarksEntryLocalService.openEntry(userId, entryId);
408            }
409    
410            public com.liferay.portlet.bookmarks.model.BookmarksEntry restoreEntryFromTrash(
411                    long userId, long entryId)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    return _bookmarksEntryLocalService.restoreEntryFromTrash(userId, entryId);
415            }
416    
417            public void subscribeEntry(long userId, long entryId)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    _bookmarksEntryLocalService.subscribeEntry(userId, entryId);
421            }
422    
423            public void unsubscribeEntry(long userId, long entryId)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    _bookmarksEntryLocalService.unsubscribeEntry(userId, entryId);
427            }
428    
429            public void updateAsset(long userId,
430                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
431                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
432                    long[] assetLinkEntryIds)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    _bookmarksEntryLocalService.updateAsset(userId, entry,
436                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
437            }
438    
439            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
440                    long userId, long entryId, long groupId, long folderId,
441                    java.lang.String name, java.lang.String url,
442                    java.lang.String description,
443                    com.liferay.portal.service.ServiceContext serviceContext)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    return _bookmarksEntryLocalService.updateEntry(userId, entryId,
447                            groupId, folderId, name, url, description, serviceContext);
448            }
449    
450            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateStatus(
451                    long userId, com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
452                    int status)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _bookmarksEntryLocalService.updateStatus(userId, entry, status);
456            }
457    
458            /**
459             * @deprecated Renamed to {@link #getWrappedService}
460             */
461            public BookmarksEntryLocalService getWrappedBookmarksEntryLocalService() {
462                    return _bookmarksEntryLocalService;
463            }
464    
465            /**
466             * @deprecated Renamed to {@link #setWrappedService}
467             */
468            public void setWrappedBookmarksEntryLocalService(
469                    BookmarksEntryLocalService bookmarksEntryLocalService) {
470                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
471            }
472    
473            public BookmarksEntryLocalService getWrappedService() {
474                    return _bookmarksEntryLocalService;
475            }
476    
477            public void setWrappedService(
478                    BookmarksEntryLocalService bookmarksEntryLocalService) {
479                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
480            }
481    
482            private BookmarksEntryLocalService _bookmarksEntryLocalService;
483    }