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 MDRAction. This utility wraps
022     * {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRActionServiceImpl} 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 MDRActionService
030     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRActionServiceBaseImpl
031     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRActionServiceImpl
032     * @generated
033     */
034    public class MDRActionServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
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.MDRAction addAction(
060                    long ruleGroupInstanceId,
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                                       .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
069                            type, typeSettings, serviceContext);
070            }
071    
072            public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
073                    long ruleGroupInstanceId,
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 typeSettingsProperties,
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                                       .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
083                            type, typeSettingsProperties, serviceContext);
084            }
085    
086            public static void deleteAction(long actionId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().deleteAction(actionId);
090            }
091    
092            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
093                    long actionId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().fetchAction(actionId);
097            }
098    
099            public static com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
100                    long actionId)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getAction(actionId);
104            }
105    
106            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
107                    long actionId,
108                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
109                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
110                    java.lang.String type, java.lang.String typeSettings,
111                    com.liferay.portal.service.ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException {
114                    return getService()
115                                       .updateAction(actionId, nameMap, descriptionMap, type,
116                            typeSettings, serviceContext);
117            }
118    
119            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
120                    long actionId,
121                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
122                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
123                    java.lang.String type,
124                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
125                    com.liferay.portal.service.ServiceContext serviceContext)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    return getService()
129                                       .updateAction(actionId, nameMap, descriptionMap, type,
130                            typeSettingsProperties, serviceContext);
131            }
132    
133            public static MDRActionService getService() {
134                    if (_service == null) {
135                            _service = (MDRActionService)PortalBeanLocatorUtil.locate(MDRActionService.class.getName());
136    
137                            ReferenceRegistry.registerReference(MDRActionServiceUtil.class,
138                                    "_service");
139                    }
140    
141                    return _service;
142            }
143    
144            /**
145             * @deprecated As of 6.2.0
146             */
147            public void setService(MDRActionService service) {
148            }
149    
150            private static MDRActionService _service;
151    }