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 OrgLaborLocalServiceUtil {
42 public static com.liferay.portal.model.OrgLabor addOrgLabor(
43 com.liferay.portal.model.OrgLabor orgLabor)
44 throws com.liferay.portal.SystemException {
45 return getService().addOrgLabor(orgLabor);
46 }
47
48 public static com.liferay.portal.model.OrgLabor createOrgLabor(
49 long orgLaborId) {
50 return getService().createOrgLabor(orgLaborId);
51 }
52
53 public static void deleteOrgLabor(long orgLaborId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteOrgLabor(orgLaborId);
57 }
58
59 public static void deleteOrgLabor(
60 com.liferay.portal.model.OrgLabor orgLabor)
61 throws com.liferay.portal.SystemException {
62 getService().deleteOrgLabor(orgLabor);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 return getService().getOrgLabor(orgLaborId);
99 }
100
101 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
102 int start, int end) throws com.liferay.portal.SystemException {
103 return getService().getOrgLabors(start, end);
104 }
105
106 public static int getOrgLaborsCount()
107 throws com.liferay.portal.SystemException {
108 return getService().getOrgLaborsCount();
109 }
110
111 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
112 com.liferay.portal.model.OrgLabor orgLabor)
113 throws com.liferay.portal.SystemException {
114 return getService().updateOrgLabor(orgLabor);
115 }
116
117 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
118 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
119 throws com.liferay.portal.SystemException {
120 return getService().updateOrgLabor(orgLabor, merge);
121 }
122
123 public static com.liferay.portal.model.OrgLabor addOrgLabor(
124 long organizationId, int typeId, int sunOpen, int sunClose,
125 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
126 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
127 int satOpen, int satClose)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException {
130 return getService()
131 .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
132 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
133 thuClose, friOpen, friClose, satOpen, satClose);
134 }
135
136 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
137 long organizationId) throws com.liferay.portal.SystemException {
138 return getService().getOrgLabors(organizationId);
139 }
140
141 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
142 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
143 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
144 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
145 int satClose)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException {
148 return getService()
149 .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
150 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
151 thuClose, friOpen, friClose, satOpen, satClose);
152 }
153
154 public static OrgLaborLocalService getService() {
155 if (_service == null) {
156 _service = (OrgLaborLocalService)PortalBeanLocatorUtil.locate(OrgLaborLocalService.class.getName());
157
158 ReferenceRegistry.registerReference(OrgLaborLocalServiceUtil.class,
159 "_service");
160 MethodCache.remove(OrgLaborLocalService.class);
161 }
162
163 return _service;
164 }
165
166 public void setService(OrgLaborLocalService service) {
167 MethodCache.remove(OrgLaborLocalService.class);
168
169 _service = service;
170
171 ReferenceRegistry.registerReference(OrgLaborLocalServiceUtil.class,
172 "_service");
173 MethodCache.remove(OrgLaborLocalService.class);
174 }
175
176 private static OrgLaborLocalService _service;
177 }