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