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.portlet.social.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link SocialRelationLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       SocialRelationLocalService
024     * @generated
025     */
026    public class SocialRelationLocalServiceWrapper
027            implements SocialRelationLocalService {
028            public SocialRelationLocalServiceWrapper(
029                    SocialRelationLocalService socialRelationLocalService) {
030                    _socialRelationLocalService = socialRelationLocalService;
031            }
032    
033            public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
034                    com.liferay.portlet.social.model.SocialRelation socialRelation)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _socialRelationLocalService.addSocialRelation(socialRelation);
037            }
038    
039            public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
040                    long relationId) {
041                    return _socialRelationLocalService.createSocialRelation(relationId);
042            }
043    
044            public void deleteSocialRelation(long relationId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _socialRelationLocalService.deleteSocialRelation(relationId);
048            }
049    
050            public void deleteSocialRelation(
051                    com.liferay.portlet.social.model.SocialRelation socialRelation)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _socialRelationLocalService.deleteSocialRelation(socialRelation);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _socialRelationLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _socialRelationLocalService.dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return _socialRelationLocalService.dynamicQuery(dynamicQuery, start,
077                            end, orderByComparator);
078            }
079    
080            public long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _socialRelationLocalService.dynamicQueryCount(dynamicQuery);
084            }
085    
086            public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
087                    long relationId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _socialRelationLocalService.getSocialRelation(relationId);
091            }
092    
093            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _socialRelationLocalService.getSocialRelations(start, end);
097            }
098    
099            public int getSocialRelationsCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _socialRelationLocalService.getSocialRelationsCount();
102            }
103    
104            public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
105                    com.liferay.portlet.social.model.SocialRelation socialRelation)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _socialRelationLocalService.updateSocialRelation(socialRelation);
108            }
109    
110            public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
111                    com.liferay.portlet.social.model.SocialRelation socialRelation,
112                    boolean merge)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return _socialRelationLocalService.updateSocialRelation(socialRelation,
115                            merge);
116            }
117    
118            public com.liferay.portlet.social.model.SocialRelation addRelation(
119                    long userId1, long userId2, int type)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException {
122                    return _socialRelationLocalService.addRelation(userId1, userId2, type);
123            }
124    
125            public void deleteRelation(long relationId)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    _socialRelationLocalService.deleteRelation(relationId);
129            }
130    
131            public void deleteRelation(long userId1, long userId2, int type)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    _socialRelationLocalService.deleteRelation(userId1, userId2, type);
135            }
136    
137            public void deleteRelation(
138                    com.liferay.portlet.social.model.SocialRelation relation)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    _socialRelationLocalService.deleteRelation(relation);
142            }
143    
144            public void deleteRelations(long userId)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    _socialRelationLocalService.deleteRelations(userId);
147            }
148    
149            public com.liferay.portlet.social.model.SocialRelation getRelation(
150                    long relationId)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    return _socialRelationLocalService.getRelation(relationId);
154            }
155    
156            public com.liferay.portlet.social.model.SocialRelation getRelation(
157                    long userId1, long userId2, int type)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _socialRelationLocalService.getRelation(userId1, userId2, type);
161            }
162    
163            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
164                    long userId, int type, int start, int end)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _socialRelationLocalService.getRelations(userId, type, start, end);
167            }
168    
169            public int getRelationsCount(long userId, int type)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return _socialRelationLocalService.getRelationsCount(userId, type);
172            }
173    
174            public boolean hasRelation(long userId1, long userId2, int type)
175                    throws com.liferay.portal.kernel.exception.SystemException {
176                    return _socialRelationLocalService.hasRelation(userId1, userId2, type);
177            }
178    
179            public boolean isRelatable(long userId1, long userId2, int type)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    return _socialRelationLocalService.isRelatable(userId1, userId2, type);
182            }
183    
184            public SocialRelationLocalService getWrappedSocialRelationLocalService() {
185                    return _socialRelationLocalService;
186            }
187    
188            private SocialRelationLocalService _socialRelationLocalService;
189    }