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.social.kernel.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.service.BaseService;
025    import com.liferay.portal.kernel.transaction.Isolation;
026    import com.liferay.portal.kernel.transaction.Propagation;
027    import com.liferay.portal.kernel.transaction.Transactional;
028    
029    import com.liferay.social.kernel.model.SocialActivityCounterDefinition;
030    import com.liferay.social.kernel.model.SocialActivityDefinition;
031    import com.liferay.social.kernel.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 JSONArray getJSONActivityDefinitions(long groupId,
059                    java.lang.String className) throws PortalException;
060    
061            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062            public SocialActivityDefinition getActivityDefinition(long groupId,
063                    java.lang.String className, int activityType) throws PortalException;
064    
065            /**
066            * Returns the OSGi service identifier.
067            *
068            * @return the OSGi service identifier
069            */
070            public java.lang.String getOSGiServiceIdentifier();
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public List<SocialActivityDefinition> getActivityDefinitions(long groupId,
074                    java.lang.String className) throws PortalException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public List<SocialActivitySetting> getActivitySettings(long groupId)
078                    throws PortalException;
079    
080            public void updateActivitySetting(long groupId, java.lang.String className,
081                    boolean enabled) throws PortalException;
082    
083            public void updateActivitySetting(long groupId, java.lang.String className,
084                    int activityType,
085                    SocialActivityCounterDefinition activityCounterDefinition)
086                    throws PortalException;
087    
088            public void updateActivitySettings(long groupId,
089                    java.lang.String className, int activityType,
090                    List<SocialActivityCounterDefinition> activityCounterDefinitions)
091                    throws PortalException;
092    }