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.portlet.mobiledevicerules.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 MDRRuleGroup. This utility wraps
024     * {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl} 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 Edward C. Han
031     * @see MDRRuleGroupService
032     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleGroupServiceBaseImpl
033     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class MDRRuleGroupServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addRuleGroup(
044                    long groupId,
045                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
046                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047                    com.liferay.portal.service.ServiceContext serviceContext)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    return getService()
050                                       .addRuleGroup(groupId, nameMap, descriptionMap,
051                            serviceContext);
052            }
053    
054            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
055                    long ruleGroupId, long groupId,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return getService().copyRuleGroup(ruleGroupId, groupId, serviceContext);
059            }
060    
061            public static void deleteRuleGroup(long ruleGroupId)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    getService().deleteRuleGroup(ruleGroupId);
064            }
065    
066            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
067                    long ruleGroupId)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    return getService().fetchRuleGroup(ruleGroupId);
070            }
071    
072            /**
073            * Returns the Spring bean ID for this bean.
074            *
075            * @return the Spring bean ID for this bean
076            */
077            public static java.lang.String getBeanIdentifier() {
078                    return getService().getBeanIdentifier();
079            }
080    
081            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
082                    long ruleGroupId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return getService().getRuleGroup(ruleGroupId);
085            }
086    
087            /**
088            * Sets the Spring bean ID for this bean.
089            *
090            * @param beanIdentifier the Spring bean ID for this bean
091            */
092            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
093                    getService().setBeanIdentifier(beanIdentifier);
094            }
095    
096            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
097                    long ruleGroupId,
098                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
099                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return getService()
103                                       .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
104                            serviceContext);
105            }
106    
107            public static MDRRuleGroupService getService() {
108                    if (_service == null) {
109                            _service = (MDRRuleGroupService)PortalBeanLocatorUtil.locate(MDRRuleGroupService.class.getName());
110    
111                            ReferenceRegistry.registerReference(MDRRuleGroupServiceUtil.class,
112                                    "_service");
113                    }
114    
115                    return _service;
116            }
117    
118            /**
119             * @deprecated As of 6.2.0
120             */
121            @Deprecated
122            public void setService(MDRRuleGroupService service) {
123            }
124    
125            private static MDRRuleGroupService _service;
126    }