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