public class DeleteTopicMessageHandler extends CommunoteMessageHandler<DeleteTopicMessage>
| Constructor and Description |
|---|
DeleteTopicMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
Class<DeleteTopicMessage> |
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(DeleteTopicMessage message)
handles message of the appropriate type.
|
boolean |
isTopicIdentifierAvailble(BaseTopic topic)
checks whether any of topic identification means are provided
|
void |
validateMessage(DeleteTopicMessage message) |
getHandledMessageTypepublic Class<DeleteTopicMessage> getHandledMessageClass()
CommunoteMessageHandlergetHandledMessageClass in class CommunoteMessageHandler<DeleteTopicMessage>public String getVersion()
CommunoteMessageHandlergetVersion in class CommunoteMessageHandler<DeleteTopicMessage>public CommunoteReplyMessage handleMessage(DeleteTopicMessage message) throws NoteManagementAuthorizationException, BlogNotFoundException, BlogAccessException
handleMessage in class CommunoteMessageHandler<DeleteTopicMessage>message - the messageNoteManagementAuthorizationExceptionBlogNotFoundExceptionBlogAccessExceptionpublic boolean isTopicIdentifierAvailble(BaseTopic topic)
topic - to be chckedpublic void validateMessage(DeleteTopicMessage message) throws NoTopicSpecifiedException, NoTopicIdentifierSpecifiedException
message - message to be validatedNoTopicSpecifiedException - exceptionNoTopicIdentifierSpecifiedException - exceptionCopyright © 2019 Communote team. All rights reserved.