@RequestMapping(value="/api/3/system/context") @Controller public class SocialContextController extends Object
| Constructor and Description |
|---|
SocialContextController() |
| Modifier and Type | Method and Description |
|---|---|
org.craftercms.profile.api.Profile |
addProfileToContext(String contextId,
String profileId,
String roles) |
SocialContext |
create(String contextName) |
Iterable<SocialContext> |
getAllContexts() |
org.craftercms.profile.api.Profile |
removeProfileFromContext(String contextId,
String profileId) |
@RequestMapping(value="/all",
method=GET)
@ResponseBody
public Iterable<SocialContext> getAllContexts()
throws SocialException
SocialException@RequestMapping(method=POST) @ResponseBody public SocialContext create(@RequestParam String contextName) throws SocialException
SocialException@RequestMapping(value="/{id}/{profileId}",
method=POST)
@ResponseBody
public org.craftercms.profile.api.Profile addProfileToContext(@PathVariable(value="id")
String contextId,
@PathVariable(value="profileId")
String profileId,
@RequestParam
String roles)
throws SocialException
SocialException@RequestMapping(value="/{id}/{profileId}",
method=DELETE)
@ResponseBody
public org.craftercms.profile.api.Profile removeProfileFromContext(@PathVariable(value="id")
String contextId,
@PathVariable(value="profileId")
String profileId)
throws SocialException
SocialExceptionCopyright © 2014 CrafterCMS. All Rights Reserved.