Package org.cyclos.security.messaging
Class NotificationSettingsServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.messaging.NotificationSettingsServiceSecurity
-
- All Implemented Interfaces:
NotificationSettingsService,Service
@Security public class NotificationSettingsServiceSecurity extends BaseServiceSecurity implements NotificationSettingsService
Security forNotificationSettingsService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description NotificationSettingsServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemailUnsubscribe(String key)Unsubscribes from emails with a key that was sent by emailNotificationSettingsDatagetData(UserLocatorVO locator)Returns the notification preferences for the given user / admin.EmailUnsubscribeDatagetEmailUnsubscribeData(String key)Returns data for unsubscribing from emails with a key that was sent by emailprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidsave(@NotNull NotificationSettingsDTO dto)Saves the notification settings for a given user / admin-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
emailUnsubscribe
public void emailUnsubscribe(String key) throws FrameworkException
Description copied from interface:NotificationSettingsServiceUnsubscribes from emails with a key that was sent by email- Specified by:
emailUnsubscribein interfaceNotificationSettingsService- Throws:
FrameworkException
-
getData
public NotificationSettingsData getData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:NotificationSettingsServiceReturns the notification preferences for the given user / admin. When null, returns the logged user's settings.- Specified by:
getDatain interfaceNotificationSettingsService- Throws:
FrameworkException
-
getEmailUnsubscribeData
public EmailUnsubscribeData getEmailUnsubscribeData(String key) throws FrameworkException
Description copied from interface:NotificationSettingsServiceReturns data for unsubscribing from emails with a key that was sent by email- Specified by:
getEmailUnsubscribeDatain interfaceNotificationSettingsService- Throws:
FrameworkException
-
save
public void save(@NotNull @NotNull NotificationSettingsDTO dto) throws FrameworkExceptionDescription copied from interface:NotificationSettingsServiceSaves the notification settings for a given user / admin- Specified by:
savein interfaceNotificationSettingsService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-