001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link DLFolderLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DLFolderLocalService
024     * @generated
025     */
026    public class DLFolderLocalServiceWrapper implements DLFolderLocalService {
027            public DLFolderLocalServiceWrapper(
028                    DLFolderLocalService dlFolderLocalService) {
029                    _dlFolderLocalService = dlFolderLocalService;
030            }
031    
032            /**
033            * Adds the d l folder to the database. Also notifies the appropriate model listeners.
034            *
035            * @param dlFolder the d l folder
036            * @return the d l folder that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
040                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _dlFolderLocalService.addDLFolder(dlFolder);
043            }
044    
045            /**
046            * Creates a new d l folder with the primary key. Does not add the d l folder to the database.
047            *
048            * @param folderId the primary key for the new d l folder
049            * @return the new d l folder
050            */
051            public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
052                    long folderId) {
053                    return _dlFolderLocalService.createDLFolder(folderId);
054            }
055    
056            /**
057            * Deletes the d l folder with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param folderId the primary key of the d l folder
060            * @throws PortalException if a d l folder with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteDLFolder(long folderId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _dlFolderLocalService.deleteDLFolder(folderId);
067            }
068    
069            /**
070            * Deletes the d l folder from the database. Also notifies the appropriate model listeners.
071            *
072            * @param dlFolder the d l folder
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteDLFolder(
076                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _dlFolderLocalService.deleteDLFolder(dlFolder);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _dlFolderLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _dlFolderLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _dlFolderLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _dlFolderLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the d l folder with the primary key.
154            *
155            * @param folderId the primary key of the d l folder
156            * @return the d l folder
157            * @throws PortalException if a d l folder with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
161                    long folderId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _dlFolderLocalService.getDLFolder(folderId);
165            }
166    
167            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _dlFolderLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the d l folder with the UUID in the group.
176            *
177            * @param uuid the UUID of d l folder
178            * @param groupId the group id of the d l folder
179            * @return the d l folder
180            * @throws PortalException if a d l folder with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _dlFolderLocalService.getDLFolderByUuidAndGroupId(uuid, groupId);
188            }
189    
190            /**
191            * Returns a range of all the d l folders.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of d l folders
198            * @param end the upper bound of the range of d l folders (not inclusive)
199            * @return the range of d l folders
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _dlFolderLocalService.getDLFolders(start, end);
206            }
207    
208            /**
209            * Returns the number of d l folders.
210            *
211            * @return the number of d l folders
212            * @throws SystemException if a system exception occurred
213            */
214            public int getDLFoldersCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _dlFolderLocalService.getDLFoldersCount();
217            }
218    
219            /**
220            * Updates the d l folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param dlFolder the d l folder
223            * @return the d l folder that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
227                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _dlFolderLocalService.updateDLFolder(dlFolder);
230            }
231    
232            /**
233            * Updates the d l folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param dlFolder the d l folder
236            * @param merge whether to merge the d l folder 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.
237            * @return the d l folder that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
241                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
242                    boolean merge)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _dlFolderLocalService.updateDLFolder(dlFolder, merge);
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            public java.lang.String getBeanIdentifier() {
253                    return _dlFolderLocalService.getBeanIdentifier();
254            }
255    
256            /**
257            * Sets the Spring bean ID for this bean.
258            *
259            * @param beanIdentifier the Spring bean ID for this bean
260            */
261            public void setBeanIdentifier(java.lang.String beanIdentifier) {
262                    _dlFolderLocalService.setBeanIdentifier(beanIdentifier);
263            }
264    
265            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
266                    long userId, long groupId, long parentFolderId, java.lang.String name,
267                    java.lang.String description,
268                    com.liferay.portal.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _dlFolderLocalService.addFolder(userId, groupId, parentFolderId,
272                            name, description, serviceContext);
273            }
274    
275            public void addFolderResources(
276                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
277                    boolean addCommunityPermissions, boolean addGuestPermissions)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _dlFolderLocalService.addFolderResources(folder,
281                            addCommunityPermissions, addGuestPermissions);
282            }
283    
284            public void addFolderResources(
285                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
286                    java.lang.String[] communityPermissions,
287                    java.lang.String[] guestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _dlFolderLocalService.addFolderResources(folder, communityPermissions,
291                            guestPermissions);
292            }
293    
294            public void addFolderResources(long folderId,
295                    boolean addCommunityPermissions, boolean addGuestPermissions)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _dlFolderLocalService.addFolderResources(folderId,
299                            addCommunityPermissions, addGuestPermissions);
300            }
301    
302            public void addFolderResources(long folderId,
303                    java.lang.String[] communityPermissions,
304                    java.lang.String[] guestPermissions)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _dlFolderLocalService.addFolderResources(folderId,
308                            communityPermissions, guestPermissions);
309            }
310    
311            public void deleteFolder(
312                    com.liferay.portlet.documentlibrary.model.DLFolder folder)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _dlFolderLocalService.deleteFolder(folder);
316            }
317    
318            public void deleteFolder(long folderId)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _dlFolderLocalService.deleteFolder(folderId);
322            }
323    
324            public void deleteFolders(long groupId)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    _dlFolderLocalService.deleteFolders(groupId);
328            }
329    
330            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
331                    long companyId, int start, int end)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _dlFolderLocalService.getCompanyFolders(companyId, start, end);
334            }
335    
336            public int getCompanyFoldersCount(long companyId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _dlFolderLocalService.getCompanyFoldersCount(companyId);
339            }
340    
341            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
342                    long groupId, java.util.List<java.lang.Long> folderIds, int status,
343                    int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _dlFolderLocalService.getFileEntriesAndFileShortcuts(groupId,
346                            folderIds, status, start, end);
347            }
348    
349            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
350                    long groupId, long folderId, int status, int start, int end)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _dlFolderLocalService.getFileEntriesAndFileShortcuts(groupId,
353                            folderId, status, start, end);
354            }
355    
356            public int getFileEntriesAndFileShortcutsCount(long groupId,
357                    java.util.List<java.lang.Long> folderIds, int status)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _dlFolderLocalService.getFileEntriesAndFileShortcutsCount(groupId,
360                            folderIds, status);
361            }
362    
363            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
364                    int status) throws com.liferay.portal.kernel.exception.SystemException {
365                    return _dlFolderLocalService.getFileEntriesAndFileShortcutsCount(groupId,
366                            folderId, status);
367            }
368    
369            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
370                    long folderId)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return _dlFolderLocalService.getFolder(folderId);
374            }
375    
376            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
377                    long groupId, long parentFolderId, java.lang.String name)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    return _dlFolderLocalService.getFolder(groupId, parentFolderId, name);
381            }
382    
383            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
384                    long companyId)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _dlFolderLocalService.getFolders(companyId);
387            }
388    
389            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
390                    long groupId, long parentFolderId)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _dlFolderLocalService.getFolders(groupId, parentFolderId);
393            }
394    
395            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
396                    long groupId, long parentFolderId, int start, int end)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _dlFolderLocalService.getFolders(groupId, parentFolderId, start,
399                            end);
400            }
401    
402            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
403                    long groupId, java.util.List<java.lang.Long> folderIds, int status,
404                    int start, int end)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
407                            folderIds, status, start, end);
408            }
409    
410            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
411                    long groupId, long folderId, int status, int start, int end)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
414                            folderId, status, start, end);
415            }
416    
417            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
418                    java.util.List<java.lang.Long> folderIds, int status)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
421                            folderIds, status);
422            }
423    
424            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
425                    long folderId, int status)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
428                            folderId, status);
429            }
430    
431            public int getFoldersCount(long groupId, long parentFolderId)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _dlFolderLocalService.getFoldersCount(groupId, parentFolderId);
434            }
435    
436            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
437                    long groupId, long folderId)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    _dlFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
440            }
441    
442            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
443                    long folderId, long parentFolderId, java.lang.String name,
444                    java.lang.String description,
445                    com.liferay.portal.service.ServiceContext serviceContext)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    return _dlFolderLocalService.updateFolder(folderId, parentFolderId,
449                            name, description, serviceContext);
450            }
451    
452            public DLFolderLocalService getWrappedDLFolderLocalService() {
453                    return _dlFolderLocalService;
454            }
455    
456            public void setWrappedDLFolderLocalService(
457                    DLFolderLocalService dlFolderLocalService) {
458                    _dlFolderLocalService = dlFolderLocalService;
459            }
460    
461            private DLFolderLocalService _dlFolderLocalService;
462    }