Generated by
JDiff

org.cyclos.impl.messaging Documentation Differences

This file contains all the changes in documentation in the package org.cyclos.impl.messaging as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class MessageServiceLocal, boolean canViewMessages()

Returns true if the the logged user can view his messages. In case of an admin, the method returns true if he cancan view the system messages.

Class NotificationSettingsServiceLocal, AdminNotificationType getTypeBasedOnSetting(AdminNotificationType)

Returns the notification type which the given type is based on.
This method must be used when the given type does not have a corresponding setting, but uses settings from another type.
E.g: AdminNotificationType.USER_IMPORT_REGISTRATION is based onon AdminNotificationType.USER_REGISTRATION
Class NotificationSettingsServiceLocal, boolean isAllowedNotificationType(AdminNotificationType, User, Object)

It checks if the user has the Permission.MY_NOTIFICATIONS_ENABLE permission and is allowed to be notifiednotified by the specified type and the selected option. It assumes the user has selected being notified by the specified type
For example: if type is AdminNotificationType.PAYMENT_PERFORMED (option must be a TransferTypeVO) then this method will return true if that TT is contained in the available TT list. @param type the notification type to be checked @param user the user to check if he/she is allowed to be notified @param option (optional) the selected option to be notified by (chosen by the user). If it's null this methodmethod only checks if there are any available options. @return true if the user can be notified.
Class NotificationSettingsServiceLocal, boolean isEnabled(UserNotificationType, User)

It returns true if the notification type is enabled by permission and if the user had selected being notified byby that type