Class NotificationSettingsRestService
java.lang.Object
io.meeds.social.notification.rest.NotificationSettingsRestService
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class NotificationSettingsRestService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNotificationSettingsRestService(org.exoplatform.services.resources.ResourceBundleService resourceBundleService, org.exoplatform.commons.api.notification.service.setting.PluginSettingService pluginSettingService, org.exoplatform.commons.api.notification.channel.ChannelManager channelManager, org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService, org.exoplatform.portal.config.UserACL userACL) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetSettings(String username) javax.ws.rs.core.ResponsesaveActiveStatus(String username, String channelId, boolean enable) javax.ws.rs.core.ResponsesaveChannelDefaultValue(String channelId, boolean enable) javax.ws.rs.core.ResponsesaveChannelStatus(String channelId, boolean enable) javax.ws.rs.core.ResponsesaveEmailSender(String name, String email) javax.ws.rs.core.ResponsesavePluginSetting(String pluginId, String channels) javax.ws.rs.core.ResponsesavePluginSetting(String username, String pluginId, String channels, String digest) javax.ws.rs.core.ResponsesaveSpaceMuteStatus(String username, long spaceId, boolean enable)
-
Constructor Details
-
NotificationSettingsRestService
public NotificationSettingsRestService(org.exoplatform.services.resources.ResourceBundleService resourceBundleService, org.exoplatform.commons.api.notification.service.setting.PluginSettingService pluginSettingService, org.exoplatform.commons.api.notification.channel.ChannelManager channelManager, org.exoplatform.commons.api.notification.service.setting.UserSettingService userSettingService, org.exoplatform.portal.config.UserACL userACL)
-
-
Method Details
-
getSettings
@RolesAllowed("administrators") public javax.ws.rs.core.Response getSettings() -
saveEmailSender
-
getSettings
-
savePluginSetting
-
savePluginSetting
-
saveChannelStatus
@RolesAllowed("administrators") public javax.ws.rs.core.Response saveChannelStatus(String channelId, boolean enable) -
saveChannelDefaultValue
@RolesAllowed("administrators") public javax.ws.rs.core.Response saveChannelDefaultValue(String channelId, boolean enable) -
saveSpaceMuteStatus
@RolesAllowed("users") public javax.ws.rs.core.Response saveSpaceMuteStatus(String username, long spaceId, boolean enable) -
saveActiveStatus
-