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     * The utility for the m d r rule remote service. This utility wraps {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Edward C. Han
028     * @see MDRRuleService
029     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleServiceBaseImpl
030     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl
031     * @generated
032     */
033    public class MDRRuleServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
059                    long ruleGroupId,
060                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    java.lang.String type, java.lang.String typeSettings,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return getService()
067                                       .addRule(ruleGroupId, nameMap, descriptionMap, type,
068                            typeSettings, serviceContext);
069            }
070    
071            public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
072                    long ruleGroupId,
073                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
074                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
075                    java.lang.String type,
076                    com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService()
081                                       .addRule(ruleGroupId, nameMap, descriptionMap, type,
082                            typeSettings, serviceContext);
083            }
084    
085            public static void deleteRule(long ruleId)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    getService().deleteRule(ruleId);
089            }
090    
091            public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
092                    long ruleId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return getService().fetchRule(ruleId);
096            }
097    
098            public static com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
099                    long ruleId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getRule(ruleId);
103            }
104    
105            public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
106                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
107                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
108                    java.lang.String type, java.lang.String typeSettings,
109                    com.liferay.portal.service.ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return getService()
113                                       .updateRule(ruleId, nameMap, descriptionMap, type,
114                            typeSettings, serviceContext);
115            }
116    
117            public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
118                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
119                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
120                    java.lang.String type,
121                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
122                    com.liferay.portal.service.ServiceContext serviceContext)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return getService()
126                                       .updateRule(ruleId, nameMap, descriptionMap, type,
127                            typeSettingsProperties, serviceContext);
128            }
129    
130            public static MDRRuleService getService() {
131                    if (_service == null) {
132                            _service = (MDRRuleService)PortalBeanLocatorUtil.locate(MDRRuleService.class.getName());
133    
134                            ReferenceRegistry.registerReference(MDRRuleServiceUtil.class,
135                                    "_service");
136                    }
137    
138                    return _service;
139            }
140    
141            /**
142             * @deprecated
143             */
144            public void setService(MDRRuleService service) {
145            }
146    
147            private static MDRRuleService _service;
148    }