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 java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException {
77          return _lockLocalService.dynamicQuery(dynamicQuery, start, end,
78              orderByComparator);
79      }
80  
81      public int dynamicQueryCount(
82          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
83          throws com.liferay.portal.kernel.exception.SystemException {
84          return _lockLocalService.dynamicQueryCount(dynamicQuery);
85      }
86  
87      public com.liferay.portal.model.Lock getLock(long lockId)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException {
90          return _lockLocalService.getLock(lockId);
91      }
92  
93      public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
94          int end) throws com.liferay.portal.kernel.exception.SystemException {
95          return _lockLocalService.getLocks(start, end);
96      }
97  
98      public int getLocksCount()
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return _lockLocalService.getLocksCount();
101     }
102 
103     public com.liferay.portal.model.Lock updateLock(
104         com.liferay.portal.model.Lock lock)
105         throws com.liferay.portal.kernel.exception.SystemException {
106         return _lockLocalService.updateLock(lock);
107     }
108 
109     public com.liferay.portal.model.Lock updateLock(
110         com.liferay.portal.model.Lock lock, boolean merge)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _lockLocalService.updateLock(lock, merge);
113     }
114 
115     public void clear()
116         throws com.liferay.portal.kernel.exception.SystemException {
117         _lockLocalService.clear();
118     }
119 
120     public com.liferay.portal.model.Lock getLock(java.lang.String className,
121         long key)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException {
124         return _lockLocalService.getLock(className, key);
125     }
126 
127     public com.liferay.portal.model.Lock getLock(java.lang.String className,
128         java.lang.String key)
129         throws com.liferay.portal.kernel.exception.PortalException,
130             com.liferay.portal.kernel.exception.SystemException {
131         return _lockLocalService.getLock(className, key);
132     }
133 
134     public boolean hasLock(long userId, java.lang.String className, long key)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return _lockLocalService.hasLock(userId, className, key);
138     }
139 
140     public boolean hasLock(long userId, java.lang.String className,
141         java.lang.String key)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         return _lockLocalService.hasLock(userId, className, key);
145     }
146 
147     public boolean isLocked(java.lang.String className, long key)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         return _lockLocalService.isLocked(className, key);
151     }
152 
153     public boolean isLocked(java.lang.String className, java.lang.String key)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return _lockLocalService.isLocked(className, key);
157     }
158 
159     public com.liferay.portal.model.Lock lock(long userId,
160         java.lang.String className, long key, java.lang.String owner,
161         boolean inheritable, long expirationTime)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return _lockLocalService.lock(userId, className, key, owner,
165             inheritable, expirationTime);
166     }
167 
168     public com.liferay.portal.model.Lock lock(long userId,
169         java.lang.String className, java.lang.String key,
170         java.lang.String owner, boolean inheritable, long expirationTime)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         return _lockLocalService.lock(userId, className, key, owner,
174             inheritable, expirationTime);
175     }
176 
177     public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
178         long expirationTime)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException {
181         return _lockLocalService.refresh(uuid, expirationTime);
182     }
183 
184     public void unlock(java.lang.String className, long key)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         _lockLocalService.unlock(className, key);
187     }
188 
189     public void unlock(java.lang.String className, java.lang.String key)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         _lockLocalService.unlock(className, key);
192     }
193 
194     public LockLocalService getWrappedLockLocalService() {
195         return _lockLocalService;
196     }
197 
198     private LockLocalService _lockLocalService;
199 }