001
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
033 public class MDRRuleGroupServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
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
124 public void setService(MDRRuleGroupService service) {
125 }
126
127 private static MDRRuleGroupService _service;
128 }