1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class OrgLaborServiceUtil {
42 public static com.liferay.portal.model.OrgLabor addOrgLabor(
43 long organizationId, int typeId, int sunOpen, int sunClose,
44 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
45 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
46 int satOpen, int satClose)
47 throws com.liferay.portal.PortalException,
48 com.liferay.portal.SystemException {
49 return getService()
50 .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
51 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
52 thuClose, friOpen, friClose, satOpen, satClose);
53 }
54
55 public static void deleteOrgLabor(long orgLaborId)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException {
58 getService().deleteOrgLabor(orgLaborId);
59 }
60
61 public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException {
64 return getService().getOrgLabor(orgLaborId);
65 }
66
67 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
68 long organizationId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException {
71 return getService().getOrgLabors(organizationId);
72 }
73
74 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
75 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
76 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
77 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
78 int satClose)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException {
81 return getService()
82 .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
83 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
84 thuClose, friOpen, friClose, satOpen, satClose);
85 }
86
87 public static OrgLaborService getService() {
88 if (_service == null) {
89 _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
90
91 ReferenceRegistry.registerReference(OrgLaborServiceUtil.class,
92 "_service");
93 MethodCache.remove(OrgLaborService.class);
94 }
95
96 return _service;
97 }
98
99 public void setService(OrgLaborService service) {
100 MethodCache.remove(OrgLaborService.class);
101
102 _service = service;
103
104 ReferenceRegistry.registerReference(OrgLaborServiceUtil.class,
105 "_service");
106 MethodCache.remove(OrgLaborService.class);
107 }
108
109 private static OrgLaborService _service;
110 }