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.social.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for SocialActivitySetting. This utility wraps
022     * {@link com.liferay.portlet.social.service.impl.SocialActivitySettingServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see SocialActivitySettingService
030     * @see com.liferay.portlet.social.service.base.SocialActivitySettingServiceBaseImpl
031     * @see com.liferay.portlet.social.service.impl.SocialActivitySettingServiceImpl
032     * @generated
033     */
034    public class SocialActivitySettingServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.social.service.impl.SocialActivitySettingServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.social.model.SocialActivityDefinition getActivityDefinition(
060                    long groupId, java.lang.String className, int activityType)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return getService()
064                                       .getActivityDefinition(groupId, className, activityType);
065            }
066    
067            public static java.util.List<com.liferay.portlet.social.model.SocialActivityDefinition> getActivityDefinitions(
068                    long groupId, java.lang.String className)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return getService().getActivityDefinitions(groupId, className);
072            }
073    
074            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> getActivitySettings(
075                    long groupId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return getService().getActivitySettings(groupId);
079            }
080    
081            public static com.liferay.portal.kernel.json.JSONArray getJSONActivityDefinitions(
082                    long groupId, java.lang.String className)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getJSONActivityDefinitions(groupId, className);
086            }
087    
088            public static void updateActivitySetting(long groupId,
089                    java.lang.String className, boolean enabled)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    getService().updateActivitySetting(groupId, className, enabled);
093            }
094    
095            public static void updateActivitySetting(long groupId,
096                    java.lang.String className, int activityType,
097                    com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    getService()
101                            .updateActivitySetting(groupId, className, activityType,
102                            activityCounterDefinition);
103            }
104    
105            public static void updateActivitySettings(long groupId,
106                    java.lang.String className, int activityType,
107                    java.util.List<com.liferay.portlet.social.model.SocialActivityCounterDefinition> activityCounterDefinitions)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    getService()
111                            .updateActivitySettings(groupId, className, activityType,
112                            activityCounterDefinitions);
113            }
114    
115            public static SocialActivitySettingService getService() {
116                    if (_service == null) {
117                            _service = (SocialActivitySettingService)PortalBeanLocatorUtil.locate(SocialActivitySettingService.class.getName());
118    
119                            ReferenceRegistry.registerReference(SocialActivitySettingServiceUtil.class,
120                                    "_service");
121                    }
122    
123                    return _service;
124            }
125    
126            /**
127             * @deprecated As of 6.2.0
128             */
129            public void setService(SocialActivitySettingService service) {
130            }
131    
132            private static SocialActivitySettingService _service;
133    }