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 groupId, long parentFolderId, java.lang.String name,
41          java.lang.String description,
42          com.liferay.portal.service.ServiceContext serviceContext)
43          throws com.liferay.portal.kernel.exception.PortalException,
44              com.liferay.portal.kernel.exception.SystemException {
45          return _dlFolderService.addFolder(groupId, parentFolderId, name,
46              description, serviceContext);
47      }
48  
49      public com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
50          long groupId, long sourceFolderId, long parentFolderId,
51          java.lang.String name, java.lang.String description,
52          com.liferay.portal.service.ServiceContext serviceContext)
53          throws com.liferay.portal.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException,
55              java.rmi.RemoteException {
56          return _dlFolderService.copyFolder(groupId, sourceFolderId,
57              parentFolderId, name, description, serviceContext);
58      }
59  
60      public void deleteFolder(long folderId)
61          throws com.liferay.portal.kernel.exception.PortalException,
62              com.liferay.portal.kernel.exception.SystemException,
63              java.rmi.RemoteException {
64          _dlFolderService.deleteFolder(folderId);
65      }
66  
67      public void deleteFolder(long groupId, long parentFolderId,
68          java.lang.String name)
69          throws com.liferay.portal.kernel.exception.PortalException,
70              com.liferay.portal.kernel.exception.SystemException,
71              java.rmi.RemoteException {
72          _dlFolderService.deleteFolder(groupId, parentFolderId, name);
73      }
74  
75      public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
76          long folderId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return _dlFolderService.getFolder(folderId);
80      }
81  
82      public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
83          long groupId, long parentFolderId, java.lang.String name)
84          throws com.liferay.portal.kernel.exception.PortalException,
85              com.liferay.portal.kernel.exception.SystemException {
86          return _dlFolderService.getFolder(groupId, parentFolderId, name);
87      }
88  
89      public long getFolderId(long groupId, long parentFolderId,
90          java.lang.String name)
91          throws com.liferay.portal.kernel.exception.PortalException,
92              com.liferay.portal.kernel.exception.SystemException {
93          return _dlFolderService.getFolderId(groupId, parentFolderId, name);
94      }
95  
96      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
97          long groupId, long parentFolderId)
98          throws com.liferay.portal.kernel.exception.PortalException,
99              com.liferay.portal.kernel.exception.SystemException {
100         return _dlFolderService.getFolders(groupId, parentFolderId);
101     }
102 
103     public boolean hasInheritableLock(long folderId)
104         throws com.liferay.portal.kernel.exception.PortalException,
105             com.liferay.portal.kernel.exception.SystemException {
106         return _dlFolderService.hasInheritableLock(folderId);
107     }
108 
109     public com.liferay.portal.model.Lock lockFolder(long folderId)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException,
112             java.rmi.RemoteException {
113         return _dlFolderService.lockFolder(folderId);
114     }
115 
116     public com.liferay.portal.model.Lock lockFolder(long folderId,
117         java.lang.String owner, boolean inheritable, long expirationTime)
118         throws com.liferay.portal.kernel.exception.PortalException,
119             com.liferay.portal.kernel.exception.SystemException,
120             java.rmi.RemoteException {
121         return _dlFolderService.lockFolder(folderId, owner, inheritable,
122             expirationTime);
123     }
124 
125     public com.liferay.portal.model.Lock refreshFolderLock(
126         java.lang.String lockUuid, long expirationTime)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         return _dlFolderService.refreshFolderLock(lockUuid, expirationTime);
130     }
131 
132     public void unlockFolder(long groupId, long folderId,
133         java.lang.String lockUuid)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         _dlFolderService.unlockFolder(groupId, folderId, lockUuid);
137     }
138 
139     public void unlockFolder(long groupId, long parentFolderId,
140         java.lang.String name, java.lang.String lockUuid)
141         throws com.liferay.portal.kernel.exception.PortalException,
142             com.liferay.portal.kernel.exception.SystemException {
143         _dlFolderService.unlockFolder(groupId, parentFolderId, name, lockUuid);
144     }
145 
146     public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
147         long folderId, long parentFolderId, java.lang.String name,
148         java.lang.String description,
149         com.liferay.portal.service.ServiceContext serviceContext)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException,
152             java.rmi.RemoteException {
153         return _dlFolderService.updateFolder(folderId, parentFolderId, name,
154             description, serviceContext);
155     }
156 
157     public boolean verifyInheritableLock(long folderId,
158         java.lang.String lockUuid)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException {
161         return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
162     }
163 
164     public DLFolderService getWrappedDLFolderService() {
165         return _dlFolderService;
166     }
167 
168     private DLFolderService _dlFolderService;
169 }