1
19
20 package com.liferay.portal.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24 import com.liferay.portal.kernel.util.IntegerWrapper;
25 import com.liferay.portal.kernel.util.LongWrapper;
26 import com.liferay.portal.kernel.util.MethodWrapper;
27 import com.liferay.portal.security.auth.HttpPrincipal;
28 import com.liferay.portal.service.OrgLaborServiceUtil;
29
30
69 public class OrgLaborServiceHttp {
70 public static com.liferay.portal.model.OrgLabor addOrgLabor(
71 HttpPrincipal httpPrincipal, long organizationId, int typeId,
72 int sunOpen, int sunClose, int monOpen, int monClose, int tueOpen,
73 int tueClose, int wedOpen, int wedClose, int thuOpen, int thuClose,
74 int friOpen, int friClose, int satOpen, int satClose)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException {
77 try {
78 Object paramObj0 = new LongWrapper(organizationId);
79
80 Object paramObj1 = new IntegerWrapper(typeId);
81
82 Object paramObj2 = new IntegerWrapper(sunOpen);
83
84 Object paramObj3 = new IntegerWrapper(sunClose);
85
86 Object paramObj4 = new IntegerWrapper(monOpen);
87
88 Object paramObj5 = new IntegerWrapper(monClose);
89
90 Object paramObj6 = new IntegerWrapper(tueOpen);
91
92 Object paramObj7 = new IntegerWrapper(tueClose);
93
94 Object paramObj8 = new IntegerWrapper(wedOpen);
95
96 Object paramObj9 = new IntegerWrapper(wedClose);
97
98 Object paramObj10 = new IntegerWrapper(thuOpen);
99
100 Object paramObj11 = new IntegerWrapper(thuClose);
101
102 Object paramObj12 = new IntegerWrapper(friOpen);
103
104 Object paramObj13 = new IntegerWrapper(friClose);
105
106 Object paramObj14 = new IntegerWrapper(satOpen);
107
108 Object paramObj15 = new IntegerWrapper(satClose);
109
110 MethodWrapper methodWrapper = new MethodWrapper(OrgLaborServiceUtil.class.getName(),
111 "addOrgLabor",
112 new Object[] {
113 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
114 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
115 paramObj10, paramObj11, paramObj12, paramObj13,
116 paramObj14, paramObj15
117 });
118
119 Object returnObj = null;
120
121 try {
122 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
123 }
124 catch (Exception e) {
125 if (e instanceof com.liferay.portal.PortalException) {
126 throw (com.liferay.portal.PortalException)e;
127 }
128
129 if (e instanceof com.liferay.portal.SystemException) {
130 throw (com.liferay.portal.SystemException)e;
131 }
132
133 throw new com.liferay.portal.SystemException(e);
134 }
135
136 return (com.liferay.portal.model.OrgLabor)returnObj;
137 }
138 catch (com.liferay.portal.SystemException se) {
139 _log.error(se, se);
140
141 throw se;
142 }
143 }
144
145 public static void deleteOrgLabor(HttpPrincipal httpPrincipal,
146 long orgLaborId)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 try {
150 Object paramObj0 = new LongWrapper(orgLaborId);
151
152 MethodWrapper methodWrapper = new MethodWrapper(OrgLaborServiceUtil.class.getName(),
153 "deleteOrgLabor", new Object[] { paramObj0 });
154
155 try {
156 TunnelUtil.invoke(httpPrincipal, methodWrapper);
157 }
158 catch (Exception e) {
159 if (e instanceof com.liferay.portal.PortalException) {
160 throw (com.liferay.portal.PortalException)e;
161 }
162
163 if (e instanceof com.liferay.portal.SystemException) {
164 throw (com.liferay.portal.SystemException)e;
165 }
166
167 throw new com.liferay.portal.SystemException(e);
168 }
169 }
170 catch (com.liferay.portal.SystemException se) {
171 _log.error(se, se);
172
173 throw se;
174 }
175 }
176
177 public static com.liferay.portal.model.OrgLabor getOrgLabor(
178 HttpPrincipal httpPrincipal, long orgLaborId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 try {
182 Object paramObj0 = new LongWrapper(orgLaborId);
183
184 MethodWrapper methodWrapper = new MethodWrapper(OrgLaborServiceUtil.class.getName(),
185 "getOrgLabor", new Object[] { paramObj0 });
186
187 Object returnObj = null;
188
189 try {
190 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
191 }
192 catch (Exception e) {
193 if (e instanceof com.liferay.portal.PortalException) {
194 throw (com.liferay.portal.PortalException)e;
195 }
196
197 if (e instanceof com.liferay.portal.SystemException) {
198 throw (com.liferay.portal.SystemException)e;
199 }
200
201 throw new com.liferay.portal.SystemException(e);
202 }
203
204 return (com.liferay.portal.model.OrgLabor)returnObj;
205 }
206 catch (com.liferay.portal.SystemException se) {
207 _log.error(se, se);
208
209 throw se;
210 }
211 }
212
213 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
214 HttpPrincipal httpPrincipal, long organizationId)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException {
217 try {
218 Object paramObj0 = new LongWrapper(organizationId);
219
220 MethodWrapper methodWrapper = new MethodWrapper(OrgLaborServiceUtil.class.getName(),
221 "getOrgLabors", new Object[] { paramObj0 });
222
223 Object returnObj = null;
224
225 try {
226 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
227 }
228 catch (Exception e) {
229 if (e instanceof com.liferay.portal.PortalException) {
230 throw (com.liferay.portal.PortalException)e;
231 }
232
233 if (e instanceof com.liferay.portal.SystemException) {
234 throw (com.liferay.portal.SystemException)e;
235 }
236
237 throw new com.liferay.portal.SystemException(e);
238 }
239
240 return (java.util.List<com.liferay.portal.model.OrgLabor>)returnObj;
241 }
242 catch (com.liferay.portal.SystemException se) {
243 _log.error(se, se);
244
245 throw se;
246 }
247 }
248
249 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
250 HttpPrincipal httpPrincipal, long orgLaborId, int typeId, int sunOpen,
251 int sunClose, int monOpen, int monClose, int tueOpen, int tueClose,
252 int wedOpen, int wedClose, int thuOpen, int thuClose, int friOpen,
253 int friClose, int satOpen, int satClose)
254 throws com.liferay.portal.PortalException,
255 com.liferay.portal.SystemException {
256 try {
257 Object paramObj0 = new LongWrapper(orgLaborId);
258
259 Object paramObj1 = new IntegerWrapper(typeId);
260
261 Object paramObj2 = new IntegerWrapper(sunOpen);
262
263 Object paramObj3 = new IntegerWrapper(sunClose);
264
265 Object paramObj4 = new IntegerWrapper(monOpen);
266
267 Object paramObj5 = new IntegerWrapper(monClose);
268
269 Object paramObj6 = new IntegerWrapper(tueOpen);
270
271 Object paramObj7 = new IntegerWrapper(tueClose);
272
273 Object paramObj8 = new IntegerWrapper(wedOpen);
274
275 Object paramObj9 = new IntegerWrapper(wedClose);
276
277 Object paramObj10 = new IntegerWrapper(thuOpen);
278
279 Object paramObj11 = new IntegerWrapper(thuClose);
280
281 Object paramObj12 = new IntegerWrapper(friOpen);
282
283 Object paramObj13 = new IntegerWrapper(friClose);
284
285 Object paramObj14 = new IntegerWrapper(satOpen);
286
287 Object paramObj15 = new IntegerWrapper(satClose);
288
289 MethodWrapper methodWrapper = new MethodWrapper(OrgLaborServiceUtil.class.getName(),
290 "updateOrgLabor",
291 new Object[] {
292 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
293 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
294 paramObj10, paramObj11, paramObj12, paramObj13,
295 paramObj14, paramObj15
296 });
297
298 Object returnObj = null;
299
300 try {
301 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
302 }
303 catch (Exception e) {
304 if (e instanceof com.liferay.portal.PortalException) {
305 throw (com.liferay.portal.PortalException)e;
306 }
307
308 if (e instanceof com.liferay.portal.SystemException) {
309 throw (com.liferay.portal.SystemException)e;
310 }
311
312 throw new com.liferay.portal.SystemException(e);
313 }
314
315 return (com.liferay.portal.model.OrgLabor)returnObj;
316 }
317 catch (com.liferay.portal.SystemException se) {
318 _log.error(se, se);
319
320 throw se;
321 }
322 }
323
324 private static Log _log = LogFactoryUtil.getLog(OrgLaborServiceHttp.class);
325 }