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