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.social.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.json.JSONArray;
022    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
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    import com.liferay.portlet.social.model.SocialActivityCounterDefinition;
030    import com.liferay.portlet.social.model.SocialActivityDefinition;
031    import com.liferay.portlet.social.model.SocialActivitySetting;
032    
033    import java.util.List;
034    
035    /**
036     * Provides the remote service interface for SocialActivitySetting. Methods of this
037     * service are expected to have security checks based on the propagated JAAS
038     * credentials because this service can be accessed remotely.
039     *
040     * @author Brian Wing Shun Chan
041     * @see SocialActivitySettingServiceUtil
042     * @see com.liferay.portlet.social.service.base.SocialActivitySettingServiceBaseImpl
043     * @see com.liferay.portlet.social.service.impl.SocialActivitySettingServiceImpl
044     * @generated
045     */
046    @AccessControlled
047    @JSONWebService
048    @ProviderType
049    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
050            PortalException.class, SystemException.class})
051    public interface SocialActivitySettingService extends BaseService {
052            /*
053             * NOTE FOR DEVELOPERS:
054             *
055             * Never modify or reference this interface directly. Always use {@link SocialActivitySettingServiceUtil} to access the social activity setting remote service. Add custom service methods to {@link com.liferay.portlet.social.service.impl.SocialActivitySettingServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
056             */
057            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058            public SocialActivityDefinition getActivityDefinition(long groupId,
059                    java.lang.String className, int activityType) throws PortalException;
060    
061            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062            public List<SocialActivityDefinition> getActivityDefinitions(long groupId,
063                    java.lang.String className) throws PortalException;
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public List<SocialActivitySetting> getActivitySettings(long groupId)
067                    throws PortalException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public JSONArray getJSONActivityDefinitions(long groupId,
071                    java.lang.String className) throws PortalException;
072    
073            /**
074            * Returns the OSGi service identifier.
075            *
076            * @return the OSGi service identifier
077            */
078            public java.lang.String getOSGiServiceIdentifier();
079    
080            public void updateActivitySetting(long groupId, java.lang.String className,
081                    int activityType,
082                    SocialActivityCounterDefinition activityCounterDefinition)
083                    throws PortalException;
084    
085            public void updateActivitySetting(long groupId, java.lang.String className,
086                    boolean enabled) throws PortalException;
087    
088            public void updateActivitySettings(long groupId,
089                    java.lang.String className, int activityType,
090                    List<SocialActivityCounterDefinition> activityCounterDefinitions)
091                    throws PortalException;
092    }