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.security.access.control.AccessControlled;
024 import com.liferay.portal.kernel.transaction.Isolation;
025 import com.liferay.portal.kernel.transaction.Propagation;
026 import com.liferay.portal.kernel.transaction.Transactional;
027 import com.liferay.portal.service.BaseService;
028
029
040 @AccessControlled
041 @JSONWebService
042 @ProviderType
043 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
044 PortalException.class, SystemException.class})
045 public interface MDRRuleService extends BaseService {
046
051 @JSONWebService(mode = JSONWebServiceMode.IGNORE)
052 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
053 long ruleGroupId,
054 java.util.Map<java.util.Locale, java.lang.String> nameMap,
055 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
056 java.lang.String type,
057 com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
058 com.liferay.portal.service.ServiceContext serviceContext)
059 throws PortalException;
060
061 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
062 long ruleGroupId,
063 java.util.Map<java.util.Locale, java.lang.String> nameMap,
064 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
065 java.lang.String type, java.lang.String typeSettings,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws PortalException;
068
069 public void deleteRule(long ruleId) throws PortalException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
073 long ruleId) throws PortalException;
074
075
080 public java.lang.String getBeanIdentifier();
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
084 long ruleId) throws PortalException;
085
086
091 public void setBeanIdentifier(java.lang.String beanIdentifier);
092
093 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
094 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
095 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
096 java.lang.String type, java.lang.String typeSettings,
097 com.liferay.portal.service.ServiceContext serviceContext)
098 throws PortalException;
099
100 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
101 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
102 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
103 java.lang.String type,
104 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
105 com.liferay.portal.service.ServiceContext serviceContext)
106 throws PortalException;
107 }