public class AssignedBlogRoleRetriever extends Object implements EventListener<AssignedBlogRoleChangedEvent>
| Constructor and Description |
|---|
AssignedBlogRoleRetriever(UserToBlogRoleMappingDao roleMappingDao)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BlogRole |
getAssignedRole(Long blogId,
Long userId)
Returns the effective blog role of the given user which was directly assigned to the user or
assigned to a group the user is a member of.
|
Class<AssignedBlogRoleChangedEvent> |
getObservedEvent()
Defines the types of events about which this listener will be informed.
|
void |
handle(AssignedBlogRoleChangedEvent event)
Is called by the
EventDispatcher when the observed event was fired. |
public AssignedBlogRoleRetriever(UserToBlogRoleMappingDao roleMappingDao)
roleMappingDao - the DAOpublic BlogRole getAssignedRole(Long blogId, Long userId)
blogId - the ID of the bloguserId - the ID of the userpublic Class<AssignedBlogRoleChangedEvent> getObservedEvent()
getObservedEvent in interface EventListener<AssignedBlogRoleChangedEvent>public void handle(AssignedBlogRoleChangedEvent event)
EventDispatcher when the observed event was fired.handle in interface EventListener<AssignedBlogRoleChangedEvent>event - the event that was firedCopyright © 2019 Communote team. All rights reserved.