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