001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            /**
034            * Adds the social relation to the database. Also notifies the appropriate model listeners.
035            *
036            * @param socialRelation the social relation
037            * @return the social relation that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
041                    com.liferay.portlet.social.model.SocialRelation socialRelation)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _socialRelationLocalService.addSocialRelation(socialRelation);
044            }
045    
046            /**
047            * Creates a new social relation with the primary key. Does not add the social relation to the database.
048            *
049            * @param relationId the primary key for the new social relation
050            * @return the new social relation
051            */
052            public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
053                    long relationId) {
054                    return _socialRelationLocalService.createSocialRelation(relationId);
055            }
056    
057            /**
058            * Deletes the social relation with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param relationId the primary key of the social relation
061            * @throws PortalException if a social relation with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteSocialRelation(long relationId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _socialRelationLocalService.deleteSocialRelation(relationId);
068            }
069    
070            /**
071            * Deletes the social relation from the database. Also notifies the appropriate model listeners.
072            *
073            * @param socialRelation the social relation
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteSocialRelation(
077                    com.liferay.portlet.social.model.SocialRelation socialRelation)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _socialRelationLocalService.deleteSocialRelation(socialRelation);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _socialRelationLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _socialRelationLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _socialRelationLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _socialRelationLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the social relation with the primary key.
155            *
156            * @param relationId the primary key of the social relation
157            * @return the social relation
158            * @throws PortalException if a social relation with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
162                    long relationId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _socialRelationLocalService.getSocialRelation(relationId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _socialRelationLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the social relations.
177            *
178            * <p>
179            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
180            * </p>
181            *
182            * @param start the lower bound of the range of social relations
183            * @param end the upper bound of the range of social relations (not inclusive)
184            * @return the range of social relations
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _socialRelationLocalService.getSocialRelations(start, end);
191            }
192    
193            /**
194            * Returns the number of social relations.
195            *
196            * @return the number of social relations
197            * @throws SystemException if a system exception occurred
198            */
199            public int getSocialRelationsCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _socialRelationLocalService.getSocialRelationsCount();
202            }
203    
204            /**
205            * Updates the social relation in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param socialRelation the social relation
208            * @return the social relation that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
212                    com.liferay.portlet.social.model.SocialRelation socialRelation)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _socialRelationLocalService.updateSocialRelation(socialRelation);
215            }
216    
217            /**
218            * Updates the social relation in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param socialRelation the social relation
221            * @param merge whether to merge the social relation with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
222            * @return the social relation that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
226                    com.liferay.portlet.social.model.SocialRelation socialRelation,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _socialRelationLocalService.updateSocialRelation(socialRelation,
230                            merge);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _socialRelationLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _socialRelationLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.social.model.SocialRelation addRelation(
252                    long userId1, long userId2, int type)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _socialRelationLocalService.addRelation(userId1, userId2, type);
256            }
257    
258            public void deleteRelation(long relationId)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    _socialRelationLocalService.deleteRelation(relationId);
262            }
263    
264            public void deleteRelation(long userId1, long userId2, int type)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    _socialRelationLocalService.deleteRelation(userId1, userId2, type);
268            }
269    
270            public void deleteRelation(
271                    com.liferay.portlet.social.model.SocialRelation relation)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    _socialRelationLocalService.deleteRelation(relation);
275            }
276    
277            public void deleteRelations(long userId)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _socialRelationLocalService.deleteRelations(userId);
280            }
281    
282            public void deleteRelations(long userId1, long userId2)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _socialRelationLocalService.deleteRelations(userId1, userId2);
286            }
287    
288            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getInverseRelations(
289                    long userId, int type, int start, int end)
290                    throws com.liferay.portal.kernel.exception.SystemException {
291                    return _socialRelationLocalService.getInverseRelations(userId, type,
292                            start, end);
293            }
294    
295            public int getInverseRelationsCount(long userId, int type)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return _socialRelationLocalService.getInverseRelationsCount(userId, type);
298            }
299    
300            public com.liferay.portlet.social.model.SocialRelation getRelation(
301                    long relationId)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _socialRelationLocalService.getRelation(relationId);
305            }
306    
307            public com.liferay.portlet.social.model.SocialRelation getRelation(
308                    long userId1, long userId2, int type)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    return _socialRelationLocalService.getRelation(userId1, userId2, type);
312            }
313    
314            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
315                    long userId, int type, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _socialRelationLocalService.getRelations(userId, type, start, end);
318            }
319    
320            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
321                    long userId1, long userId2, int start, int end)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _socialRelationLocalService.getRelations(userId1, userId2,
324                            start, end);
325            }
326    
327            public int getRelationsCount(long userId, int type)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _socialRelationLocalService.getRelationsCount(userId, type);
330            }
331    
332            public int getRelationsCount(long userId1, long userId2)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _socialRelationLocalService.getRelationsCount(userId1, userId2);
335            }
336    
337            public boolean hasRelation(long userId1, long userId2, int type)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _socialRelationLocalService.hasRelation(userId1, userId2, type);
340            }
341    
342            public boolean isRelatable(long userId1, long userId2, int type)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _socialRelationLocalService.isRelatable(userId1, userId2, type);
345            }
346    
347            public SocialRelationLocalService getWrappedSocialRelationLocalService() {
348                    return _socialRelationLocalService;
349            }
350    
351            public void setWrappedSocialRelationLocalService(
352                    SocialRelationLocalService socialRelationLocalService) {
353                    _socialRelationLocalService = socialRelationLocalService;
354            }
355    
356            private SocialRelationLocalService _socialRelationLocalService;
357    }