public class UpdateTopicRolesMessageHandler extends CommunoteMessageHandler<UpdateTopicRolesMessage>
Constructor and Description |
---|
UpdateTopicRolesMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected BlogRightsSynchronizer |
createBlogRightsSynchronizer(Long topicId,
String externalSystemId)
Create a synchronizer for external topic roles
|
Class<UpdateTopicRolesMessage> |
getHandledMessageClass()
Class of the messages to be handled by this handler.
|
String |
getVersion()
Handler version is used to distinguish between different formats of the semantically same
message type.
|
CommunoteReplyMessage |
handleMessage(UpdateTopicRolesMessage message)
handles message of the appropriate type.
|
void |
validateMessage(UpdateTopicRolesMessage message) |
getHandledMessageType
protected BlogRightsSynchronizer createBlogRightsSynchronizer(Long topicId, String externalSystemId)
topicId
- the ID of the topicexternalSystemId
- the ID of the external systempublic Class<UpdateTopicRolesMessage> getHandledMessageClass()
CommunoteMessageHandler
getHandledMessageClass
in class CommunoteMessageHandler<UpdateTopicRolesMessage>
public String getVersion()
CommunoteMessageHandler
getVersion
in class CommunoteMessageHandler<UpdateTopicRolesMessage>
public CommunoteReplyMessage handleMessage(UpdateTopicRolesMessage message) throws BlogNotFoundException, BlogAccessException
CommunoteMessageHandler
handleMessage
in class CommunoteMessageHandler<UpdateTopicRolesMessage>
message
- the messageBlogNotFoundException
BlogAccessException
public void validateMessage(UpdateTopicRolesMessage message) throws NoTopicSpecifiedException
message
- to be validatedNoTopicSpecifiedException
- exceptionCopyright © 2019 Communote team. All rights reserved.