001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for OrgLabor. This utility wraps
024     * {@link com.liferay.portal.service.impl.OrgLaborServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
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    @ProviderType
037    public class OrgLaborServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.OrgLaborServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.model.OrgLabor addOrgLabor(
044                    long organizationId, int typeId, int sunOpen, int sunClose,
045                    int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
046                    int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
047                    int satOpen, int satClose)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    return getService()
050                                       .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
051                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
052                            thuClose, friOpen, friClose, satOpen, satClose);
053            }
054    
055            public static void deleteOrgLabor(long orgLaborId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    getService().deleteOrgLabor(orgLaborId);
058            }
059    
060            /**
061            * Returns the Spring bean ID for this bean.
062            *
063            * @return the Spring bean ID for this bean
064            */
065            public static java.lang.String getBeanIdentifier() {
066                    return getService().getBeanIdentifier();
067            }
068    
069            public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
070                    throws com.liferay.portal.kernel.exception.PortalException {
071                    return getService().getOrgLabor(orgLaborId);
072            }
073    
074            public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
075                    long organizationId)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return getService().getOrgLabors(organizationId);
078            }
079    
080            /**
081            * Sets the Spring bean ID for this bean.
082            *
083            * @param beanIdentifier the Spring bean ID for this bean
084            */
085            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
086                    getService().setBeanIdentifier(beanIdentifier);
087            }
088    
089            public static com.liferay.portal.model.OrgLabor updateOrgLabor(
090                    long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
091                    int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
092                    int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
093                    int satClose)
094                    throws com.liferay.portal.kernel.exception.PortalException {
095                    return getService()
096                                       .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
097                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
098                            thuClose, friOpen, friClose, satOpen, satClose);
099            }
100    
101            public static OrgLaborService getService() {
102                    if (_service == null) {
103                            _service = (OrgLaborService)PortalBeanLocatorUtil.locate(OrgLaborService.class.getName());
104    
105                            ReferenceRegistry.registerReference(OrgLaborServiceUtil.class,
106                                    "_service");
107                    }
108    
109                    return _service;
110            }
111    
112            /**
113             * @deprecated As of 6.2.0
114             */
115            @Deprecated
116            public void setService(OrgLaborService service) {
117            }
118    
119            private static OrgLaborService _service;
120    }