1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.http;
16  
17  import com.liferay.portal.kernel.log.Log;
18  import com.liferay.portal.kernel.log.LogFactoryUtil;
19  import com.liferay.portal.service.OrgLaborServiceUtil;
20  
21  import java.rmi.RemoteException;
22  
23  /**
24   * <a href="OrgLaborServiceSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class provides a SOAP utility for the
33   * {@link com.liferay.portal.service.OrgLaborServiceUtil} service utility. The
34   * static methods of this class calls the same methods of the service utility.
35   * However, the signatures are different because it is difficult for SOAP to
36   * support certain types.
37   * </p>
38   *
39   * <p>
40   * ServiceBuilder follows certain rules in translating the methods. For example,
41   * if the method in the service utility returns a {@link java.util.List}, that
42   * is translated to an array of {@link com.liferay.portal.model.OrgLaborSoap}.
43   * If the method in the service utility returns a
44   * {@link com.liferay.portal.model.OrgLabor}, that is translated to a
45   * {@link com.liferay.portal.model.OrgLaborSoap}. Methods that SOAP cannot
46   * safely wire are skipped.
47   * </p>
48   *
49   * <p>
50   * The benefits of using the SOAP utility is that it is cross platform
51   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
52   * even Perl, to call the generated services. One drawback of SOAP is that it is
53   * slow because it needs to serialize all calls into a text format (XML).
54   * </p>
55   *
56   * <p>
57   * You can see a list of services at
58   * http://localhost:8080/tunnel-web/secure/axis. Set the property
59   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
60   * security.
61   * </p>
62   *
63   * <p>
64   * The SOAP utility is only generated for remote services.
65   * </p>
66   *
67   * @author    Brian Wing Shun Chan
68   * @see       OrgLaborServiceHttp
69   * @see       com.liferay.portal.model.OrgLaborSoap
70   * @see       com.liferay.portal.service.OrgLaborServiceUtil
71   * @generated
72   */
73  public class OrgLaborServiceSoap {
74      public static com.liferay.portal.model.OrgLaborSoap addOrgLabor(
75          long organizationId, int typeId, int sunOpen, int sunClose,
76          int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
77          int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
78          int satOpen, int satClose) throws RemoteException {
79          try {
80              com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.addOrgLabor(organizationId,
81                      typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
82                      tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
83                      friClose, satOpen, satClose);
84  
85              return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
86          }
87          catch (Exception e) {
88              _log.error(e, e);
89  
90              throw new RemoteException(e.getMessage());
91          }
92      }
93  
94      public static void deleteOrgLabor(long orgLaborId)
95          throws RemoteException {
96          try {
97              OrgLaborServiceUtil.deleteOrgLabor(orgLaborId);
98          }
99          catch (Exception e) {
100             _log.error(e, e);
101 
102             throw new RemoteException(e.getMessage());
103         }
104     }
105 
106     public static com.liferay.portal.model.OrgLaborSoap getOrgLabor(
107         long orgLaborId) throws RemoteException {
108         try {
109             com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.getOrgLabor(orgLaborId);
110 
111             return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
112         }
113         catch (Exception e) {
114             _log.error(e, e);
115 
116             throw new RemoteException(e.getMessage());
117         }
118     }
119 
120     public static com.liferay.portal.model.OrgLaborSoap[] getOrgLabors(
121         long organizationId) throws RemoteException {
122         try {
123             java.util.List<com.liferay.portal.model.OrgLabor> returnValue = OrgLaborServiceUtil.getOrgLabors(organizationId);
124 
125             return com.liferay.portal.model.OrgLaborSoap.toSoapModels(returnValue);
126         }
127         catch (Exception e) {
128             _log.error(e, e);
129 
130             throw new RemoteException(e.getMessage());
131         }
132     }
133 
134     public static com.liferay.portal.model.OrgLaborSoap updateOrgLabor(
135         long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
136         int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
137         int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
138         int satClose) throws RemoteException {
139         try {
140             com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.updateOrgLabor(orgLaborId,
141                     typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
142                     tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
143                     friClose, satOpen, satClose);
144 
145             return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
146         }
147         catch (Exception e) {
148             _log.error(e, e);
149 
150             throw new RemoteException(e.getMessage());
151         }
152     }
153 
154     private static Log _log = LogFactoryUtil.getLog(OrgLaborServiceSoap.class);
155 }