1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.documentlibrary.service;
24  
25  
26  /**
27   * <a href="DLFolderServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link DLFolderService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       DLFolderService
40   * @generated
41   */
42  public class DLFolderServiceWrapper implements DLFolderService {
43      public DLFolderServiceWrapper(DLFolderService dlFolderService) {
44          _dlFolderService = dlFolderService;
45      }
46  
47      public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
48          long groupId, long parentFolderId, java.lang.String name,
49          java.lang.String description,
50          com.liferay.portal.service.ServiceContext serviceContext)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          return _dlFolderService.addFolder(groupId, parentFolderId, name,
54              description, serviceContext);
55      }
56  
57      public com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
58          long groupId, long sourceFolderId, long parentFolderId,
59          java.lang.String name, java.lang.String description,
60          com.liferay.portal.service.ServiceContext serviceContext)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException, java.rmi.RemoteException {
63          return _dlFolderService.copyFolder(groupId, sourceFolderId,
64              parentFolderId, name, description, serviceContext);
65      }
66  
67      public void deleteFolder(long folderId)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException, java.rmi.RemoteException {
70          _dlFolderService.deleteFolder(folderId);
71      }
72  
73      public void deleteFolder(long groupId, long parentFolderId,
74          java.lang.String name)
75          throws com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException, java.rmi.RemoteException {
77          _dlFolderService.deleteFolder(groupId, parentFolderId, name);
78      }
79  
80      public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
81          long folderId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return _dlFolderService.getFolder(folderId);
85      }
86  
87      public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
88          long groupId, long parentFolderId, java.lang.String name)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException {
91          return _dlFolderService.getFolder(groupId, parentFolderId, name);
92      }
93  
94      public long getFolderId(long groupId, long parentFolderId,
95          java.lang.String name)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException {
98          return _dlFolderService.getFolderId(groupId, parentFolderId, name);
99      }
100 
101     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
102         long groupId, long parentFolderId)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException {
105         return _dlFolderService.getFolders(groupId, parentFolderId);
106     }
107 
108     public boolean hasInheritableLock(long folderId)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         return _dlFolderService.hasInheritableLock(folderId);
112     }
113 
114     public com.liferay.portal.model.Lock lockFolder(long folderId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException, java.rmi.RemoteException {
117         return _dlFolderService.lockFolder(folderId);
118     }
119 
120     public com.liferay.portal.model.Lock lockFolder(long folderId,
121         java.lang.String owner, boolean inheritable, long expirationTime)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException, java.rmi.RemoteException {
124         return _dlFolderService.lockFolder(folderId, owner, inheritable,
125             expirationTime);
126     }
127 
128     public com.liferay.portal.model.Lock refreshFolderLock(
129         java.lang.String lockUuid, long expirationTime)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return _dlFolderService.refreshFolderLock(lockUuid, expirationTime);
133     }
134 
135     public void reIndexSearch(long companyId)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         _dlFolderService.reIndexSearch(companyId);
139     }
140 
141     public void unlockFolder(long groupId, long parentFolderId,
142         java.lang.String name, java.lang.String lockUuid)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         _dlFolderService.unlockFolder(groupId, parentFolderId, name, lockUuid);
146     }
147 
148     public void unlockFolder(long folderId, java.lang.String lockUuid)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         _dlFolderService.unlockFolder(folderId, lockUuid);
152     }
153 
154     public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
155         long folderId, long parentFolderId, java.lang.String name,
156         java.lang.String description,
157         com.liferay.portal.service.ServiceContext serviceContext)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException, java.rmi.RemoteException {
160         return _dlFolderService.updateFolder(folderId, parentFolderId, name,
161             description, serviceContext);
162     }
163 
164     public boolean verifyInheritableLock(long folderId,
165         java.lang.String lockUuid)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
169     }
170 
171     public DLFolderService getWrappedDLFolderService() {
172         return _dlFolderService;
173     }
174 
175     private DLFolderService _dlFolderService;
176 }