1
14
15 package com.liferay.portlet.social.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class SocialRequestLocalServiceUtil {
40 public static com.liferay.portlet.social.model.SocialRequest addSocialRequest(
41 com.liferay.portlet.social.model.SocialRequest socialRequest)
42 throws com.liferay.portal.SystemException {
43 return getService().addSocialRequest(socialRequest);
44 }
45
46 public static com.liferay.portlet.social.model.SocialRequest createSocialRequest(
47 long requestId) {
48 return getService().createSocialRequest(requestId);
49 }
50
51 public static void deleteSocialRequest(long requestId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteSocialRequest(requestId);
55 }
56
57 public static void deleteSocialRequest(
58 com.liferay.portlet.social.model.SocialRequest socialRequest)
59 throws com.liferay.portal.SystemException {
60 getService().deleteSocialRequest(socialRequest);
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.SocialRequest getSocialRequest(
76 long requestId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getSocialRequest(requestId);
80 }
81
82 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getSocialRequests(start, end);
85 }
86
87 public static int getSocialRequestsCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getSocialRequestsCount();
90 }
91
92 public static com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
93 com.liferay.portlet.social.model.SocialRequest socialRequest)
94 throws com.liferay.portal.SystemException {
95 return getService().updateSocialRequest(socialRequest);
96 }
97
98 public static com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
99 com.liferay.portlet.social.model.SocialRequest socialRequest,
100 boolean merge) throws com.liferay.portal.SystemException {
101 return getService().updateSocialRequest(socialRequest, merge);
102 }
103
104 public static com.liferay.portlet.social.model.SocialRequest addRequest(
105 long userId, long groupId, java.lang.String className, long classPK,
106 int type, java.lang.String extraData, long receiverUserId)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException {
109 return getService()
110 .addRequest(userId, groupId, className, classPK, type,
111 extraData, receiverUserId);
112 }
113
114 public static void deleteReceiverUserRequests(long receiverUserId)
115 throws com.liferay.portal.SystemException {
116 getService().deleteReceiverUserRequests(receiverUserId);
117 }
118
119 public static void deleteRequest(long requestId)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 getService().deleteRequest(requestId);
123 }
124
125 public static void deleteUserRequests(long userId)
126 throws com.liferay.portal.SystemException {
127 getService().deleteUserRequests(userId);
128 }
129
130 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
131 long receiverUserId, int start, int end)
132 throws com.liferay.portal.SystemException {
133 return getService().getReceiverUserRequests(receiverUserId, start, end);
134 }
135
136 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
137 long receiverUserId, int status, int start, int end)
138 throws com.liferay.portal.SystemException {
139 return getService()
140 .getReceiverUserRequests(receiverUserId, status, start, end);
141 }
142
143 public static int getReceiverUserRequestsCount(long receiverUserId)
144 throws com.liferay.portal.SystemException {
145 return getService().getReceiverUserRequestsCount(receiverUserId);
146 }
147
148 public static int getReceiverUserRequestsCount(long receiverUserId,
149 int status) throws com.liferay.portal.SystemException {
150 return getService().getReceiverUserRequestsCount(receiverUserId, status);
151 }
152
153 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
154 long userId, int start, int end)
155 throws com.liferay.portal.SystemException {
156 return getService().getUserRequests(userId, start, end);
157 }
158
159 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
160 long userId, int status, int start, int end)
161 throws com.liferay.portal.SystemException {
162 return getService().getUserRequests(userId, status, start, end);
163 }
164
165 public static int getUserRequestsCount(long userId)
166 throws com.liferay.portal.SystemException {
167 return getService().getUserRequestsCount(userId);
168 }
169
170 public static int getUserRequestsCount(long userId, int status)
171 throws com.liferay.portal.SystemException {
172 return getService().getUserRequestsCount(userId, status);
173 }
174
175 public static boolean hasRequest(long userId, java.lang.String className,
176 long classPK, int type, int status)
177 throws com.liferay.portal.SystemException {
178 return getService().hasRequest(userId, className, classPK, type, status);
179 }
180
181 public static boolean hasRequest(long userId, java.lang.String className,
182 long classPK, int type, long receiverUserId, int status)
183 throws com.liferay.portal.SystemException {
184 return getService()
185 .hasRequest(userId, className, classPK, type,
186 receiverUserId, status);
187 }
188
189 public static com.liferay.portlet.social.model.SocialRequest updateRequest(
190 long requestId, int status,
191 com.liferay.portal.theme.ThemeDisplay themeDisplay)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException {
194 return getService().updateRequest(requestId, status, themeDisplay);
195 }
196
197 public static SocialRequestLocalService getService() {
198 if (_service == null) {
199 _service = (SocialRequestLocalService)PortalBeanLocatorUtil.locate(SocialRequestLocalService.class.getName());
200 }
201
202 return _service;
203 }
204
205 public void setService(SocialRequestLocalService service) {
206 _service = service;
207 }
208
209 private static SocialRequestLocalService _service;
210 }