Package madkit.message
Class SenderRoleFilter
java.lang.Object
madkit.message.SenderRoleFilter
- All Implemented Interfaces:
MessageFilter
A filter that accepts message based on the sender's role.
- Since:
- MaDKit 5.0.4
- Version:
- 0.9
- Author:
- Fabien Michel
-
Constructor Summary
ConstructorDescriptionSenderRoleFilter
(String community, String group, String role) a new filter that acts according to the sender's CGR location. -
Method Summary
-
Constructor Details
-
SenderRoleFilter
a new filter that acts according to the sender's CGR location.- Parameters:
community
-group
-role
- the role that the sender must have
-
-
Method Details
-
accept
Description copied from interface:MessageFilter
Tests if a specified message matches the requirement.- Specified by:
accept
in interfaceMessageFilter
- Parameters:
m
- the message to test.- Returns:
true
if and only if the message matches the requirement.
-