001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
030     * Provides the remote service interface for MDRRule. Methods of this
031     * service are expected to have security checks based on the propagated JAAS
032     * credentials because this service can be accessed remotely.
033     *
034     * @author Edward C. Han
035     * @see MDRRuleServiceUtil
036     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleServiceBaseImpl
037     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl
038     * @generated
039     */
040    @AccessControlled
041    @JSONWebService
042    @ProviderType
043    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
044            PortalException.class, SystemException.class})
045    public interface MDRRuleService extends BaseService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link MDRRuleServiceUtil} to access the m d r rule remote service. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
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            /**
076            * Returns the Spring bean ID for this bean.
077            *
078            * @return the Spring bean ID for this bean
079            */
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            /**
087            * Sets the Spring bean ID for this bean.
088            *
089            * @param beanIdentifier the Spring bean ID for this bean
090            */
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    }