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 group remote service. This utility wraps {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl} 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 MDRRuleGroupService
029     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleGroupServiceBaseImpl
030     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl
031     * @generated
032     */
033    public class MDRRuleGroupServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl} 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.MDRRuleGroup addRuleGroup(
059                    long groupId,
060                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return getService()
066                                       .addRuleGroup(groupId, nameMap, descriptionMap,
067                            serviceContext);
068            }
069    
070            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
071                    long ruleGroupId, long groupId,
072                    com.liferay.portal.service.ServiceContext serviceContext)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return getService().copyRuleGroup(ruleGroupId, groupId, serviceContext);
076            }
077    
078            public static void deleteRuleGroup(long ruleGroupId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    getService().deleteRuleGroup(ruleGroupId);
082            }
083    
084            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
085                    long ruleGroupId)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return getService().fetchRuleGroup(ruleGroupId);
089            }
090    
091            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
092                    long ruleGroupId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return getService().getRuleGroup(ruleGroupId);
096            }
097    
098            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
099                    long ruleGroupId,
100                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
101                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
102                    com.liferay.portal.service.ServiceContext serviceContext)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException {
105                    return getService()
106                                       .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
107                            serviceContext);
108            }
109    
110            public static MDRRuleGroupService getService() {
111                    if (_service == null) {
112                            _service = (MDRRuleGroupService)PortalBeanLocatorUtil.locate(MDRRuleGroupService.class.getName());
113    
114                            ReferenceRegistry.registerReference(MDRRuleGroupServiceUtil.class,
115                                    "_service");
116                    }
117    
118                    return _service;
119            }
120    
121            /**
122             * @deprecated
123             */
124            public void setService(MDRRuleGroupService service) {
125            }
126    
127            private static MDRRuleGroupService _service;
128    }