1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.service;
16  
17  
18  /**
19   * <a href="SocialRelationLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link SocialRelationLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       SocialRelationLocalService
32   * @generated
33   */
34  public class SocialRelationLocalServiceWrapper
35      implements SocialRelationLocalService {
36      public SocialRelationLocalServiceWrapper(
37          SocialRelationLocalService socialRelationLocalService) {
38          _socialRelationLocalService = socialRelationLocalService;
39      }
40  
41      public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
42          com.liferay.portlet.social.model.SocialRelation socialRelation)
43          throws com.liferay.portal.SystemException {
44          return _socialRelationLocalService.addSocialRelation(socialRelation);
45      }
46  
47      public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
48          long relationId) {
49          return _socialRelationLocalService.createSocialRelation(relationId);
50      }
51  
52      public void deleteSocialRelation(long relationId)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          _socialRelationLocalService.deleteSocialRelation(relationId);
56      }
57  
58      public void deleteSocialRelation(
59          com.liferay.portlet.social.model.SocialRelation socialRelation)
60          throws com.liferay.portal.SystemException {
61          _socialRelationLocalService.deleteSocialRelation(socialRelation);
62      }
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _socialRelationLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _socialRelationLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
77          long relationId)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException {
80          return _socialRelationLocalService.getSocialRelation(relationId);
81      }
82  
83      public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
84          int start, int end) throws com.liferay.portal.SystemException {
85          return _socialRelationLocalService.getSocialRelations(start, end);
86      }
87  
88      public int getSocialRelationsCount()
89          throws com.liferay.portal.SystemException {
90          return _socialRelationLocalService.getSocialRelationsCount();
91      }
92  
93      public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
94          com.liferay.portlet.social.model.SocialRelation socialRelation)
95          throws com.liferay.portal.SystemException {
96          return _socialRelationLocalService.updateSocialRelation(socialRelation);
97      }
98  
99      public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
100         com.liferay.portlet.social.model.SocialRelation socialRelation,
101         boolean merge) throws com.liferay.portal.SystemException {
102         return _socialRelationLocalService.updateSocialRelation(socialRelation,
103             merge);
104     }
105 
106     public com.liferay.portlet.social.model.SocialRelation addRelation(
107         long userId1, long userId2, int type)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException {
110         return _socialRelationLocalService.addRelation(userId1, userId2, type);
111     }
112 
113     public void deleteRelation(long relationId)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         _socialRelationLocalService.deleteRelation(relationId);
117     }
118 
119     public void deleteRelation(long userId1, long userId2, int type)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         _socialRelationLocalService.deleteRelation(userId1, userId2, type);
123     }
124 
125     public void deleteRelation(
126         com.liferay.portlet.social.model.SocialRelation relation)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         _socialRelationLocalService.deleteRelation(relation);
130     }
131 
132     public void deleteRelations(long userId)
133         throws com.liferay.portal.SystemException {
134         _socialRelationLocalService.deleteRelations(userId);
135     }
136 
137     public com.liferay.portlet.social.model.SocialRelation getRelation(
138         long relationId)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         return _socialRelationLocalService.getRelation(relationId);
142     }
143 
144     public com.liferay.portlet.social.model.SocialRelation getRelation(
145         long userId1, long userId2, int type)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         return _socialRelationLocalService.getRelation(userId1, userId2, type);
149     }
150 
151     public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
152         long userId, int type, int start, int end)
153         throws com.liferay.portal.SystemException {
154         return _socialRelationLocalService.getRelations(userId, type, start, end);
155     }
156 
157     public int getRelationsCount(long userId, int type)
158         throws com.liferay.portal.SystemException {
159         return _socialRelationLocalService.getRelationsCount(userId, type);
160     }
161 
162     public boolean hasRelation(long userId1, long userId2, int type)
163         throws com.liferay.portal.SystemException {
164         return _socialRelationLocalService.hasRelation(userId1, userId2, type);
165     }
166 
167     public boolean isRelatable(long userId1, long userId2, int type)
168         throws com.liferay.portal.SystemException {
169         return _socialRelationLocalService.isRelatable(userId1, userId2, type);
170     }
171 
172     public SocialRelationLocalService getWrappedSocialRelationLocalService() {
173         return _socialRelationLocalService;
174     }
175 
176     private SocialRelationLocalService _socialRelationLocalService;
177 }