001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class OrgLaborServiceUtil {
033 public static com.liferay.portal.model.OrgLabor addOrgLabor(
034 long organizationId, int typeId, int sunOpen, int sunClose,
035 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
036 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
037 int satOpen, int satClose)
038 throws com.liferay.portal.kernel.exception.PortalException,
039 com.liferay.portal.kernel.exception.SystemException {
040 return getService()
041 .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
042 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
043 thuClose, friOpen, friClose, satOpen, satClose);
044 }
045
046 public static void deleteOrgLabor(long orgLaborId)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException {
049 getService().deleteOrgLabor(orgLaborId);
050 }
051
052 public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException {
055 return getService().getOrgLabor(orgLaborId);
056 }
057
058 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
059 long organizationId)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 return getService().getOrgLabors(organizationId);
063 }
064
065 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
066 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
067 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
068 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
069 int satClose)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 return getService()
073 .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
074 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
075 thuClose, friOpen, friClose, satOpen, satClose);
076 }
077
078 public static OrgLaborService getService() {
079 if (_service == null) {
080 _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
081 }
082
083 return _service;
084 }
085
086 public void setService(OrgLaborService service) {
087 _service = service;
088 }
089
090 private static OrgLaborService _service;
091 }