Class SenderRoleFilter
java.lang.Object
madkit.messages.SenderRoleFilter
- All Implemented Interfaces:
MessageFilter
A filter that accepts message based on the sender's role.
- Since:
- MaDKit 5.0.4
-
Constructor Summary
ConstructorsConstructorDescriptionSenderRoleFilter
(String community, String group, String role) a new filter that acts according to the sender's CGR location. -
Method Summary
-
Constructor Details
-
SenderRoleFilter
-
-
Method Details
-
accept
Tests whether or not the specified message should be accepted. The message is accepted if the sender's community, group, and role match the specified values.- Specified by:
accept
in interfaceMessageFilter
- Parameters:
m
- the message to be tested- Returns:
- true if the message is accepted, false otherwise
-