@Controller
@RequestMapping(value="collection")
public class CollectionController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected ConfigDataComponent |
configDataComponent |
private CmsContentService |
contentService |
protected org.apache.commons.logging.Log |
log |
private CmsUserCollectionService |
service |
构造器和说明 |
---|
CollectionController() |
protected final org.apache.commons.logging.Log log
protected ConfigDataComponent configDataComponent
private CmsUserCollectionService service
private CmsContentService contentService
@RequestMapping(value="collect") @ResponseBody public boolean collect(@RequestAttribute SysSite site, @SessionAttribute SysUser user, long contentId)
site
- user
- contentId
- @RequestMapping(value="uncollect") @ResponseBody public boolean uncollect(@RequestAttribute SysSite site, @SessionAttribute SysUser user, long contentId)
site
- user
- contentId
- private boolean collection(SysSite site, long userId, long contentId, boolean collection)