1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service;
24  
25  
26  /**
27   * <a href="SocialRelationLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link SocialRelationLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       SocialRelationLocalService
40   * @generated
41   */
42  public class SocialRelationLocalServiceWrapper
43      implements SocialRelationLocalService {
44      public SocialRelationLocalServiceWrapper(
45          SocialRelationLocalService socialRelationLocalService) {
46          _socialRelationLocalService = socialRelationLocalService;
47      }
48  
49      public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
50          com.liferay.portlet.social.model.SocialRelation socialRelation)
51          throws com.liferay.portal.SystemException {
52          return _socialRelationLocalService.addSocialRelation(socialRelation);
53      }
54  
55      public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
56          long relationId) {
57          return _socialRelationLocalService.createSocialRelation(relationId);
58      }
59  
60      public void deleteSocialRelation(long relationId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          _socialRelationLocalService.deleteSocialRelation(relationId);
64      }
65  
66      public void deleteSocialRelation(
67          com.liferay.portlet.social.model.SocialRelation socialRelation)
68          throws com.liferay.portal.SystemException {
69          _socialRelationLocalService.deleteSocialRelation(socialRelation);
70      }
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException {
75          return _socialRelationLocalService.dynamicQuery(dynamicQuery);
76      }
77  
78      public java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end) throws com.liferay.portal.SystemException {
81          return _socialRelationLocalService.dynamicQuery(dynamicQuery, start, end);
82      }
83  
84      public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
85          long relationId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return _socialRelationLocalService.getSocialRelation(relationId);
89      }
90  
91      public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
92          int start, int end) throws com.liferay.portal.SystemException {
93          return _socialRelationLocalService.getSocialRelations(start, end);
94      }
95  
96      public int getSocialRelationsCount()
97          throws com.liferay.portal.SystemException {
98          return _socialRelationLocalService.getSocialRelationsCount();
99      }
100 
101     public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
102         com.liferay.portlet.social.model.SocialRelation socialRelation)
103         throws com.liferay.portal.SystemException {
104         return _socialRelationLocalService.updateSocialRelation(socialRelation);
105     }
106 
107     public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
108         com.liferay.portlet.social.model.SocialRelation socialRelation,
109         boolean merge) throws com.liferay.portal.SystemException {
110         return _socialRelationLocalService.updateSocialRelation(socialRelation,
111             merge);
112     }
113 
114     public com.liferay.portlet.social.model.SocialRelation addRelation(
115         long userId1, long userId2, int type)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         return _socialRelationLocalService.addRelation(userId1, userId2, type);
119     }
120 
121     public void deleteRelation(long relationId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _socialRelationLocalService.deleteRelation(relationId);
125     }
126 
127     public void deleteRelation(long userId1, long userId2, int type)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         _socialRelationLocalService.deleteRelation(userId1, userId2, type);
131     }
132 
133     public void deleteRelation(
134         com.liferay.portlet.social.model.SocialRelation relation)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         _socialRelationLocalService.deleteRelation(relation);
138     }
139 
140     public void deleteRelations(long userId)
141         throws com.liferay.portal.SystemException {
142         _socialRelationLocalService.deleteRelations(userId);
143     }
144 
145     public com.liferay.portlet.social.model.SocialRelation getRelation(
146         long relationId)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return _socialRelationLocalService.getRelation(relationId);
150     }
151 
152     public com.liferay.portlet.social.model.SocialRelation getRelation(
153         long userId1, long userId2, int type)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         return _socialRelationLocalService.getRelation(userId1, userId2, type);
157     }
158 
159     public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
160         long userId, int type, int start, int end)
161         throws com.liferay.portal.SystemException {
162         return _socialRelationLocalService.getRelations(userId, type, start, end);
163     }
164 
165     public int getRelationsCount(long userId, int type)
166         throws com.liferay.portal.SystemException {
167         return _socialRelationLocalService.getRelationsCount(userId, type);
168     }
169 
170     public boolean hasRelation(long userId1, long userId2, int type)
171         throws com.liferay.portal.SystemException {
172         return _socialRelationLocalService.hasRelation(userId1, userId2, type);
173     }
174 
175     public boolean isRelatable(long userId1, long userId2, int type)
176         throws com.liferay.portal.SystemException {
177         return _socialRelationLocalService.isRelatable(userId1, userId2, type);
178     }
179 
180     public SocialRelationLocalService getWrappedSocialRelationLocalService() {
181         return _socialRelationLocalService;
182     }
183 
184     private SocialRelationLocalService _socialRelationLocalService;
185 }