1
22
23 package com.liferay.portlet.social.service;
24
25
26
53 public class SocialRelationLocalServiceUtil {
54 public static com.liferay.portlet.social.model.SocialRelation addSocialRelation(
55 com.liferay.portlet.social.model.SocialRelation socialRelation)
56 throws com.liferay.portal.SystemException {
57 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
58
59 return socialRelationLocalService.addSocialRelation(socialRelation);
60 }
61
62 public static void deleteSocialRelation(long relationId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
66
67 socialRelationLocalService.deleteSocialRelation(relationId);
68 }
69
70 public static void deleteSocialRelation(
71 com.liferay.portlet.social.model.SocialRelation socialRelation)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException {
74 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
75
76 socialRelationLocalService.deleteSocialRelation(socialRelation);
77 }
78
79 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> dynamicQuery(
80 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81 throws com.liferay.portal.SystemException {
82 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
83
84 return socialRelationLocalService.dynamicQuery(queryInitializer);
85 }
86
87 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> dynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException {
90 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
91
92 return socialRelationLocalService.dynamicQuery(queryInitializer, begin,
93 end);
94 }
95
96 public static com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
97 com.liferay.portlet.social.model.SocialRelation socialRelation)
98 throws com.liferay.portal.SystemException {
99 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
100
101 return socialRelationLocalService.updateSocialRelation(socialRelation);
102 }
103
104 public static com.liferay.portlet.social.model.SocialRelation addRelation(
105 long userId1, long userId2, int type)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException {
108 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
109
110 return socialRelationLocalService.addRelation(userId1, userId2, type);
111 }
112
113 public static void deleteRelation(long relationId)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
117
118 socialRelationLocalService.deleteRelation(relationId);
119 }
120
121 public static void deleteRelations(long userId)
122 throws com.liferay.portal.SystemException {
123 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
124
125 socialRelationLocalService.deleteRelations(userId);
126 }
127
128 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
129 long userId, int type, int begin, int end)
130 throws com.liferay.portal.SystemException {
131 SocialRelationLocalService socialRelationLocalService = SocialRelationLocalServiceFactory.getService();
132
133 return socialRelationLocalService.getRelations(userId, type, begin, end);
134 }
135 }