001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.service.OrgLaborServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
065 public class OrgLaborServiceSoap {
066 public static com.liferay.portal.model.OrgLaborSoap addOrgLabor(
067 long organizationId, int typeId, int sunOpen, int sunClose,
068 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
069 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
070 int satOpen, int satClose) throws RemoteException {
071 try {
072 com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.addOrgLabor(organizationId,
073 typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
074 tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
075 friClose, satOpen, satClose);
076
077 return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
078 }
079 catch (Exception e) {
080 _log.error(e, e);
081
082 throw new RemoteException(e.getMessage());
083 }
084 }
085
086 public static void deleteOrgLabor(long orgLaborId)
087 throws RemoteException {
088 try {
089 OrgLaborServiceUtil.deleteOrgLabor(orgLaborId);
090 }
091 catch (Exception e) {
092 _log.error(e, e);
093
094 throw new RemoteException(e.getMessage());
095 }
096 }
097
098 public static com.liferay.portal.model.OrgLaborSoap getOrgLabor(
099 long orgLaborId) throws RemoteException {
100 try {
101 com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.getOrgLabor(orgLaborId);
102
103 return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
104 }
105 catch (Exception e) {
106 _log.error(e, e);
107
108 throw new RemoteException(e.getMessage());
109 }
110 }
111
112 public static com.liferay.portal.model.OrgLaborSoap[] getOrgLabors(
113 long organizationId) throws RemoteException {
114 try {
115 java.util.List<com.liferay.portal.model.OrgLabor> returnValue = OrgLaborServiceUtil.getOrgLabors(organizationId);
116
117 return com.liferay.portal.model.OrgLaborSoap.toSoapModels(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 public static com.liferay.portal.model.OrgLaborSoap updateOrgLabor(
127 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
128 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
129 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
130 int satClose) throws RemoteException {
131 try {
132 com.liferay.portal.model.OrgLabor returnValue = OrgLaborServiceUtil.updateOrgLabor(orgLaborId,
133 typeId, sunOpen, sunClose, monOpen, monClose, tueOpen,
134 tueClose, wedOpen, wedClose, thuOpen, thuClose, friOpen,
135 friClose, satOpen, satClose);
136
137 return com.liferay.portal.model.OrgLaborSoap.toSoapModel(returnValue);
138 }
139 catch (Exception e) {
140 _log.error(e, e);
141
142 throw new RemoteException(e.getMessage());
143 }
144 }
145
146 private static Log _log = LogFactoryUtil.getLog(OrgLaborServiceSoap.class);
147 }