001    /**
002     * Copyright (c) 2000-2013 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.journal.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link JournalFolderLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       JournalFolderLocalService
026     * @generated
027     */
028    public class JournalFolderLocalServiceWrapper
029            implements JournalFolderLocalService,
030                    ServiceWrapper<JournalFolderLocalService> {
031            public JournalFolderLocalServiceWrapper(
032                    JournalFolderLocalService journalFolderLocalService) {
033                    _journalFolderLocalService = journalFolderLocalService;
034            }
035    
036            /**
037            * Adds the journal folder to the database. Also notifies the appropriate model listeners.
038            *
039            * @param journalFolder the journal folder
040            * @return the journal folder that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
044                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _journalFolderLocalService.addJournalFolder(journalFolder);
047            }
048    
049            /**
050            * Creates a new journal folder with the primary key. Does not add the journal folder to the database.
051            *
052            * @param folderId the primary key for the new journal folder
053            * @return the new journal folder
054            */
055            public com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
056                    long folderId) {
057                    return _journalFolderLocalService.createJournalFolder(folderId);
058            }
059    
060            /**
061            * Deletes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param folderId the primary key of the journal folder
064            * @return the journal folder that was removed
065            * @throws PortalException if a journal folder with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
069                    long folderId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _journalFolderLocalService.deleteJournalFolder(folderId);
073            }
074    
075            /**
076            * Deletes the journal folder from the database. Also notifies the appropriate model listeners.
077            *
078            * @param journalFolder the journal folder
079            * @return the journal folder that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
083                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _journalFolderLocalService.deleteJournalFolder(journalFolder);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _journalFolderLocalService.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 _journalFolderLocalService.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.journal.model.impl.JournalFolderModelImpl}. 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 _journalFolderLocalService.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.journal.model.impl.JournalFolderModelImpl}. 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 _journalFolderLocalService.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 _journalFolderLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
164                    long folderId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _journalFolderLocalService.fetchJournalFolder(folderId);
167            }
168    
169            /**
170            * Returns the journal folder with the primary key.
171            *
172            * @param folderId the primary key of the journal folder
173            * @return the journal folder
174            * @throws PortalException if a journal folder with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
178                    long folderId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _journalFolderLocalService.getJournalFolder(folderId);
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 _journalFolderLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns the journal folder matching the UUID and group.
193            *
194            * @param uuid the journal folder's UUID
195            * @param groupId the primary key of the group
196            * @return the matching journal folder
197            * @throws PortalException if a matching journal folder could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _journalFolderLocalService.getJournalFolderByUuidAndGroupId(uuid,
205                            groupId);
206            }
207    
208            /**
209            * Returns a range of all the journal folders.
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.journal.model.impl.JournalFolderModelImpl}. 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 journal folders
216            * @param end the upper bound of the range of journal folders (not inclusive)
217            * @return the range of journal folders
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
221                    int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _journalFolderLocalService.getJournalFolders(start, end);
224            }
225    
226            /**
227            * Returns the number of journal folders.
228            *
229            * @return the number of journal folders
230            * @throws SystemException if a system exception occurred
231            */
232            public int getJournalFoldersCount()
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _journalFolderLocalService.getJournalFoldersCount();
235            }
236    
237            /**
238            * Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param journalFolder the journal folder
241            * @return the journal folder that was updated
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
245                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _journalFolderLocalService.updateJournalFolder(journalFolder);
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 _journalFolderLocalService.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                    _journalFolderLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.journal.model.JournalFolder addFolder(
269                    long userId, long groupId, long parentFolderId, java.lang.String name,
270                    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 _journalFolderLocalService.addFolder(userId, groupId,
275                            parentFolderId, name, description, serviceContext);
276            }
277    
278            public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
279                    com.liferay.portlet.journal.model.JournalFolder folder)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _journalFolderLocalService.deleteFolder(folder);
283            }
284    
285            public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
286                    com.liferay.portlet.journal.model.JournalFolder folder,
287                    boolean includeTrashedEntries)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return _journalFolderLocalService.deleteFolder(folder,
291                            includeTrashedEntries);
292            }
293    
294            public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
295                    long folderId)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    return _journalFolderLocalService.deleteFolder(folderId);
299            }
300    
301            public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
302                    long folderId, boolean includeTrashedEntries)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    return _journalFolderLocalService.deleteFolder(folderId,
306                            includeTrashedEntries);
307            }
308    
309            public void deleteFolders(long groupId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _journalFolderLocalService.deleteFolders(groupId);
313            }
314    
315            public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
316                    long groupId, long parentFolderId, java.lang.String name)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _journalFolderLocalService.fetchFolder(groupId, parentFolderId,
319                            name);
320            }
321    
322            public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
323                    long groupId, java.lang.String name)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _journalFolderLocalService.fetchFolder(groupId, name);
326            }
327    
328            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
329                    long companyId, int start, int end)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _journalFolderLocalService.getCompanyFolders(companyId, start,
332                            end);
333            }
334    
335            public int getCompanyFoldersCount(long companyId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _journalFolderLocalService.getCompanyFoldersCount(companyId);
338            }
339    
340            public com.liferay.portlet.journal.model.JournalFolder getFolder(
341                    long folderId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _journalFolderLocalService.getFolder(folderId);
345            }
346    
347            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
348                    long groupId)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _journalFolderLocalService.getFolders(groupId);
351            }
352    
353            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
354                    long groupId, long parentFolderId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _journalFolderLocalService.getFolders(groupId, parentFolderId);
357            }
358    
359            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
360                    long groupId, long parentFolderId, int status)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _journalFolderLocalService.getFolders(groupId, parentFolderId,
363                            status);
364            }
365    
366            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
367                    long groupId, long parentFolderId, int start, int end)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _journalFolderLocalService.getFolders(groupId, parentFolderId,
370                            start, end);
371            }
372    
373            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
374                    long groupId, long parentFolderId, int status, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _journalFolderLocalService.getFolders(groupId, parentFolderId,
377                            status, start, end);
378            }
379    
380            public java.util.List<java.lang.Object> getFoldersAndArticles(
381                    long groupId, long folderId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _journalFolderLocalService.getFoldersAndArticles(groupId,
384                            folderId);
385            }
386    
387            public java.util.List<java.lang.Object> getFoldersAndArticles(
388                    long groupId, long folderId, int start, int end,
389                    com.liferay.portal.kernel.util.OrderByComparator obc)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _journalFolderLocalService.getFoldersAndArticles(groupId,
392                            folderId, start, end, obc);
393            }
394    
395            public int getFoldersAndArticlesCount(long groupId,
396                    java.util.List<java.lang.Long> folderIds, int status)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _journalFolderLocalService.getFoldersAndArticlesCount(groupId,
399                            folderIds, status);
400            }
401    
402            public int getFoldersAndArticlesCount(long groupId, long folderId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _journalFolderLocalService.getFoldersAndArticlesCount(groupId,
405                            folderId);
406            }
407    
408            public int getFoldersCount(long groupId, long parentFolderId)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _journalFolderLocalService.getFoldersCount(groupId,
411                            parentFolderId);
412            }
413    
414            public int getFoldersCount(long groupId, long parentFolderId, int status)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _journalFolderLocalService.getFoldersCount(groupId,
417                            parentFolderId, status);
418            }
419    
420            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders()
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _journalFolderLocalService.getNoAssetFolders();
423            }
424    
425            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
426                    long groupId, long folderId)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    _journalFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
429            }
430    
431            public com.liferay.portlet.journal.model.JournalFolder moveFolder(
432                    long folderId, long parentFolderId,
433                    com.liferay.portal.service.ServiceContext serviceContext)
434                    throws com.liferay.portal.kernel.exception.PortalException,
435                            com.liferay.portal.kernel.exception.SystemException {
436                    return _journalFolderLocalService.moveFolder(folderId, parentFolderId,
437                            serviceContext);
438            }
439    
440            public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
441                    long userId, long folderId, long parentFolderId,
442                    com.liferay.portal.service.ServiceContext serviceContext)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return _journalFolderLocalService.moveFolderFromTrash(userId, folderId,
446                            parentFolderId, serviceContext);
447            }
448    
449            public void moveFolderToTrash(long userId, long folderId)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    _journalFolderLocalService.moveFolderToTrash(userId, folderId);
453            }
454    
455            public void restoreFolderFromTrash(long userId, long folderId)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    _journalFolderLocalService.restoreFolderFromTrash(userId, folderId);
459            }
460    
461            public void updateAsset(long userId,
462                    com.liferay.portlet.journal.model.JournalFolder folder,
463                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
464                    long[] assetLinkEntryIds)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    _journalFolderLocalService.updateAsset(userId, folder,
468                            assetCategoryIds, assetTagNames, assetLinkEntryIds);
469            }
470    
471            public com.liferay.portlet.journal.model.JournalFolder updateFolder(
472                    long userId, long folderId, long parentFolderId, java.lang.String name,
473                    java.lang.String description, boolean mergeWithParentFolder,
474                    com.liferay.portal.service.ServiceContext serviceContext)
475                    throws com.liferay.portal.kernel.exception.PortalException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    return _journalFolderLocalService.updateFolder(userId, folderId,
478                            parentFolderId, name, description, mergeWithParentFolder,
479                            serviceContext);
480            }
481    
482            public com.liferay.portlet.journal.model.JournalFolder updateStatus(
483                    long userId, com.liferay.portlet.journal.model.JournalFolder folder,
484                    int status)
485                    throws com.liferay.portal.kernel.exception.PortalException,
486                            com.liferay.portal.kernel.exception.SystemException {
487                    return _journalFolderLocalService.updateStatus(userId, folder, status);
488            }
489    
490            /**
491             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
492             */
493            public JournalFolderLocalService getWrappedJournalFolderLocalService() {
494                    return _journalFolderLocalService;
495            }
496    
497            /**
498             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
499             */
500            public void setWrappedJournalFolderLocalService(
501                    JournalFolderLocalService journalFolderLocalService) {
502                    _journalFolderLocalService = journalFolderLocalService;
503            }
504    
505            public JournalFolderLocalService getWrappedService() {
506                    return _journalFolderLocalService;
507            }
508    
509            public void setWrappedService(
510                    JournalFolderLocalService journalFolderLocalService) {
511                    _journalFolderLocalService = journalFolderLocalService;
512            }
513    
514            private JournalFolderLocalService _journalFolderLocalService;
515    }