1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.social.service;
16  
17  /**
18   * <a href="SocialRelationLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link SocialRelationLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SocialRelationLocalService
31   * @generated
32   */
33  public class SocialRelationLocalServiceWrapper
34      implements SocialRelationLocalService {
35      public SocialRelationLocalServiceWrapper(
36          SocialRelationLocalService socialRelationLocalService) {
37          _socialRelationLocalService = socialRelationLocalService;
38      }
39  
40      public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
41          com.liferay.portlet.social.model.SocialRelation socialRelation)
42          throws com.liferay.portal.SystemException {
43          return _socialRelationLocalService.addSocialRelation(socialRelation);
44      }
45  
46      public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
47          long relationId) {
48          return _socialRelationLocalService.createSocialRelation(relationId);
49      }
50  
51      public void deleteSocialRelation(long relationId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _socialRelationLocalService.deleteSocialRelation(relationId);
55      }
56  
57      public void deleteSocialRelation(
58          com.liferay.portlet.social.model.SocialRelation socialRelation)
59          throws com.liferay.portal.SystemException {
60          _socialRelationLocalService.deleteSocialRelation(socialRelation);
61      }
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _socialRelationLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException {
74          return _socialRelationLocalService.dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("rawtypes")
78      public java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.SystemException {
83          return _socialRelationLocalService.dynamicQuery(dynamicQuery, start,
84              end, orderByComparator);
85      }
86  
87      public int dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.SystemException {
90          return _socialRelationLocalService.dynamicQueryCount(dynamicQuery);
91      }
92  
93      public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
94          long relationId)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException {
97          return _socialRelationLocalService.getSocialRelation(relationId);
98      }
99  
100     public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
101         int start, int end) throws com.liferay.portal.SystemException {
102         return _socialRelationLocalService.getSocialRelations(start, end);
103     }
104 
105     public int getSocialRelationsCount()
106         throws com.liferay.portal.SystemException {
107         return _socialRelationLocalService.getSocialRelationsCount();
108     }
109 
110     public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
111         com.liferay.portlet.social.model.SocialRelation socialRelation)
112         throws com.liferay.portal.SystemException {
113         return _socialRelationLocalService.updateSocialRelation(socialRelation);
114     }
115 
116     public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
117         com.liferay.portlet.social.model.SocialRelation socialRelation,
118         boolean merge) throws com.liferay.portal.SystemException {
119         return _socialRelationLocalService.updateSocialRelation(socialRelation,
120             merge);
121     }
122 
123     public com.liferay.portlet.social.model.SocialRelation addRelation(
124         long userId1, long userId2, int type)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return _socialRelationLocalService.addRelation(userId1, userId2, type);
128     }
129 
130     public void deleteRelation(long relationId)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         _socialRelationLocalService.deleteRelation(relationId);
134     }
135 
136     public void deleteRelation(long userId1, long userId2, int type)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         _socialRelationLocalService.deleteRelation(userId1, userId2, type);
140     }
141 
142     public void deleteRelation(
143         com.liferay.portlet.social.model.SocialRelation relation)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         _socialRelationLocalService.deleteRelation(relation);
147     }
148 
149     public void deleteRelations(long userId)
150         throws com.liferay.portal.SystemException {
151         _socialRelationLocalService.deleteRelations(userId);
152     }
153 
154     public com.liferay.portlet.social.model.SocialRelation getRelation(
155         long relationId)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         return _socialRelationLocalService.getRelation(relationId);
159     }
160 
161     public com.liferay.portlet.social.model.SocialRelation getRelation(
162         long userId1, long userId2, int type)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         return _socialRelationLocalService.getRelation(userId1, userId2, type);
166     }
167 
168     public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
169         long userId, int type, int start, int end)
170         throws com.liferay.portal.SystemException {
171         return _socialRelationLocalService.getRelations(userId, type, start, end);
172     }
173 
174     public int getRelationsCount(long userId, int type)
175         throws com.liferay.portal.SystemException {
176         return _socialRelationLocalService.getRelationsCount(userId, type);
177     }
178 
179     public boolean hasRelation(long userId1, long userId2, int type)
180         throws com.liferay.portal.SystemException {
181         return _socialRelationLocalService.hasRelation(userId1, userId2, type);
182     }
183 
184     public boolean isRelatable(long userId1, long userId2, int type)
185         throws com.liferay.portal.SystemException {
186         return _socialRelationLocalService.isRelatable(userId1, userId2, type);
187     }
188 
189     public SocialRelationLocalService getWrappedSocialRelationLocalService() {
190         return _socialRelationLocalService;
191     }
192 
193     private SocialRelationLocalService _socialRelationLocalService;
194 }