001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link BookmarksEntryLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       BookmarksEntryLocalService
024     * @generated
025     */
026    public class BookmarksEntryLocalServiceWrapper
027            implements BookmarksEntryLocalService {
028            public BookmarksEntryLocalServiceWrapper(
029                    BookmarksEntryLocalService bookmarksEntryLocalService) {
030                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
031            }
032    
033            /**
034            * Adds the bookmarks entry to the database. Also notifies the appropriate model listeners.
035            *
036            * @param bookmarksEntry the bookmarks entry
037            * @return the bookmarks entry that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
041                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _bookmarksEntryLocalService.addBookmarksEntry(bookmarksEntry);
044            }
045    
046            /**
047            * Creates a new bookmarks entry with the primary key. Does not add the bookmarks entry to the database.
048            *
049            * @param entryId the primary key for the new bookmarks entry
050            * @return the new bookmarks entry
051            */
052            public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
053                    long entryId) {
054                    return _bookmarksEntryLocalService.createBookmarksEntry(entryId);
055            }
056    
057            /**
058            * Deletes the bookmarks entry with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param entryId the primary key of the bookmarks entry
061            * @throws PortalException if a bookmarks entry with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteBookmarksEntry(long entryId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _bookmarksEntryLocalService.deleteBookmarksEntry(entryId);
068            }
069    
070            /**
071            * Deletes the bookmarks entry from the database. Also notifies the appropriate model listeners.
072            *
073            * @param bookmarksEntry the bookmarks entry
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteBookmarksEntry(
077                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _bookmarksEntryLocalService.deleteBookmarksEntry(bookmarksEntry);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _bookmarksEntryLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _bookmarksEntryLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the bookmarks entry with the primary key.
155            *
156            * @param entryId the primary key of the bookmarks entry
157            * @return the bookmarks entry
158            * @throws PortalException if a bookmarks entry with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
162                    long entryId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _bookmarksEntryLocalService.getBookmarksEntry(entryId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _bookmarksEntryLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns the bookmarks entry with the UUID in the group.
177            *
178            * @param uuid the UUID of bookmarks entry
179            * @param groupId the group id of the bookmarks entry
180            * @return the bookmarks entry
181            * @throws PortalException if a bookmarks entry with the UUID in the group could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
185                    java.lang.String uuid, long groupId)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _bookmarksEntryLocalService.getBookmarksEntryByUuidAndGroupId(uuid,
189                            groupId);
190            }
191    
192            /**
193            * Returns a range of all the bookmarks entries.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param start the lower bound of the range of bookmarks entries
200            * @param end the upper bound of the range of bookmarks entries (not inclusive)
201            * @return the range of bookmarks entries
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _bookmarksEntryLocalService.getBookmarksEntries(start, end);
208            }
209    
210            /**
211            * Returns the number of bookmarks entries.
212            *
213            * @return the number of bookmarks entries
214            * @throws SystemException if a system exception occurred
215            */
216            public int getBookmarksEntriesCount()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _bookmarksEntryLocalService.getBookmarksEntriesCount();
219            }
220    
221            /**
222            * Updates the bookmarks entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
223            *
224            * @param bookmarksEntry the bookmarks entry
225            * @return the bookmarks entry that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
229                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry);
232            }
233    
234            /**
235            * Updates the bookmarks entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param bookmarksEntry the bookmarks entry
238            * @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.
239            * @return the bookmarks entry that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
243                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
244                    boolean merge)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry,
247                            merge);
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 deleteEntry(
285                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _bookmarksEntryLocalService.deleteEntry(entry);
289            }
290    
291            public void deleteEntry(long entryId)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _bookmarksEntryLocalService.deleteEntry(entryId);
295            }
296    
297            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
298                    long groupId, long folderId, int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _bookmarksEntryLocalService.getEntries(groupId, folderId, start,
301                            end);
302            }
303    
304            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
305                    long groupId, long folderId, int start, int end,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _bookmarksEntryLocalService.getEntries(groupId, folderId, start,
309                            end, orderByComparator);
310            }
311    
312            public int getEntriesCount(long groupId, long folderId)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _bookmarksEntryLocalService.getEntriesCount(groupId, folderId);
315            }
316    
317            public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
318                    long entryId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _bookmarksEntryLocalService.getEntry(entryId);
322            }
323    
324            public int getFoldersEntriesCount(long groupId,
325                    java.util.List<java.lang.Long> folderIds)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _bookmarksEntryLocalService.getFoldersEntriesCount(groupId,
328                            folderIds);
329            }
330    
331            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
332                    long groupId, int start, int end)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _bookmarksEntryLocalService.getGroupEntries(groupId, start, end);
335            }
336    
337            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
338                    long groupId, long userId, int start, int end)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _bookmarksEntryLocalService.getGroupEntries(groupId, userId,
341                            start, end);
342            }
343    
344            public int getGroupEntriesCount(long groupId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _bookmarksEntryLocalService.getGroupEntriesCount(groupId);
347            }
348    
349            public int getGroupEntriesCount(long groupId, long userId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _bookmarksEntryLocalService.getGroupEntriesCount(groupId, userId);
352            }
353    
354            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _bookmarksEntryLocalService.getNoAssetEntries();
357            }
358    
359            public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
360                    long userId, long entryId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _bookmarksEntryLocalService.openEntry(userId, entryId);
364            }
365    
366            public void updateAsset(long userId,
367                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
368                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
369                    long[] assetLinkEntryIds)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    _bookmarksEntryLocalService.updateAsset(userId, entry,
373                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
374            }
375    
376            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
377                    long userId, long entryId, long groupId, long folderId,
378                    java.lang.String name, java.lang.String url,
379                    java.lang.String description,
380                    com.liferay.portal.service.ServiceContext serviceContext)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return _bookmarksEntryLocalService.updateEntry(userId, entryId,
384                            groupId, folderId, name, url, description, serviceContext);
385            }
386    
387            public BookmarksEntryLocalService getWrappedBookmarksEntryLocalService() {
388                    return _bookmarksEntryLocalService;
389            }
390    
391            public void setWrappedBookmarksEntryLocalService(
392                    BookmarksEntryLocalService bookmarksEntryLocalService) {
393                    _bookmarksEntryLocalService = bookmarksEntryLocalService;
394            }
395    
396            private BookmarksEntryLocalService _bookmarksEntryLocalService;
397    }