Class DestinationWhiteListComponent
java.lang.Object
es.kukenan.smartfi.microservice.communication.service.DestinationWhiteListComponent
Whitelist filter component for any destination.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanEnabled flag.private WhiteListDestinationRepositoryWhiteListDestinationrepository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(NotificationRequest request) Filter the given request to remove if destination is not in the white list.private NotificationRequestfilter0(NotificationRequest request) Filter the given destination.
-
Field Details
-
enabled
@Value("${notifications.whitelist.mail.enable}") private boolean enabledEnabled flag. If disabled, no whitelist filtered will be performed. -
whiteListDestinationRepository
WhiteListDestinationrepository.
-
-
Constructor Details
-
DestinationWhiteListComponent
public DestinationWhiteListComponent()
-
-
Method Details
-
filter
Filter the given request to remove if destination is not in the white list.- Parameters:
request- notification request. If this feature is enabled, any request which destination is not present in the white list will be removed.- Returns:
- The request if not in the white list. If this feature is disables, the same object received is returned unaltered.
-
filter0
Filter the given destination.- Parameters:
request- the message addresses to filter.- Returns:
- the filtered message addresses,
-