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.service.OrgLaborServiceUtil;
28
29 import java.rmi.RemoteException;
30
31
81 public class OrgLaborServiceSoap {
82 public static com.liferay.portal.model.OrgLaborSoap addOrgLabor(
83 long organizationId, int typeId, int sunOpen, int sunClose,
84 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
85 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
86 int satOpen, int satClose) throws RemoteException {
87 try {
88 com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.addOrgLabor(organizationId,
89 typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
90 tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
91 friClose, satOpen, satClose);
92
93 return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
94 }
95 catch (Exception e) {
96 _log.error(e, e);
97
98 throw new RemoteException(e.getMessage());
99 }
100 }
101
102 public static void deleteOrgLabor(long orgLaborId)
103 throws RemoteException {
104 try {
105 OrgLaborServiceUtil.deleteOrgLabor(orgLaborId);
106 }
107 catch (Exception e) {
108 _log.error(e, e);
109
110 throw new RemoteException(e.getMessage());
111 }
112 }
113
114 public static com.liferay.portal.model.OrgLaborSoap getOrgLabor(
115 long orgLaborId) throws RemoteException {
116 try {
117 com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.getOrgLabor(orgLaborId);
118
119 return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
120 }
121 catch (Exception e) {
122 _log.error(e, e);
123
124 throw new RemoteException(e.getMessage());
125 }
126 }
127
128 public static com.liferay.portal.model.OrgLaborSoap[] getOrgLabors(
129 long organizationId) throws RemoteException {
130 try {
131 java.util.List<com.liferay.portal.model.OrgLabor> returnValue = OrgLaborServiceUtil.getOrgLabors(organizationId);
132
133 return com.liferay.portal.model.OrgLaborSoap.toSoapModels(returnValue);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 public static com.liferay.portal.model.OrgLaborSoap updateOrgLabor(
143 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
144 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
145 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
146 int satClose) throws RemoteException {
147 try {
148 com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.updateOrgLabor(orgLaborId,
149 typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
150 tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
151 friClose, satOpen, satClose);
152
153 return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162 private static Log _log = LogFactoryUtil.getLog(OrgLaborServiceSoap.class);
163 }