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 MDRRuleGroupInstance. This utility wraps
022     * {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceServiceImpl} 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 MDRRuleGroupInstanceService
030     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleGroupInstanceServiceBaseImpl
031     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceServiceImpl
032     * @generated
033     */
034    public class MDRRuleGroupInstanceServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceServiceImpl} 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.MDRRuleGroupInstance addRuleGroupInstance(
060                    long groupId, java.lang.String className, long classPK,
061                    long ruleGroupId, int priority,
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                                       .addRuleGroupInstance(groupId, className, classPK,
067                            ruleGroupId, priority, serviceContext);
068            }
069    
070            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
071                    long groupId, java.lang.String className, long classPK,
072                    long ruleGroupId,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .addRuleGroupInstance(groupId, className, classPK,
078                            ruleGroupId, serviceContext);
079            }
080    
081            public static void deleteRuleGroupInstance(long ruleGroupInstanceId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService().deleteRuleGroupInstance(ruleGroupInstanceId);
085            }
086    
087            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
088                    java.lang.String className, long classPK, int start, int end,
089                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return getService()
092                                       .getRuleGroupInstances(className, classPK, start, end,
093                            orderByComparator);
094            }
095    
096            public static int getRuleGroupInstancesCount(java.lang.String className,
097                    long classPK)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return getService().getRuleGroupInstancesCount(className, classPK);
100            }
101    
102            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
103                    long ruleGroupInstanceId, int priority)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return getService()
107                                       .updateRuleGroupInstance(ruleGroupInstanceId, priority);
108            }
109    
110            public static MDRRuleGroupInstanceService getService() {
111                    if (_service == null) {
112                            _service = (MDRRuleGroupInstanceService)PortalBeanLocatorUtil.locate(MDRRuleGroupInstanceService.class.getName());
113    
114                            ReferenceRegistry.registerReference(MDRRuleGroupInstanceServiceUtil.class,
115                                    "_service");
116                    }
117    
118                    return _service;
119            }
120    
121            /**
122             * @deprecated As of 6.2.0
123             */
124            public void setService(MDRRuleGroupInstanceService service) {
125            }
126    
127            private static MDRRuleGroupInstanceService _service;
128    }