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