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 MDRAction. This utility wraps
024     * {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRActionServiceImpl} 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 MDRActionService
032     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRActionServiceBaseImpl
033     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRActionServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class MDRActionServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRActionServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
044                    long ruleGroupInstanceId,
045                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
046                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047                    java.lang.String type, java.lang.String typeSettings,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return getService()
051                                       .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
052                            type, typeSettings, serviceContext);
053            }
054    
055            public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
056                    long ruleGroupInstanceId,
057                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
058                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059                    java.lang.String type,
060                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    return getService()
064                                       .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
065                            type, typeSettingsProperties, serviceContext);
066            }
067    
068            public static void deleteAction(long actionId)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    getService().deleteAction(actionId);
071            }
072    
073            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
074                    long actionId)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return getService().fetchAction(actionId);
077            }
078    
079            public static com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
080                    long actionId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return getService().getAction(actionId);
083            }
084    
085            /**
086            * Returns the Spring bean ID for this bean.
087            *
088            * @return the Spring bean ID for this bean
089            */
090            public static java.lang.String getBeanIdentifier() {
091                    return getService().getBeanIdentifier();
092            }
093    
094            /**
095            * Sets the Spring bean ID for this bean.
096            *
097            * @param beanIdentifier the Spring bean ID for this bean
098            */
099            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
100                    getService().setBeanIdentifier(beanIdentifier);
101            }
102    
103            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
104                    long actionId,
105                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
106                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
107                    java.lang.String type, java.lang.String typeSettings,
108                    com.liferay.portal.service.ServiceContext serviceContext)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    return getService()
111                                       .updateAction(actionId, nameMap, descriptionMap, type,
112                            typeSettings, serviceContext);
113            }
114    
115            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
116                    long actionId,
117                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
118                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
119                    java.lang.String type,
120                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService()
124                                       .updateAction(actionId, nameMap, descriptionMap, type,
125                            typeSettingsProperties, serviceContext);
126            }
127    
128            public static MDRActionService getService() {
129                    if (_service == null) {
130                            _service = (MDRActionService)PortalBeanLocatorUtil.locate(MDRActionService.class.getName());
131    
132                            ReferenceRegistry.registerReference(MDRActionServiceUtil.class,
133                                    "_service");
134                    }
135    
136                    return _service;
137            }
138    
139            /**
140             * @deprecated As of 6.2.0
141             */
142            @Deprecated
143            public void setService(MDRActionService service) {
144            }
145    
146            private static MDRActionService _service;
147    }