public interface NotificationSettingsServiceLocal extends NotificationSettingsService
| Modifier and Type | Method and Description |
|---|---|
void |
appendAccountSettingsValidations(BasicUser owner,
org.cyclos.impl.utils.validation.Property property)
Appends validations of account settings according to the given owner
|
NotificationTypeSettingsDTO |
getNotificationTypeSettings(Notification notification)
Returns the notifications settings for an already generated notification.
|
AdminNotificationType |
getTypeBasedOnSetting(AdminNotificationType type)
Returns the notification type which the given type is based on.
|
boolean |
isAllowedNotificationType(AdminNotificationType type,
User user,
java.lang.Object option)
It checks if the user has the
Permission.MY_NOTIFICATIONS_ENABLE permission and is allowed to be notified
by the specified type and the
selected option. |
boolean |
isEnabled(UserNotificationType type,
BasicUser user,
SimpleEntity entity)
It returns true if the notification type is enabled by permission and if the user had selected being notified by
that type.
|
boolean |
isPaymentAmountInRange(BasicUser user,
UserAccountType accountType,
java.math.BigDecimal amount)
Returns whether the given amount is included in the payment amount range the given user has set for payments from
/ to the given account type
|
com.mysema.commons.lang.CloseableIterator<BasicUser> |
usersToForwardMessageIterator(IncomingMessage message)
It returns an iterator over all users allowed to forward the corresponding incoming message.
|
getData, savevoid appendAccountSettingsValidations(BasicUser owner, org.cyclos.impl.utils.validation.Property property)
NotificationTypeSettingsDTO getNotificationTypeSettings(Notification notification)
AdminNotificationType getTypeBasedOnSetting(AdminNotificationType type)
AdminNotificationType.USER_IMPORT_REGISTRATION is based on
AdminNotificationType.USER_REGISTRATIONboolean isAllowedNotificationType(AdminNotificationType type, User user, java.lang.Object option)
Permission.MY_NOTIFICATIONS_ENABLE permission and is allowed to be notified
by the specified type and the
selected option. It assumes the user has selected being notified by the specified typeAdminNotificationType.PAYMENT_PERFORMED (option must be a TransferTypeVO)
then this method
will return true if that TT is contained in the available TT list.type - the notification type to be checkeduser - the user to check if he/she is allowed to be notifiedoption - (optional) the selected option to be notified by (chosen by the user). If it's null this method
only checks if there are any
available options.boolean isEnabled(UserNotificationType type, BasicUser user, SimpleEntity entity)
boolean isPaymentAmountInRange(BasicUser user, UserAccountType accountType, java.math.BigDecimal amount)
com.mysema.commons.lang.CloseableIterator<BasicUser> usersToForwardMessageIterator(IncomingMessage message)