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            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
088                    long[] groupIds, int start, int end) {
089                    return getService().getRuleGroups(groupIds, start, end);
090            }
091    
092            public static int getRuleGroupsCount(long[] groupIds) {
093                    return getService().getRuleGroupsCount(groupIds);
094            }
095    
096            /**
097            * Sets the Spring bean ID for this bean.
098            *
099            * @param beanIdentifier the Spring bean ID for this bean
100            */
101            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
102                    getService().setBeanIdentifier(beanIdentifier);
103            }
104    
105            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
106                    long ruleGroupId,
107                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
108                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
109                    com.liferay.portal.service.ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return getService()
112                                       .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
113                            serviceContext);
114            }
115    
116            public static MDRRuleGroupService getService() {
117                    if (_service == null) {
118                            _service = (MDRRuleGroupService)PortalBeanLocatorUtil.locate(MDRRuleGroupService.class.getName());
119    
120                            ReferenceRegistry.registerReference(MDRRuleGroupServiceUtil.class,
121                                    "_service");
122                    }
123    
124                    return _service;
125            }
126    
127            /**
128             * @deprecated As of 6.2.0
129             */
130            @Deprecated
131            public void setService(MDRRuleGroupService service) {
132            }
133    
134            private static MDRRuleGroupService _service;
135    }