001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    }