1
14
15 package com.liferay.portlet.social.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class SocialRelationLocalServiceUtil {
40 public static com.liferay.portlet.social.model.SocialRelation addSocialRelation(
41 com.liferay.portlet.social.model.SocialRelation socialRelation)
42 throws com.liferay.portal.SystemException {
43 return getService().addSocialRelation(socialRelation);
44 }
45
46 public static com.liferay.portlet.social.model.SocialRelation createSocialRelation(
47 long relationId) {
48 return getService().createSocialRelation(relationId);
49 }
50
51 public static void deleteSocialRelation(long relationId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteSocialRelation(relationId);
55 }
56
57 public static void deleteSocialRelation(
58 com.liferay.portlet.social.model.SocialRelation socialRelation)
59 throws com.liferay.portal.SystemException {
60 getService().deleteSocialRelation(socialRelation);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.social.model.SocialRelation getSocialRelation(
76 long relationId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getSocialRelation(relationId);
80 }
81
82 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> getSocialRelations(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getSocialRelations(start, end);
85 }
86
87 public static int getSocialRelationsCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getSocialRelationsCount();
90 }
91
92 public static com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
93 com.liferay.portlet.social.model.SocialRelation socialRelation)
94 throws com.liferay.portal.SystemException {
95 return getService().updateSocialRelation(socialRelation);
96 }
97
98 public static com.liferay.portlet.social.model.SocialRelation updateSocialRelation(
99 com.liferay.portlet.social.model.SocialRelation socialRelation,
100 boolean merge) throws com.liferay.portal.SystemException {
101 return getService().updateSocialRelation(socialRelation, merge);
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 return getService().addRelation(userId1, userId2, type);
109 }
110
111 public static void deleteRelation(long relationId)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException {
114 getService().deleteRelation(relationId);
115 }
116
117 public static void deleteRelation(long userId1, long userId2, int type)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 getService().deleteRelation(userId1, userId2, type);
121 }
122
123 public static void deleteRelation(
124 com.liferay.portlet.social.model.SocialRelation relation)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 getService().deleteRelation(relation);
128 }
129
130 public static void deleteRelations(long userId)
131 throws com.liferay.portal.SystemException {
132 getService().deleteRelations(userId);
133 }
134
135 public static com.liferay.portlet.social.model.SocialRelation getRelation(
136 long relationId)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService().getRelation(relationId);
140 }
141
142 public static com.liferay.portlet.social.model.SocialRelation getRelation(
143 long userId1, long userId2, int type)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException {
146 return getService().getRelation(userId1, userId2, type);
147 }
148
149 public static java.util.List<com.liferay.portlet.social.model.SocialRelation> getRelations(
150 long userId, int type, int start, int end)
151 throws com.liferay.portal.SystemException {
152 return getService().getRelations(userId, type, start, end);
153 }
154
155 public static int getRelationsCount(long userId, int type)
156 throws com.liferay.portal.SystemException {
157 return getService().getRelationsCount(userId, type);
158 }
159
160 public static boolean hasRelation(long userId1, long userId2, int type)
161 throws com.liferay.portal.SystemException {
162 return getService().hasRelation(userId1, userId2, type);
163 }
164
165 public static boolean isRelatable(long userId1, long userId2, int type)
166 throws com.liferay.portal.SystemException {
167 return getService().isRelatable(userId1, userId2, type);
168 }
169
170 public static SocialRelationLocalService getService() {
171 if (_service == null) {
172 _service = (SocialRelationLocalService)PortalBeanLocatorUtil.locate(SocialRelationLocalService.class.getName());
173 }
174
175 return _service;
176 }
177
178 public void setService(SocialRelationLocalService service) {
179 _service = service;
180 }
181
182 private static SocialRelationLocalService _service;
183 }