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="OrgLaborServiceUtil.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 OrgLaborService} 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       OrgLaborService
37   * @generated
38   */
39  public class OrgLaborServiceUtil {
40      public static com.liferay.portal.model.OrgLabor addOrgLabor(
41          long organizationId, int typeId, int sunOpen, int sunClose,
42          int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
43          int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
44          int satOpen, int satClose)
45          throws com.liferay.portal.kernel.exception.PortalException,
46              com.liferay.portal.kernel.exception.SystemException {
47          return getService()
48                     .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
49              monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
50              thuClose, friOpen, friClose, satOpen, satClose);
51      }
52  
53      public static void deleteOrgLabor(long orgLaborId)
54          throws com.liferay.portal.kernel.exception.PortalException,
55              com.liferay.portal.kernel.exception.SystemException {
56          getService().deleteOrgLabor(orgLaborId);
57      }
58  
59      public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.SystemException {
62          return getService().getOrgLabor(orgLaborId);
63      }
64  
65      public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
66          long organizationId)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException {
69          return getService().getOrgLabors(organizationId);
70      }
71  
72      public static com.liferay.portal.model.OrgLabor updateOrgLabor(
73          long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
74          int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
75          int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
76          int satClose)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService()
80                     .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
81              monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
82              thuClose, friOpen, friClose, satOpen, satClose);
83      }
84  
85      public static OrgLaborService getService() {
86          if (_service == null) {
87              _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
88          }
89  
90          return _service;
91      }
92  
93      public void setService(OrgLaborService service) {
94          _service = service;
95      }
96  
97      private static OrgLaborService _service;
98  }