001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class OrgLaborServiceUtil {
038
043 public static com.liferay.portal.kernel.model.OrgLabor addOrgLabor(
044 long organizationId, long typeId, int sunOpen, int sunClose,
045 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
046 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
047 int satOpen, int satClose)
048 throws com.liferay.portal.kernel.exception.PortalException {
049 return getService()
050 .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
051 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
052 thuClose, friOpen, friClose, satOpen, satClose);
053 }
054
055 public static com.liferay.portal.kernel.model.OrgLabor getOrgLabor(
056 long orgLaborId)
057 throws com.liferay.portal.kernel.exception.PortalException {
058 return getService().getOrgLabor(orgLaborId);
059 }
060
061 public static com.liferay.portal.kernel.model.OrgLabor updateOrgLabor(
062 long orgLaborId, long typeId, int sunOpen, int sunClose, int monOpen,
063 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
064 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
065 int satClose)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService()
068 .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
069 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
070 thuClose, friOpen, friClose, satOpen, satClose);
071 }
072
073
078 public static java.lang.String getOSGiServiceIdentifier() {
079 return getService().getOSGiServiceIdentifier();
080 }
081
082 public static java.util.List<com.liferay.portal.kernel.model.OrgLabor> getOrgLabors(
083 long organizationId)
084 throws com.liferay.portal.kernel.exception.PortalException {
085 return getService().getOrgLabors(organizationId);
086 }
087
088 public static void deleteOrgLabor(long orgLaborId)
089 throws com.liferay.portal.kernel.exception.PortalException {
090 getService().deleteOrgLabor(orgLaborId);
091 }
092
093 public static OrgLaborService getService() {
094 if (_service == null) {
095 _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
096
097 ReferenceRegistry.registerReference(OrgLaborServiceUtil.class,
098 "_service");
099 }
100
101 return _service;
102 }
103
104 private static OrgLaborService _service;
105 }