@Controller @RequestMapping(value="/api/3/comments") public class AbstractCommentsController<T extends SocialUgc> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected NotificationService |
notificationService |
protected SocialServices |
socialServices |
protected UGCService |
ugcService |
| Constructor and Description |
|---|
AbstractCommentsController() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
context()
Gets current context.
|
protected String |
getContentType(String filename)
Gets the content type of the file based on the file extension.
|
protected org.craftercms.profile.api.Profile |
getCurrentProfile()
Gets Current User profile.
|
protected Map<String,Object> |
parseAttributes(String attributes)
Parse the json String to a map.
|
protected String |
userId()
Current user id.
|
@Autowired protected SocialServices socialServices
@Autowired protected NotificationService notificationService
@Autowired protected UGCService ugcService
protected Map<String,Object> parseAttributes(String attributes) throws org.springframework.web.bind.MissingServletRequestParameterException
attributes - Json String to parse.org.springframework.web.bind.MissingServletRequestParameterException - If String can't be parsed.protected String context()
protected String userId()
protected org.craftercms.profile.api.Profile getCurrentProfile()
Copyright © 2019 CrafterCMS. All Rights Reserved.