001    /**
002     * Copyright (c) 2000-2010 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 to add
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 to delete
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 to delete
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 to search with
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 to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (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 to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
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            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
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            * Gets the bookmarks entry with the primary key.
155            *
156            * @param entryId the primary key of the bookmarks entry to get
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            /**
169            * Gets the bookmarks entry with the UUID and group id.
170            *
171            * @param uuid the UUID of bookmarks entry to get
172            * @param groupId the group id of the bookmarks entry to get
173            * @return the bookmarks entry
174            * @throws PortalException if a bookmarks entry with the UUID and group id could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
178                    java.lang.String uuid, long groupId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _bookmarksEntryLocalService.getBookmarksEntryByUuidAndGroupId(uuid,
182                            groupId);
183            }
184    
185            /**
186            * Gets a range of all the bookmarks entries.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of bookmarks entries to return
193            * @param end the upper bound of the range of bookmarks entries to return (not inclusive)
194            * @return the range of bookmarks entries
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _bookmarksEntryLocalService.getBookmarksEntries(start, end);
201            }
202    
203            /**
204            * Gets the number of bookmarks entries.
205            *
206            * @return the number of bookmarks entries
207            * @throws SystemException if a system exception occurred
208            */
209            public int getBookmarksEntriesCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _bookmarksEntryLocalService.getBookmarksEntriesCount();
212            }
213    
214            /**
215            * Updates the bookmarks entry in the database. Also notifies the appropriate model listeners.
216            *
217            * @param bookmarksEntry the bookmarks entry to update
218            * @return the bookmarks entry that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
222                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry);
225            }
226    
227            /**
228            * Updates the bookmarks entry in the database. Also notifies the appropriate model listeners.
229            *
230            * @param bookmarksEntry the bookmarks entry to update
231            * @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.
232            * @return the bookmarks entry that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
236                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry,
240                            merge);
241            }
242    
243            public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
244                    long userId, long groupId, long folderId, java.lang.String name,
245                    java.lang.String url, java.lang.String comments,
246                    com.liferay.portal.service.ServiceContext serviceContext)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _bookmarksEntryLocalService.addEntry(userId, groupId, folderId,
250                            name, url, comments, serviceContext);
251            }
252    
253            public void addEntryResources(
254                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
255                    boolean addCommunityPermissions, boolean addGuestPermissions)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    _bookmarksEntryLocalService.addEntryResources(entry,
259                            addCommunityPermissions, addGuestPermissions);
260            }
261    
262            public void addEntryResources(
263                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
264                    java.lang.String[] communityPermissions,
265                    java.lang.String[] guestPermissions)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _bookmarksEntryLocalService.addEntryResources(entry,
269                            communityPermissions, guestPermissions);
270            }
271    
272            public void addEntryResources(long entryId,
273                    boolean addCommunityPermissions, boolean addGuestPermissions)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    _bookmarksEntryLocalService.addEntryResources(entryId,
277                            addCommunityPermissions, addGuestPermissions);
278            }
279    
280            public void addEntryResources(long entryId,
281                    java.lang.String[] communityPermissions,
282                    java.lang.String[] guestPermissions)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _bookmarksEntryLocalService.addEntryResources(entryId,
286                            communityPermissions, guestPermissions);
287            }
288    
289            public void deleteEntries(long groupId, long folderId)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _bookmarksEntryLocalService.deleteEntries(groupId, folderId);
293            }
294    
295            public void deleteEntry(
296                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _bookmarksEntryLocalService.deleteEntry(entry);
300            }
301    
302            public void deleteEntry(long entryId)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _bookmarksEntryLocalService.deleteEntry(entryId);
306            }
307    
308            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
309                    long groupId, long folderId, int start, int end)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _bookmarksEntryLocalService.getEntries(groupId, folderId, start,
312                            end);
313            }
314    
315            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
316                    long groupId, long folderId, int start, int end,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _bookmarksEntryLocalService.getEntries(groupId, folderId, start,
320                            end, orderByComparator);
321            }
322    
323            public int getEntriesCount(long groupId, long folderId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _bookmarksEntryLocalService.getEntriesCount(groupId, folderId);
326            }
327    
328            public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
329                    long entryId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _bookmarksEntryLocalService.getEntry(entryId);
333            }
334    
335            public int getFoldersEntriesCount(long groupId,
336                    java.util.List<java.lang.Long> folderIds)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _bookmarksEntryLocalService.getFoldersEntriesCount(groupId,
339                            folderIds);
340            }
341    
342            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
343                    long groupId, int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _bookmarksEntryLocalService.getGroupEntries(groupId, start, end);
346            }
347    
348            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
349                    long groupId, long userId, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _bookmarksEntryLocalService.getGroupEntries(groupId, userId,
352                            start, end);
353            }
354    
355            public int getGroupEntriesCount(long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _bookmarksEntryLocalService.getGroupEntriesCount(groupId);
358            }
359    
360            public int getGroupEntriesCount(long groupId, long userId)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _bookmarksEntryLocalService.getGroupEntriesCount(groupId, userId);
363            }
364    
365            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _bookmarksEntryLocalService.getNoAssetEntries();
368            }
369    
370            public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
371                    long userId, long entryId)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    return _bookmarksEntryLocalService.openEntry(userId, entryId);
375            }
376    
377            public void updateAsset(long userId,
378                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
379                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    _bookmarksEntryLocalService.updateAsset(userId, entry,
383                            assetCategoryIds, assetTagNames);
384            }
385    
386            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
387                    long userId, long entryId, long groupId, long folderId,
388                    java.lang.String name, java.lang.String url, java.lang.String comments,
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, comments, serviceContext);
394            }
395    
396            public BookmarksEntryLocalService getWrappedBookmarksEntryLocalService() {
397                    return _bookmarksEntryLocalService;
398            }
399    
400            private BookmarksEntryLocalService _bookmarksEntryLocalService;
401    }