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 BlogTagListItem |
getBlogListItem(javax.ws.rs.core.Request request,
Blog blog)
Get the blog list item
|
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 BlogTagListItem getBlogListItem(javax.ws.rs.core.Request request, Blog blog)
request - the requestblog - the topicpublic static CreationBlogTO getBlogTO(CreateTopicParameter createTopicParameter)
createTopicParameter - CreateTopicParameterBlogTOpublic static BlogTO getBlogTO(EditTopicParameter editTopicParameter, Blog topic) throws BlogAccessException, BlogNotFoundException
editTopicParameter - EditTopicParametertopic - BlogBlogTOBlogNotFoundException - 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 - BlogManagementBlogNotFoundException - topic can not been found by aliasBlogAccessException - in case the current user has no access to the topicCopyright © 2019 Communote team. All rights reserved.