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 com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException {
78 return getService().getOrgLabor(orgLaborId);
79 }
80
81 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
82 int start, int end) throws com.liferay.portal.SystemException {
83 return getService().getOrgLabors(start, end);
84 }
85
86 public static int getOrgLaborsCount()
87 throws com.liferay.portal.SystemException {
88 return getService().getOrgLaborsCount();
89 }
90
91 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
92 com.liferay.portal.model.OrgLabor orgLabor)
93 throws com.liferay.portal.SystemException {
94 return getService().updateOrgLabor(orgLabor);
95 }
96
97 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
98 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
99 throws com.liferay.portal.SystemException {
100 return getService().updateOrgLabor(orgLabor, merge);
101 }
102
103 public static com.liferay.portal.model.OrgLabor addOrgLabor(
104 long organizationId, int typeId, int sunOpen, int sunClose,
105 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
106 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
107 int satOpen, int satClose)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException {
110 return getService()
111 .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
112 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
113 thuClose, friOpen, friClose, satOpen, satClose);
114 }
115
116 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
117 long organizationId) throws com.liferay.portal.SystemException {
118 return getService().getOrgLabors(organizationId);
119 }
120
121 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
122 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
123 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
124 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
125 int satClose)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService()
129 .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
130 monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
131 thuClose, friOpen, friClose, satOpen, satClose);
132 }
133
134 public static OrgLaborLocalService getService() {
135 if (_service == null) {
136 _service = (OrgLaborLocalService)PortalBeanLocatorUtil.locate(OrgLaborLocalService.class.getName());
137 }
138
139 return _service;
140 }
141
142 public void setService(OrgLaborLocalService service) {
143 _service = service;
144 }
145
146 private static OrgLaborLocalService _service;
147 }