1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="OrgLaborLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link OrgLaborLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       OrgLaborLocalService
37   * @generated
38   */
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.kernel.exception.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.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteOrgLabor(orgLaborId);
55      }
56  
57      public static void deleteOrgLabor(
58          com.liferay.portal.model.OrgLabor orgLabor)
59          throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.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)
83          throws com.liferay.portal.kernel.exception.SystemException {
84          return getService().getOrgLabors(start, end);
85      }
86  
87      public static int getOrgLaborsCount()
88          throws com.liferay.portal.kernel.exception.SystemException {
89          return getService().getOrgLaborsCount();
90      }
91  
92      public static com.liferay.portal.model.OrgLabor updateOrgLabor(
93          com.liferay.portal.model.OrgLabor orgLabor)
94          throws com.liferay.portal.kernel.exception.SystemException {
95          return getService().updateOrgLabor(orgLabor);
96      }
97  
98      public static com.liferay.portal.model.OrgLabor updateOrgLabor(
99          com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return getService().updateOrgLabor(orgLabor, merge);
102     }
103 
104     public static com.liferay.portal.model.OrgLabor addOrgLabor(
105         long organizationId, int typeId, int sunOpen, int sunClose,
106         int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
107         int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
108         int satOpen, int satClose)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return getService()
112                    .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
113             monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
114             thuClose, friOpen, friClose, satOpen, satClose);
115     }
116 
117     public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
118         long organizationId)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getService().getOrgLabors(organizationId);
121     }
122 
123     public static com.liferay.portal.model.OrgLabor updateOrgLabor(
124         long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
125         int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
126         int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
127         int satClose)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException {
130         return getService()
131                    .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
132             monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
133             thuClose, friOpen, friClose, satOpen, satClose);
134     }
135 
136     public static OrgLaborLocalService getService() {
137         if (_service == null) {
138             _service = (OrgLaborLocalService)PortalBeanLocatorUtil.locate(OrgLaborLocalService.class.getName());
139         }
140 
141         return _service;
142     }
143 
144     public void setService(OrgLaborLocalService service) {
145         _service = service;
146     }
147 
148     private static OrgLaborLocalService _service;
149 }