001    /**
002     * Copyright (c) 2000-2013 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    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link SocialRelationLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialRelationLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialRelationLocalServiceWrapper
030            implements SocialRelationLocalService,
031                    ServiceWrapper<SocialRelationLocalService> {
032            public SocialRelationLocalServiceWrapper(
033                    SocialRelationLocalService socialRelationLocalService) {
034                    _socialRelationLocalService = socialRelationLocalService;
035            }
036    
037            /**
038            * Adds the social relation to the database. Also notifies the appropriate model listeners.
039            *
040            * @param socialRelation the social relation
041            * @return the social relation that was added
042            * @throws SystemException if a system exception occurred
043            */
044            @Override
045            public com.liferay.portlet.social.model.SocialRelation addSocialRelation(
046                    com.liferay.portlet.social.model.SocialRelation socialRelation)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return _socialRelationLocalService.addSocialRelation(socialRelation);
049            }
050    
051            /**
052            * Creates a new social relation with the primary key. Does not add the social relation to the database.
053            *
054            * @param relationId the primary key for the new social relation
055            * @return the new social relation
056            */
057            @Override
058            public com.liferay.portlet.social.model.SocialRelation createSocialRelation(
059                    long relationId) {
060                    return _socialRelationLocalService.createSocialRelation(relationId);
061            }
062    
063            /**
064            * Deletes the social relation with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param relationId the primary key of the social relation
067            * @return the social relation that was removed
068            * @throws PortalException if a social relation with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            @Override
072            public com.liferay.portlet.social.model.SocialRelation deleteSocialRelation(
073                    long relationId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _socialRelationLocalService.deleteSocialRelation(relationId);
077            }
078    
079            /**
080            * Deletes the social relation from the database. Also notifies the appropriate model listeners.
081            *
082            * @param socialRelation the social relation
083            * @return the social relation that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            @Override
087            public com.liferay.portlet.social.model.SocialRelation deleteSocialRelation(
088                    com.liferay.portlet.social.model.SocialRelation socialRelation)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _socialRelationLocalService.deleteSocialRelation(socialRelation);
091            }
092    
093            @Override
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095                    return _socialRelationLocalService.dynamicQuery();
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns the matching rows.
100            *
101            * @param dynamicQuery the dynamic query
102            * @return the matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @Override
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _socialRelationLocalService.dynamicQuery(dynamicQuery);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns a range of the matching rows.
115            *
116            * <p>
117            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialRelationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @return the range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @Override
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return _socialRelationLocalService.dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialRelationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @Override
149            @SuppressWarnings("rawtypes")
150            public java.util.List dynamicQuery(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
152                    int end,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _socialRelationLocalService.dynamicQuery(dynamicQuery, start,
156                            end, orderByComparator);
157            }
158    
159            /**
160            * Returns the number of rows that match the dynamic query.
161            *
162            * @param dynamicQuery the dynamic query
163            * @return the number of rows that match the dynamic query
164            * @throws SystemException if a system exception occurred
165            */
166            @Override
167            public long dynamicQueryCount(
168                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return _socialRelationLocalService.dynamicQueryCount(dynamicQuery);
171            }
172    
173            /**
174            * Returns the number of rows that match the dynamic query.
175            *
176            * @param dynamicQuery the dynamic query
177            * @param projection the projection to apply to the query
178            * @return the number of rows that match the dynamic query
179            * @throws SystemException if a system exception occurred
180            */
181            @Override
182            public long dynamicQueryCount(
183                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
184                    com.liferay.portal.kernel.dao.orm.Projection projection)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return _socialRelationLocalService.dynamicQueryCount(dynamicQuery,
187                            projection);
188            }
189    
190            @Override
191            public com.liferay.portlet.social.model.SocialRelation fetchSocialRelation(
192                    long relationId)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _socialRelationLocalService.fetchSocialRelation(relationId);
195            }
196    
197            /**
198            * Returns the social relation with the matching UUID and company.
199            *
200            * @param uuid the social relation's UUID
201            * @param companyId the primary key of the company
202            * @return the matching social relation, or <code>null</code> if a matching social relation could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            @Override
206            public com.liferay.portlet.social.model.SocialRelation fetchSocialRelationByUuidAndCompanyId(
207                    java.lang.String uuid, long companyId)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _socialRelationLocalService.fetchSocialRelationByUuidAndCompanyId(uuid,
210                            companyId);
211            }
212    
213            /**
214            * Returns the social relation with the primary key.
215            *
216            * @param relationId the primary key of the social relation
217            * @return the social relation
218            * @throws PortalException if a social relation with the primary key could not be found
219            * @throws SystemException if a system exception occurred
220            */
221            @Override
222            public com.liferay.portlet.social.model.SocialRelation getSocialRelation(
223                    long relationId)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    return _socialRelationLocalService.getSocialRelation(relationId);
227            }
228    
229            @Override
230            public com.liferay.portal.model.PersistedModel getPersistedModel(
231                    java.io.Serializable primaryKeyObj)
232                    throws com.liferay.portal.kernel.exception.PortalException,
233                            com.liferay.portal.kernel.exception.SystemException {
234                    return _socialRelationLocalService.getPersistedModel(primaryKeyObj);
235            }
236    
237            /**
238            * Returns the social relation with the matching UUID and company.
239            *
240            * @param uuid the social relation's UUID
241            * @param companyId the primary key of the company
242            * @return the matching social relation
243            * @throws PortalException if a matching social relation could not be found
244            * @throws SystemException if a system exception occurred
245            */
246            @Override
247            public com.liferay.portlet.social.model.SocialRelation getSocialRelationByUuidAndCompanyId(
248                    java.lang.String uuid, long companyId)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return _socialRelationLocalService.getSocialRelationByUuidAndCompanyId(uuid,
252                            companyId);
253            }
254    
255            /**
256            * Returns a range of all the social relations.
257            *
258            * <p>
259            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialRelationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
260            * </p>
261            *
262            * @param start the lower bound of the range of social relations
263            * @param end the upper bound of the range of social relations (not inclusive)
264            * @return the range of social relations
265            * @throws SystemException if a system exception occurred
266            */
267            @Override
268            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
269                    int start, int end)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return _socialRelationLocalService.getSocialRelations(start, end);
272            }
273    
274            /**
275            * Returns the number of social relations.
276            *
277            * @return the number of social relations
278            * @throws SystemException if a system exception occurred
279            */
280            @Override
281            public int getSocialRelationsCount()
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _socialRelationLocalService.getSocialRelationsCount();
284            }
285    
286            /**
287            * Updates the social relation in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
288            *
289            * @param socialRelation the social relation
290            * @return the social relation that was updated
291            * @throws SystemException if a system exception occurred
292            */
293            @Override
294            public com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
295                    com.liferay.portlet.social.model.SocialRelation socialRelation)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return _socialRelationLocalService.updateSocialRelation(socialRelation);
298            }
299    
300            /**
301            * Returns the Spring bean ID for this bean.
302            *
303            * @return the Spring bean ID for this bean
304            */
305            @Override
306            public java.lang.String getBeanIdentifier() {
307                    return _socialRelationLocalService.getBeanIdentifier();
308            }
309    
310            /**
311            * Sets the Spring bean ID for this bean.
312            *
313            * @param beanIdentifier the Spring bean ID for this bean
314            */
315            @Override
316            public void setBeanIdentifier(java.lang.String beanIdentifier) {
317                    _socialRelationLocalService.setBeanIdentifier(beanIdentifier);
318            }
319    
320            /**
321            * Adds a social relation between the two users to the database.
322            *
323            * @param userId1 the user that is the subject of the relation
324            * @param userId2 the user at the other end of the relation
325            * @param type the type of the relation
326            * @return the social relation
327            * @throws PortalException if the users could not be found, if the users
328            were not from the same company, or if either of the users was the
329            default user
330            * @throws SystemException if a system exception occurred
331            */
332            @Override
333            public com.liferay.portlet.social.model.SocialRelation addRelation(
334                    long userId1, long userId2, int type)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    return _socialRelationLocalService.addRelation(userId1, userId2, type);
338            }
339    
340            /**
341            * Removes the relation (and its inverse in case of a bidirectional
342            * relation) from the database.
343            *
344            * @param relationId the primary key of the relation
345            * @throws PortalException if the relation could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            @Override
349            public void deleteRelation(long relationId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _socialRelationLocalService.deleteRelation(relationId);
353            }
354    
355            /**
356            * Removes the matching relation (and its inverse in case of a bidirectional
357            * relation) from the database.
358            *
359            * @param userId1 the user that is the subject of the relation
360            * @param userId2 the user at the other end of the relation
361            * @param type the relation's type
362            * @throws PortalException if the relation or its inverse relation (if
363            applicable) could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            @Override
367            public void deleteRelation(long userId1, long userId2, int type)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    _socialRelationLocalService.deleteRelation(userId1, userId2, type);
371            }
372    
373            /**
374            * Removes the relation (and its inverse in case of a bidirectional
375            * relation) from the database.
376            *
377            * @param relation the relation to be removed
378            * @throws PortalException if the relation is bidirectional and its inverse
379            relation could not be found
380            * @throws SystemException if a system exception occurred
381            */
382            @Override
383            public void deleteRelation(
384                    com.liferay.portlet.social.model.SocialRelation relation)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    _socialRelationLocalService.deleteRelation(relation);
388            }
389    
390            /**
391            * Removes all relations involving the user from the database.
392            *
393            * @param userId the primary key of the user
394            * @throws SystemException if a system exception occurred
395            */
396            @Override
397            public void deleteRelations(long userId)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    _socialRelationLocalService.deleteRelations(userId);
400            }
401    
402            /**
403            * Removes all relations between User1 and User2.
404            *
405            * @param userId1 the user that is the subject of the relation
406            * @param userId2 the user at the other end of the relation
407            * @throws PortalException if the inverse relation could not be found
408            * @throws SystemException if a system exception occurred
409            */
410            @Override
411            public void deleteRelations(long userId1, long userId2)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    _socialRelationLocalService.deleteRelations(userId1, userId2);
415            }
416    
417            /**
418            * Returns a range of all the inverse relations of the given type for which
419            * the user is User2 of the relation.
420            *
421            * <p>
422            * Useful when paginating results. Returns a maximum of <code>end -
423            * start</code> instances. <code>start</code> and <code>end</code> are not
424            * primary keys, they are indexes in the result set. Thus, <code>0</code>
425            * refers to the first result in the set. Setting both <code>start</code>
426            * and <code>end</code> to {@link
427            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
428            * result set.
429            * </p>
430            *
431            * @param userId the primary key of the user
432            * @param type the relation's type
433            * @param start the lower bound of the range of results
434            * @param end the upper bound of the range of results (not inclusive)
435            * @return the range of matching relations
436            * @throws SystemException if a system exception occurred
437            */
438            @Override
439            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getInverseRelations(
440                    long userId, int type, int start, int end)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _socialRelationLocalService.getInverseRelations(userId, type,
443                            start, end);
444            }
445    
446            /**
447            * Returns the number of inverse relations of the given type for which the
448            * user is User2 of the relation.
449            *
450            * @param userId the primary key of the user
451            * @param type the relation's type
452            * @return the number of matching relations
453            * @throws SystemException if a system exception occurred
454            */
455            @Override
456            public int getInverseRelationsCount(long userId, int type)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return _socialRelationLocalService.getInverseRelationsCount(userId, type);
459            }
460    
461            /**
462            * Returns the relation identified by its primary key.
463            *
464            * @param relationId the primary key of the relation
465            * @return Returns the relation
466            * @throws PortalException if the relation could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            @Override
470            public com.liferay.portlet.social.model.SocialRelation getRelation(
471                    long relationId)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException {
474                    return _socialRelationLocalService.getRelation(relationId);
475            }
476    
477            /**
478            * Returns the relation of the given type between User1 and User2.
479            *
480            * @param userId1 the user that is the subject of the relation
481            * @param userId2 the user at the other end of the relation
482            * @param type the relation's type
483            * @return Returns the relation
484            * @throws PortalException if the relation could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            @Override
488            public com.liferay.portlet.social.model.SocialRelation getRelation(
489                    long userId1, long userId2, int type)
490                    throws com.liferay.portal.kernel.exception.PortalException,
491                            com.liferay.portal.kernel.exception.SystemException {
492                    return _socialRelationLocalService.getRelation(userId1, userId2, type);
493            }
494    
495            /**
496            * Returns a range of all the relations of the given type where the user is
497            * the subject of the relation.
498            *
499            * <p>
500            * Useful when paginating results. Returns a maximum of <code>end -
501            * start</code> instances. <code>start</code> and <code>end</code> are not
502            * primary keys, they are indexes in the result set. Thus, <code>0</code>
503            * refers to the first result in the set. Setting both <code>start</code>
504            * and <code>end</code> to {@link
505            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
506            * result set.
507            * </p>
508            *
509            * @param userId the primary key of the user
510            * @param type the relation's type
511            * @param start the lower bound of the range of results
512            * @param end the upper bound of the range of results (not inclusive)
513            * @return the range of relations
514            * @throws SystemException if a system exception occurred
515            */
516            @Override
517            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
518                    long userId, int type, int start, int end)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return _socialRelationLocalService.getRelations(userId, type, start, end);
521            }
522    
523            /**
524            * Returns a range of all the relations between User1 and User2.
525            *
526            * <p>
527            * Useful when paginating results. Returns a maximum of <code>end -
528            * start</code> instances. <code>start</code> and <code>end</code> are not
529            * primary keys, they are indexes in the result set. Thus, <code>0</code>
530            * refers to the first result in the set. Setting both <code>start</code>
531            * and <code>end</code> to {@link
532            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
533            * result set.
534            * </p>
535            *
536            * @param userId1 the user that is the subject of the relation
537            * @param userId2 the user at the other end of the relation
538            * @param start the lower bound of the range of results
539            * @param end the upper bound of the range of results (not inclusive)
540            * @return the range of relations
541            * @throws SystemException if a system exception occurred
542            */
543            @Override
544            public java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
545                    long userId1, long userId2, int start, int end)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return _socialRelationLocalService.getRelations(userId1, userId2,
548                            start, end);
549            }
550    
551            /**
552            * Returns the number of relations of the given type where the user is the
553            * subject of the relation.
554            *
555            * @param userId the primary key of the user
556            * @param type the relation's type
557            * @return the number of relations
558            * @throws SystemException if a system exception occurred
559            */
560            @Override
561            public int getRelationsCount(long userId, int type)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return _socialRelationLocalService.getRelationsCount(userId, type);
564            }
565    
566            /**
567            * Returns the number of relations between User1 and User2.
568            *
569            * @param userId1 the user that is the subject of the relation
570            * @param userId2 the user at the other end of the relation
571            * @return the number of relations
572            * @throws SystemException if a system exception occurred
573            */
574            @Override
575            public int getRelationsCount(long userId1, long userId2)
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    return _socialRelationLocalService.getRelationsCount(userId1, userId2);
578            }
579    
580            /**
581            * Returns <code>true</code> if a relation of the given type exists where
582            * the user with primary key <code>userId1</code> is User1 of the relation
583            * and the user with the primary key <code>userId2</code> is User2 of the
584            * relation.
585            *
586            * @param userId1 the user that is the subject of the relation
587            * @param userId2 the user at the other end of the relation
588            * @param type the relation's type
589            * @return <code>true</code> if the relation exists; <code>false</code>
590            otherwise
591            * @throws SystemException if a system exception occurred
592            */
593            @Override
594            public boolean hasRelation(long userId1, long userId2, int type)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    return _socialRelationLocalService.hasRelation(userId1, userId2, type);
597            }
598    
599            /**
600            * Returns <code>true</code> if the users can be in a relation of the given
601            * type where the user with primary key <code>userId1</code> is User1 of the
602            * relation and the user with the primary key <code>userId2</code> is User2
603            * of the relation.
604            *
605            * <p>
606            * This method returns <code>false</code> if User1 and User2 are the same,
607            * if either user is the default user, or if a matching relation already
608            * exists.
609            * </p>
610            *
611            * @param userId1 the user that is the subject of the relation
612            * @param userId2 the user at the other end of the relation
613            * @param type the relation's type
614            * @return <code>true</code> if the two users can be in a new relation of
615            the given type; <code>false</code> otherwise
616            * @throws SystemException if a system exception occurred
617            */
618            @Override
619            public boolean isRelatable(long userId1, long userId2, int type)
620                    throws com.liferay.portal.kernel.exception.SystemException {
621                    return _socialRelationLocalService.isRelatable(userId1, userId2, type);
622            }
623    
624            /**
625             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
626             */
627            public SocialRelationLocalService getWrappedSocialRelationLocalService() {
628                    return _socialRelationLocalService;
629            }
630    
631            /**
632             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
633             */
634            public void setWrappedSocialRelationLocalService(
635                    SocialRelationLocalService socialRelationLocalService) {
636                    _socialRelationLocalService = socialRelationLocalService;
637            }
638    
639            @Override
640            public SocialRelationLocalService getWrappedService() {
641                    return _socialRelationLocalService;
642            }
643    
644            @Override
645            public void setWrappedService(
646                    SocialRelationLocalService socialRelationLocalService) {
647                    _socialRelationLocalService = socialRelationLocalService;
648            }
649    
650            private SocialRelationLocalService _socialRelationLocalService;
651    }