001
014
015 package com.liferay.portlet.mobiledevicerules.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.jsonwebservice.JSONWebServiceMode;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.security.ac.AccessControlled;
027 import com.liferay.portal.service.BaseService;
028
029
040 @ProviderType
041 @AccessControlled
042 @JSONWebService
043 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
044 PortalException.class, SystemException.class})
045 public interface MDRRuleService extends BaseService {
046
051
052
057 public java.lang.String getBeanIdentifier();
058
059
064 public void setBeanIdentifier(java.lang.String beanIdentifier);
065
066 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
067 long ruleGroupId,
068 java.util.Map<java.util.Locale, java.lang.String> nameMap,
069 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
070 java.lang.String type, java.lang.String typeSettings,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 @com.liferay.portal.kernel.jsonwebservice.JSONWebService(mode = JSONWebServiceMode.IGNORE)
076 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
077 long ruleGroupId,
078 java.util.Map<java.util.Locale, java.lang.String> nameMap,
079 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
080 java.lang.String type,
081 com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 public void deleteRule(long ruleId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
092 long ruleId)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
098 long ruleId)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
103 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
104 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
105 java.lang.String type, java.lang.String typeSettings,
106 com.liferay.portal.service.ServiceContext serviceContext)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
111 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
112 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
113 java.lang.String type,
114 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
115 com.liferay.portal.service.ServiceContext serviceContext)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118 }