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