001
014
015 package com.liferay.portlet.social.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface SocialActivitySettingService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public com.liferay.portlet.social.model.SocialActivityDefinition getActivityDefinition(
064 long groupId, java.lang.String className, int activityType)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException;
067
068 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069 public java.util.List<com.liferay.portlet.social.model.SocialActivityDefinition> getActivityDefinitions(
070 long groupId, java.lang.String className)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public com.liferay.portal.kernel.json.JSONArray getJSONActivityDefinitions(
076 long groupId, java.lang.String className)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 public void updateActivitySetting(long groupId, java.lang.String className,
081 boolean enabled)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 public void updateActivitySetting(long groupId, java.lang.String className,
086 int activityType,
087 com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 public void updateActivitySettings(long groupId,
092 java.lang.String className, int activityType,
093 java.util.List<com.liferay.portlet.social.model.SocialActivityCounterDefinition> activityCounterDefinitions)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096 }