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
092 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
093 getService().setBeanIdentifier(beanIdentifier);
094 }
095
096 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
097 long ruleGroupId,
098 java.util.Map<java.util.Locale, java.lang.String> nameMap,
099 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
100 com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 return getService()
103 .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
104 serviceContext);
105 }
106
107 public static MDRRuleGroupService getService() {
108 if (_service == null) {
109 _service = (MDRRuleGroupService)PortalBeanLocatorUtil.locate(MDRRuleGroupService.class.getName());
110
111 ReferenceRegistry.registerReference(MDRRuleGroupServiceUtil.class,
112 "_service");
113 }
114
115 return _service;
116 }
117
118
121 @Deprecated
122 public void setService(MDRRuleGroupService service) {
123 }
124
125 private static MDRRuleGroupService _service;
126 }