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