001    /**
002     * Copyright (c) 2000-2013 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.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    /**
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    @ProviderType
041    @AccessControlled
042    @JSONWebService
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    
052            /**
053            * Returns the Spring bean ID for this bean.
054            *
055            * @return the Spring bean ID for this bean
056            */
057            public java.lang.String getBeanIdentifier();
058    
059            /**
060            * Sets the Spring bean ID for this bean.
061            *
062            * @param beanIdentifier the Spring bean ID for this bean
063            */
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    }