public class SetTopicRolesMessageHandler extends CommunoteMessageHandler<SetTopicRolesMessage>
Constructor and Description |
---|
SetTopicRolesMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected BlogRightsSynchronizer |
createBlogRightsSynchronizer(Long topicId,
String externalSystemId) |
Class<SetTopicRolesMessage> |
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(SetTopicRolesMessage message)
handles message of the appropriate type.
|
void |
validateMessage(SetTopicRolesMessage message) |
getHandledMessageType
protected BlogRightsSynchronizer createBlogRightsSynchronizer(Long topicId, String externalSystemId)
topicId
- ID of the topicexternalSystemId
- external system idpublic Class<SetTopicRolesMessage> getHandledMessageClass()
getHandledMessageClass
in class CommunoteMessageHandler<SetTopicRolesMessage>
public String getVersion()
CommunoteMessageHandler
getVersion
in class CommunoteMessageHandler<SetTopicRolesMessage>
public CommunoteReplyMessage handleMessage(SetTopicRolesMessage message) throws BlogNotFoundException, BlogAccessException
CommunoteMessageHandler
handleMessage
in class CommunoteMessageHandler<SetTopicRolesMessage>
message
- the messageBlogNotFoundException
BlogAccessException
public void validateMessage(SetTopicRolesMessage message) throws NoTopicSpecifiedException
message
- to be validatedNoTopicSpecifiedException
- exceptionCopyright © 2019 Communote team. All rights reserved.