001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link OrgLaborService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       OrgLaborService
030     * @generated
031     */
032    public class OrgLaborServiceUtil {
033            public static com.liferay.portal.model.OrgLabor addOrgLabor(
034                    long organizationId, int typeId, int sunOpen, int sunClose,
035                    int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
036                    int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
037                    int satOpen, int satClose)
038                    throws com.liferay.portal.kernel.exception.PortalException,
039                            com.liferay.portal.kernel.exception.SystemException {
040                    return getService()
041                                       .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
042                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
043                            thuClose, friOpen, friClose, satOpen, satClose);
044            }
045    
046            public static void deleteOrgLabor(long orgLaborId)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException {
049                    getService().deleteOrgLabor(orgLaborId);
050            }
051    
052            public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    return getService().getOrgLabor(orgLaborId);
056            }
057    
058            public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
059                    long organizationId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return getService().getOrgLabors(organizationId);
063            }
064    
065            public static com.liferay.portal.model.OrgLabor updateOrgLabor(
066                    long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
067                    int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
068                    int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
069                    int satClose)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return getService()
073                                       .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
074                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
075                            thuClose, friOpen, friClose, satOpen, satClose);
076            }
077    
078            public static OrgLaborService getService() {
079                    if (_service == null) {
080                            _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
081                    }
082    
083                    return _service;
084            }
085    
086            public void setService(OrgLaborService service) {
087                    _service = service;
088            }
089    
090            private static OrgLaborService _service;
091    }