001
014
015 package com.liferay.portal.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.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 void deleteOrgLabor(long orgLaborId)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 getService().deleteOrgLabor(orgLaborId);
058 }
059
060
065 public static java.lang.String getOSGiServiceIdentifier() {
066 return getService().getOSGiServiceIdentifier();
067 }
068
069 public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
070 throws com.liferay.portal.kernel.exception.PortalException {
071 return getService().getOrgLabor(orgLaborId);
072 }
073
074 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
075 long organizationId)
076 throws com.liferay.portal.kernel.exception.PortalException {
077 return getService().getOrgLabors(organizationId);
078 }
079
080 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
081 long orgLaborId, long typeId, int sunOpen, int sunClose, int monOpen,
082 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
083 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
084 int satClose)
085 throws com.liferay.portal.kernel.exception.PortalException {
086 return getService()
087 .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
088 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
089 thuClose, friOpen, friClose, satOpen, satClose);
090 }
091
092 public static OrgLaborService getService() {
093 if (_service == null) {
094 _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
095
096 ReferenceRegistry.registerReference(OrgLaborServiceUtil.class,
097 "_service");
098 }
099
100 return _service;
101 }
102
103 private static OrgLaborService _service;
104 }