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     * The utility for the org labor remote service. This utility wraps {@link com.liferay.portal.service.impl.OrgLaborServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.OrgLaborServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see OrgLaborService
032     * @see com.liferay.portal.service.base.OrgLaborServiceBaseImpl
033     * @see com.liferay.portal.service.impl.OrgLaborServiceImpl
034     * @generated
035     */
036    public class OrgLaborServiceUtil {
037            public static com.liferay.portal.model.OrgLabor addOrgLabor(
038                    long organizationId, int typeId, int sunOpen, int sunClose,
039                    int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
040                    int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
041                    int satOpen, int satClose)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    return getService()
045                                       .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
046                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
047                            thuClose, friOpen, friClose, satOpen, satClose);
048            }
049    
050            public static void deleteOrgLabor(long orgLaborId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteOrgLabor(orgLaborId);
054            }
055    
056            public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return getService().getOrgLabor(orgLaborId);
060            }
061    
062            public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
063                    long organizationId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return getService().getOrgLabors(organizationId);
067            }
068    
069            public static com.liferay.portal.model.OrgLabor updateOrgLabor(
070                    long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
071                    int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
072                    int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
073                    int satClose)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
078                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
079                            thuClose, friOpen, friClose, satOpen, satClose);
080            }
081    
082            public static OrgLaborService getService() {
083                    if (_service == null) {
084                            _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
085                    }
086    
087                    return _service;
088            }
089    
090            public void setService(OrgLaborService service) {
091                    _service = service;
092            }
093    
094            private static OrgLaborService _service;
095    }