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