001
014
015 package com.liferay.portlet.mobiledevicerules.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class MDRRuleGroupServiceUtil {
038
043 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addRuleGroup(
044 long groupId,
045 java.util.Map<java.util.Locale, java.lang.String> nameMap,
046 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047 com.liferay.portal.service.ServiceContext serviceContext)
048 throws com.liferay.portal.kernel.exception.PortalException {
049 return getService()
050 .addRuleGroup(groupId, nameMap, descriptionMap,
051 serviceContext);
052 }
053
054 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
055 long ruleGroupId, long groupId,
056 com.liferay.portal.service.ServiceContext serviceContext)
057 throws com.liferay.portal.kernel.exception.PortalException {
058 return getService().copyRuleGroup(ruleGroupId, groupId, serviceContext);
059 }
060
061 public static void deleteRuleGroup(long ruleGroupId)
062 throws com.liferay.portal.kernel.exception.PortalException {
063 getService().deleteRuleGroup(ruleGroupId);
064 }
065
066 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
067 long ruleGroupId)
068 throws com.liferay.portal.kernel.exception.PortalException {
069 return getService().fetchRuleGroup(ruleGroupId);
070 }
071
072
077 public static java.lang.String getBeanIdentifier() {
078 return getService().getBeanIdentifier();
079 }
080
081 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
082 long ruleGroupId)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 return getService().getRuleGroup(ruleGroupId);
085 }
086
087 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
088 long[] groupIds, int start, int end) {
089 return getService().getRuleGroups(groupIds, start, end);
090 }
091
092 public static int getRuleGroupsCount(long[] groupIds) {
093 return getService().getRuleGroupsCount(groupIds);
094 }
095
096
101 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
102 getService().setBeanIdentifier(beanIdentifier);
103 }
104
105 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
106 long ruleGroupId,
107 java.util.Map<java.util.Locale, java.lang.String> nameMap,
108 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws com.liferay.portal.kernel.exception.PortalException {
111 return getService()
112 .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
113 serviceContext);
114 }
115
116 public static MDRRuleGroupService getService() {
117 if (_service == null) {
118 _service = (MDRRuleGroupService)PortalBeanLocatorUtil.locate(MDRRuleGroupService.class.getName());
119
120 ReferenceRegistry.registerReference(MDRRuleGroupServiceUtil.class,
121 "_service");
122 }
123
124 return _service;
125 }
126
127
130 @Deprecated
131 public void setService(MDRRuleGroupService service) {
132 }
133
134 private static MDRRuleGroupService _service;
135 }