1
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
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 }