001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link LockLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       LockLocalService
025     * @generated
026     */
027    public class LockLocalServiceWrapper implements LockLocalService {
028            public LockLocalServiceWrapper(LockLocalService lockLocalService) {
029                    _lockLocalService = lockLocalService;
030            }
031    
032            public com.liferay.portal.model.Lock addLock(
033                    com.liferay.portal.model.Lock lock)
034                    throws com.liferay.portal.kernel.exception.SystemException {
035                    return _lockLocalService.addLock(lock);
036            }
037    
038            public com.liferay.portal.model.Lock createLock(long lockId) {
039                    return _lockLocalService.createLock(lockId);
040            }
041    
042            public void deleteLock(long lockId)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    _lockLocalService.deleteLock(lockId);
046            }
047    
048            public void deleteLock(com.liferay.portal.model.Lock lock)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    _lockLocalService.deleteLock(lock);
051            }
052    
053            @SuppressWarnings("unchecked")
054            public java.util.List dynamicQuery(
055                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
056                    throws com.liferay.portal.kernel.exception.SystemException {
057                    return _lockLocalService.dynamicQuery(dynamicQuery);
058            }
059    
060            @SuppressWarnings("unchecked")
061            public java.util.List dynamicQuery(
062                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
063                    int end) throws com.liferay.portal.kernel.exception.SystemException {
064                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end);
065            }
066    
067            @SuppressWarnings("unchecked")
068            public java.util.List dynamicQuery(
069                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070                    int end,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end,
074                            orderByComparator);
075            }
076    
077            public long dynamicQueryCount(
078                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return _lockLocalService.dynamicQueryCount(dynamicQuery);
081            }
082    
083            public com.liferay.portal.model.Lock getLock(long lockId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _lockLocalService.getLock(lockId);
087            }
088    
089            public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
090                    int end) throws com.liferay.portal.kernel.exception.SystemException {
091                    return _lockLocalService.getLocks(start, end);
092            }
093    
094            public int getLocksCount()
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _lockLocalService.getLocksCount();
097            }
098    
099            public com.liferay.portal.model.Lock updateLock(
100                    com.liferay.portal.model.Lock lock)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _lockLocalService.updateLock(lock);
103            }
104    
105            public com.liferay.portal.model.Lock updateLock(
106                    com.liferay.portal.model.Lock lock, boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _lockLocalService.updateLock(lock, merge);
109            }
110    
111            public void clear()
112                    throws com.liferay.portal.kernel.exception.SystemException {
113                    _lockLocalService.clear();
114            }
115    
116            public com.liferay.portal.model.Lock getLock(java.lang.String className,
117                    long key)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return _lockLocalService.getLock(className, key);
121            }
122    
123            public com.liferay.portal.model.Lock getLock(java.lang.String className,
124                    java.lang.String key)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException {
127                    return _lockLocalService.getLock(className, key);
128            }
129    
130            public boolean hasLock(long userId, java.lang.String className, long key)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return _lockLocalService.hasLock(userId, className, key);
134            }
135    
136            public boolean hasLock(long userId, java.lang.String className,
137                    java.lang.String key)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    return _lockLocalService.hasLock(userId, className, key);
141            }
142    
143            public boolean isLocked(java.lang.String className, long key)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException {
146                    return _lockLocalService.isLocked(className, key);
147            }
148    
149            public boolean isLocked(java.lang.String className, java.lang.String key)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    return _lockLocalService.isLocked(className, key);
153            }
154    
155            public com.liferay.portal.model.Lock lock(long userId,
156                    java.lang.String className, long key, java.lang.String owner,
157                    boolean inheritable, long expirationTime)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _lockLocalService.lock(userId, className, key, owner,
161                            inheritable, expirationTime);
162            }
163    
164            public com.liferay.portal.model.Lock lock(long userId,
165                    java.lang.String className, java.lang.String key,
166                    java.lang.String owner, boolean inheritable, long expirationTime)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _lockLocalService.lock(userId, className, key, owner,
170                            inheritable, expirationTime);
171            }
172    
173            public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
174                    long expirationTime)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return _lockLocalService.refresh(uuid, expirationTime);
178            }
179    
180            public void unlock(java.lang.String className, long key)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    _lockLocalService.unlock(className, key);
183            }
184    
185            public void unlock(java.lang.String className, java.lang.String key)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    _lockLocalService.unlock(className, key);
188            }
189    
190            public LockLocalService getWrappedLockLocalService() {
191                    return _lockLocalService;
192            }
193    
194            private LockLocalService _lockLocalService;
195    }