public final class TopicResourceHelper extends Object
TopicResourceHandler
Modifier and Type | Method and Description |
---|---|
static BlogQueryParameters |
configureQueryInstance(GetCollectionTopicParameter topicCollectionParameter,
QueryParametersParameterNameProvider nameProvider)
Get query instance to filter notes
|
static CreationBlogTO |
getBlogTO(CreateTopicParameter createTopicParameter)
Get transfer object of topic
|
static BlogTO |
getBlogTO(EditTopicParameter editTopicParameter,
Blog topic)
Get transfer object of topic
|
static long |
getTopicIdByIdentifier(String eTopicIdentifierName,
String topicId,
BlogManagement blogManagement)
Get the topic identifier of alias or id
|
public static BlogQueryParameters configureQueryInstance(GetCollectionTopicParameter topicCollectionParameter, QueryParametersParameterNameProvider nameProvider) throws IllegalRequestParameterException
topicCollectionParameter
- Extract context parameter needed for filternameProvider
- The name provider.IllegalRequestParameterException
- request parameter exceptionpublic static CreationBlogTO getBlogTO(CreateTopicParameter createTopicParameter)
createTopicParameter
- CreateTopicParameter
BlogTO
public static BlogTO getBlogTO(EditTopicParameter editTopicParameter, Blog topic) throws BlogAccessException, BlogNotFoundException
editTopicParameter
- EditTopicParameter
topic
- Blog
BlogTO
BlogNotFoundException
- can not found topicBlogAccessException
- can not access blogpublic static long getTopicIdByIdentifier(String eTopicIdentifierName, String topicId, BlogManagement blogManagement) throws BlogNotFoundException, BlogAccessException
eTopicIdentifierName
- enumeration of identifier possibilitiestopicId
- identifier alias or topicIdblogManagement
- BlogManagement
BlogNotFoundException
- topic can not been found by aliasBlogAccessException
- in case the current user has no access to the topicCopyright © 2019 Communote team. All rights reserved.