1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.documentlibrary.service;
16  
17  
18  /**
19   * <a href="DLFolderServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link DLFolderService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       DLFolderService
32   * @generated
33   */
34  public class DLFolderServiceWrapper implements DLFolderService {
35      public DLFolderServiceWrapper(DLFolderService dlFolderService) {
36          _dlFolderService = dlFolderService;
37      }
38  
39      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
40          long plid, long parentFolderId, java.lang.String name,
41          java.lang.String description, boolean addCommunityPermissions,
42          boolean addGuestPermissions)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException, java.rmi.RemoteException {
45          return _dlFolderService.addFolder(plid, parentFolderId, name,
46              description, addCommunityPermissions, addGuestPermissions);
47      }
48  
49      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
50          long plid, long parentFolderId, java.lang.String name,
51          java.lang.String description, java.lang.String[] communityPermissions,
52          java.lang.String[] guestPermissions)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException, java.rmi.RemoteException {
55          return _dlFolderService.addFolder(plid, parentFolderId, name,
56              description, communityPermissions, guestPermissions);
57      }
58  
59      public com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
60          long plid, long sourceFolderId, long parentFolderId,
61          java.lang.String name, java.lang.String description,
62          boolean addCommunityPermissions, boolean addGuestPermissions)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException, java.rmi.RemoteException {
65          return _dlFolderService.copyFolder(plid, sourceFolderId,
66              parentFolderId, name, description, addCommunityPermissions,
67              addGuestPermissions);
68      }
69  
70      public void deleteFolder(long folderId)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException, java.rmi.RemoteException {
73          _dlFolderService.deleteFolder(folderId);
74      }
75  
76      public void deleteFolder(long groupId, long parentFolderId,
77          java.lang.String name)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException, java.rmi.RemoteException {
80          _dlFolderService.deleteFolder(groupId, parentFolderId, name);
81      }
82  
83      public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
84          long folderId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException, java.rmi.RemoteException {
87          return _dlFolderService.getFolder(folderId);
88      }
89  
90      public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
91          long groupId, long parentFolderId, java.lang.String name)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException, java.rmi.RemoteException {
94          return _dlFolderService.getFolder(groupId, parentFolderId, name);
95      }
96  
97      public long getFolderId(long groupId, long parentFolderId,
98          java.lang.String name)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException, java.rmi.RemoteException {
101         return _dlFolderService.getFolderId(groupId, parentFolderId, name);
102     }
103 
104     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
105         long groupId, long parentFolderId)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException, java.rmi.RemoteException {
108         return _dlFolderService.getFolders(groupId, parentFolderId);
109     }
110 
111     public void reIndexSearch(long companyId)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException, java.rmi.RemoteException {
114         _dlFolderService.reIndexSearch(companyId);
115     }
116 
117     public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
118         long folderId, long parentFolderId, java.lang.String name,
119         java.lang.String description)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException, java.rmi.RemoteException {
122         return _dlFolderService.updateFolder(folderId, parentFolderId, name,
123             description);
124     }
125 
126     public DLFolderService getWrappedDLFolderService() {
127         return _dlFolderService;
128     }
129 
130     private DLFolderService _dlFolderService;
131 }