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