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            * @throws PortalException if a bookmarks entry with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteBookmarksEntry(long entryId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _bookmarksEntryLocalService.deleteBookmarksEntry(entryId);
071            }
072    
073            /**
074            * Deletes the bookmarks entry from the database. Also notifies the appropriate model listeners.
075            *
076            * @param bookmarksEntry the bookmarks entry
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteBookmarksEntry(
080                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _bookmarksEntryLocalService.deleteBookmarksEntry(bookmarksEntry);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery, start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery, start,
140                            end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _bookmarksEntryLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchBookmarksEntry(
157                    long entryId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _bookmarksEntryLocalService.fetchBookmarksEntry(entryId);
160            }
161    
162            /**
163            * Returns the bookmarks entry with the primary key.
164            *
165            * @param entryId the primary key of the bookmarks entry
166            * @return the bookmarks entry
167            * @throws PortalException if a bookmarks entry with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
171                    long entryId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _bookmarksEntryLocalService.getBookmarksEntry(entryId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _bookmarksEntryLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns the bookmarks entry with the UUID in the group.
186            *
187            * @param uuid the UUID of bookmarks entry
188            * @param groupId the group id of the bookmarks entry
189            * @return the bookmarks entry
190            * @throws PortalException if a bookmarks entry with the UUID in the group could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
194                    java.lang.String uuid, long groupId)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return _bookmarksEntryLocalService.getBookmarksEntryByUuidAndGroupId(uuid,
198                            groupId);
199            }
200    
201            /**
202            * Returns a range of all the bookmarks entries.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param start the lower bound of the range of bookmarks entries
209            * @param end the upper bound of the range of bookmarks entries (not inclusive)
210            * @return the range of bookmarks entries
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
214                    int start, int end)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _bookmarksEntryLocalService.getBookmarksEntries(start, end);
217            }
218    
219            /**
220            * Returns the number of bookmarks entries.
221            *
222            * @return the number of bookmarks entries
223            * @throws SystemException if a system exception occurred
224            */
225            public int getBookmarksEntriesCount()
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _bookmarksEntryLocalService.getBookmarksEntriesCount();
228            }
229    
230            /**
231            * Updates the bookmarks entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
232            *
233            * @param bookmarksEntry the bookmarks entry
234            * @return the bookmarks entry that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
238                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry);
241            }
242    
243            /**
244            * Updates the bookmarks entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
245            *
246            * @param bookmarksEntry the bookmarks entry
247            * @param merge whether to merge the bookmarks entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
248            * @return the bookmarks entry that was updated
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
252                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
253                    boolean merge)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry,
256                            merge);
257            }
258    
259            /**
260            * Returns the Spring bean ID for this bean.
261            *
262            * @return the Spring bean ID for this bean
263            */
264            public java.lang.String getBeanIdentifier() {
265                    return _bookmarksEntryLocalService.getBeanIdentifier();
266            }
267    
268            /**
269            * Sets the Spring bean ID for this bean.
270            *
271            * @param beanIdentifier the Spring bean ID for this bean
272            */
273            public void setBeanIdentifier(java.lang.String beanIdentifier) {
274                    _bookmarksEntryLocalService.setBeanIdentifier(beanIdentifier);
275            }
276    
277            public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
278                    long userId, long groupId, long folderId, java.lang.String name,
279                    java.lang.String url, java.lang.String description,
280                    com.liferay.portal.service.ServiceContext serviceContext)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _bookmarksEntryLocalService.addEntry(userId, groupId, folderId,
284                            name, url, description, serviceContext);
285            }
286    
287            public void deleteEntries(long groupId, long folderId)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _bookmarksEntryLocalService.deleteEntries(groupId, folderId);
291            }
292    
293            public void deleteEntry(
294                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _bookmarksEntryLocalService.deleteEntry(entry);
298            }
299    
300            public void deleteEntry(long entryId)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _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 openEntry(
369                    long userId, long entryId)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _bookmarksEntryLocalService.openEntry(userId, entryId);
373            }
374    
375            public void updateAsset(long userId,
376                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
377                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
378                    long[] assetLinkEntryIds)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    _bookmarksEntryLocalService.updateAsset(userId, entry,
382                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
383            }
384    
385            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
386                    long userId, long entryId, long groupId, long folderId,
387                    java.lang.String name, java.lang.String url,
388                    java.lang.String description,
389                    com.liferay.portal.service.ServiceContext serviceContext)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    return _bookmarksEntryLocalService.updateEntry(userId, entryId,
393                            groupId, folderId, name, url, description, serviceContext);
394            }
395    
396            /**
397             * @deprecated Renamed to {@link #getWrappedService}
398             */
399            public BookmarksEntryLocalService getWrappedBookmarksEntryLocalService() {
400                    return _bookmarksEntryLocalService;
401            }
402    
403            /**
404             * @deprecated Renamed to {@link #setWrappedService}
405             */
406            public void setWrappedBookmarksEntryLocalService(
407                    BookmarksEntryLocalService bookmarksEntryLocalService) {
408                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
409            }
410    
411            public BookmarksEntryLocalService getWrappedService() {
412                    return _bookmarksEntryLocalService;
413            }
414    
415            public void setWrappedService(
416                    BookmarksEntryLocalService bookmarksEntryLocalService) {
417                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
418            }
419    
420            private BookmarksEntryLocalService _bookmarksEntryLocalService;
421    }