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     * <p>
019     * This class is a wrapper for {@link LockLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       LockLocalService
024     * @generated
025     */
026    public class LockLocalServiceWrapper implements LockLocalService {
027            public LockLocalServiceWrapper(LockLocalService lockLocalService) {
028                    _lockLocalService = lockLocalService;
029            }
030    
031            public com.liferay.portal.model.Lock addLock(
032                    com.liferay.portal.model.Lock lock)
033                    throws com.liferay.portal.kernel.exception.SystemException {
034                    return _lockLocalService.addLock(lock);
035            }
036    
037            public com.liferay.portal.model.Lock createLock(long lockId) {
038                    return _lockLocalService.createLock(lockId);
039            }
040    
041            public void deleteLock(long lockId)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    _lockLocalService.deleteLock(lockId);
045            }
046    
047            public void deleteLock(com.liferay.portal.model.Lock lock)
048                    throws com.liferay.portal.kernel.exception.SystemException {
049                    _lockLocalService.deleteLock(lock);
050            }
051    
052            @SuppressWarnings("unchecked")
053            public java.util.List dynamicQuery(
054                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
055                    throws com.liferay.portal.kernel.exception.SystemException {
056                    return _lockLocalService.dynamicQuery(dynamicQuery);
057            }
058    
059            @SuppressWarnings("unchecked")
060            public java.util.List dynamicQuery(
061                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
062                    int end) throws com.liferay.portal.kernel.exception.SystemException {
063                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end);
064            }
065    
066            @SuppressWarnings("unchecked")
067            public java.util.List dynamicQuery(
068                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069                    int end,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.kernel.exception.SystemException {
072                    return _lockLocalService.dynamicQuery(dynamicQuery, start, end,
073                            orderByComparator);
074            }
075    
076            public long dynamicQueryCount(
077                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return _lockLocalService.dynamicQueryCount(dynamicQuery);
080            }
081    
082            public com.liferay.portal.model.Lock getLock(long lockId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return _lockLocalService.getLock(lockId);
086            }
087    
088            public java.util.List<com.liferay.portal.model.Lock> getLocks(int start,
089                    int end) throws com.liferay.portal.kernel.exception.SystemException {
090                    return _lockLocalService.getLocks(start, end);
091            }
092    
093            public int getLocksCount()
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _lockLocalService.getLocksCount();
096            }
097    
098            public com.liferay.portal.model.Lock updateLock(
099                    com.liferay.portal.model.Lock lock)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _lockLocalService.updateLock(lock);
102            }
103    
104            public com.liferay.portal.model.Lock updateLock(
105                    com.liferay.portal.model.Lock lock, boolean merge)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _lockLocalService.updateLock(lock, merge);
108            }
109    
110            public void clear()
111                    throws com.liferay.portal.kernel.exception.SystemException {
112                    _lockLocalService.clear();
113            }
114    
115            public com.liferay.portal.model.Lock getLock(java.lang.String className,
116                    long key)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    return _lockLocalService.getLock(className, key);
120            }
121    
122            public com.liferay.portal.model.Lock getLock(java.lang.String className,
123                    java.lang.String key)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return _lockLocalService.getLock(className, key);
127            }
128    
129            public boolean hasLock(long userId, java.lang.String className, long key)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    return _lockLocalService.hasLock(userId, className, key);
133            }
134    
135            public boolean hasLock(long userId, java.lang.String className,
136                    java.lang.String key)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return _lockLocalService.hasLock(userId, className, key);
140            }
141    
142            public boolean isLocked(java.lang.String className, long key)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return _lockLocalService.isLocked(className, key);
146            }
147    
148            public boolean isLocked(java.lang.String className, java.lang.String key)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return _lockLocalService.isLocked(className, key);
152            }
153    
154            public com.liferay.portal.model.Lock lock(long userId,
155                    java.lang.String className, long key, java.lang.String owner,
156                    boolean inheritable, long expirationTime)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return _lockLocalService.lock(userId, className, key, owner,
160                            inheritable, expirationTime);
161            }
162    
163            public com.liferay.portal.model.Lock lock(long userId,
164                    java.lang.String className, java.lang.String key,
165                    java.lang.String owner, boolean inheritable, long expirationTime)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _lockLocalService.lock(userId, className, key, owner,
169                            inheritable, expirationTime);
170            }
171    
172            public com.liferay.portal.model.Lock refresh(java.lang.String uuid,
173                    long expirationTime)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _lockLocalService.refresh(uuid, expirationTime);
177            }
178    
179            public void unlock(java.lang.String className, long key)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    _lockLocalService.unlock(className, key);
182            }
183    
184            public void unlock(java.lang.String className, java.lang.String key)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    _lockLocalService.unlock(className, key);
187            }
188    
189            public LockLocalService getWrappedLockLocalService() {
190                    return _lockLocalService;
191            }
192    
193            private LockLocalService _lockLocalService;
194    }