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.portlet.mobiledevicerules.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 MDRRule. This utility wraps
022     * {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl} 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 Edward C. Han
029     * @see MDRRuleService
030     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleServiceBaseImpl
031     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl
032     * @generated
033     */
034    public class MDRRuleServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl} 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.portlet.mobiledevicerules.model.MDRRule addRule(
060                    long ruleGroupId,
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    java.lang.String type, java.lang.String typeSettings,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService()
068                                       .addRule(ruleGroupId, nameMap, descriptionMap, type,
069                            typeSettings, serviceContext);
070            }
071    
072            public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
073                    long ruleGroupId,
074                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
075                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
076                    java.lang.String type,
077                    com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return getService()
082                                       .addRule(ruleGroupId, nameMap, descriptionMap, type,
083                            typeSettings, serviceContext);
084            }
085    
086            public static void deleteRule(long ruleId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().deleteRule(ruleId);
090            }
091    
092            public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
093                    long ruleId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().fetchRule(ruleId);
097            }
098    
099            public static com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
100                    long ruleId)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getRule(ruleId);
104            }
105    
106            public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
107                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
108                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
109                    java.lang.String type, java.lang.String typeSettings,
110                    com.liferay.portal.service.ServiceContext serviceContext)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException {
113                    return getService()
114                                       .updateRule(ruleId, nameMap, descriptionMap, type,
115                            typeSettings, serviceContext);
116            }
117    
118            public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
119                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
120                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
121                    java.lang.String type,
122                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
123                    com.liferay.portal.service.ServiceContext serviceContext)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getService()
127                                       .updateRule(ruleId, nameMap, descriptionMap, type,
128                            typeSettingsProperties, serviceContext);
129            }
130    
131            public static MDRRuleService getService() {
132                    if (_service == null) {
133                            _service = (MDRRuleService)PortalBeanLocatorUtil.locate(MDRRuleService.class.getName());
134    
135                            ReferenceRegistry.registerReference(MDRRuleServiceUtil.class,
136                                    "_service");
137                    }
138    
139                    return _service;
140            }
141    
142            /**
143             * @deprecated As of 6.2.0
144             */
145            public void setService(MDRRuleService service) {
146            }
147    
148            private static MDRRuleService _service;
149    }