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.portal.service;
16  
17  
18  /**
19   * <a href="LockLocalServiceUtil.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 LockLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       LockLocalService
32   * @generated
33   */
34  public class LockLocalServiceWrapper implements LockLocalService {
35      public LockLocalServiceWrapper(LockLocalService lockLocalService) {
36          _lockLocalService = lockLocalService;
37      }
38  
39      public com.liferay.portal.model.Lock addLock(
40          com.liferay.portal.model.Lock lock)
41          throws com.liferay.portal.kernel.exception.SystemException {
42          return _lockLocalService.addLock(lock);
43      }
44  
45      public com.liferay.portal.model.Lock createLock(long lockId) {
46          return _lockLocalService.createLock(lockId);
47      }
48  
49      public void deleteLock(long lockId)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          _lockLocalService.deleteLock(lockId);
53      }
54  
55      public void deleteLock(com.liferay.portal.model.Lock lock)
56          throws com.liferay.portal.kernel.exception.SystemException {
57          _lockLocalService.deleteLock(lock);
58      }
59  
60      public java.util.List<Object> dynamicQuery(
61          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62          throws com.liferay.portal.kernel.exception.SystemException {
63          return _lockLocalService.dynamicQuery(dynamicQuery);
64      }
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
68          int end) throws com.liferay.portal.kernel.exception.SystemException {
69          return _lockLocalService.dynamicQuery(dynamicQuery, start, end);
70      }
71  
72      public com.liferay.portal.model.Lock getLock(long lockId)
73          throws com.liferay.portal.kernel.exception.PortalException,
74              com.liferay.portal.kernel.exception.SystemException {
75          return _lockLocalService.getLock(lockId);
76      }
77  
78      public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
79          int end) throws com.liferay.portal.kernel.exception.SystemException {
80          return _lockLocalService.getLocks(start, end);
81      }
82  
83      public int getLocksCount()
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return _lockLocalService.getLocksCount();
86      }
87  
88      public com.liferay.portal.model.Lock updateLock(
89          com.liferay.portal.model.Lock lock)
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _lockLocalService.updateLock(lock);
92      }
93  
94      public com.liferay.portal.model.Lock updateLock(
95          com.liferay.portal.model.Lock lock, boolean merge)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return _lockLocalService.updateLock(lock, merge);
98      }
99  
100     public void clear()
101         throws com.liferay.portal.kernel.exception.SystemException {
102         _lockLocalService.clear();
103     }
104 
105     public com.liferay.portal.model.Lock getLock(java.lang.String className,
106         long key)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return _lockLocalService.getLock(className, key);
110     }
111 
112     public com.liferay.portal.model.Lock getLock(java.lang.String className,
113         java.lang.String key)
114         throws com.liferay.portal.kernel.exception.PortalException,
115             com.liferay.portal.kernel.exception.SystemException {
116         return _lockLocalService.getLock(className, key);
117     }
118 
119     public boolean hasLock(long userId, java.lang.String className, long key)
120         throws com.liferay.portal.kernel.exception.PortalException,
121             com.liferay.portal.kernel.exception.SystemException {
122         return _lockLocalService.hasLock(userId, className, key);
123     }
124 
125     public boolean hasLock(long userId, java.lang.String className,
126         java.lang.String key)
127         throws com.liferay.portal.kernel.exception.PortalException,
128             com.liferay.portal.kernel.exception.SystemException {
129         return _lockLocalService.hasLock(userId, className, key);
130     }
131 
132     public boolean isLocked(java.lang.String className, long key)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException {
135         return _lockLocalService.isLocked(className, key);
136     }
137 
138     public boolean isLocked(java.lang.String className, java.lang.String key)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         return _lockLocalService.isLocked(className, key);
142     }
143 
144     public com.liferay.portal.model.Lock lock(long userId,
145         java.lang.String className, long key, java.lang.String owner,
146         boolean inheritable, long expirationTime)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         return _lockLocalService.lock(userId, className, key, owner,
150             inheritable, expirationTime);
151     }
152 
153     public com.liferay.portal.model.Lock lock(long userId,
154         java.lang.String className, java.lang.String key,
155         java.lang.String owner, boolean inheritable, long expirationTime)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return _lockLocalService.lock(userId, className, key, owner,
159             inheritable, expirationTime);
160     }
161 
162     public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
163         long expirationTime)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException {
166         return _lockLocalService.refresh(uuid, expirationTime);
167     }
168 
169     public void unlock(java.lang.String className, long key)
170         throws com.liferay.portal.kernel.exception.SystemException {
171         _lockLocalService.unlock(className, key);
172     }
173 
174     public void unlock(java.lang.String className, java.lang.String key)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         _lockLocalService.unlock(className, key);
177     }
178 
179     public LockLocalService getWrappedLockLocalService() {
180         return _lockLocalService;
181     }
182 
183     private LockLocalService _lockLocalService;
184 }