@RestController public class VootController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VootController.MalformedGroupUrnException |
static class |
VootController.MalformedPersonUrnException |
static class |
VootController.MalformedUrnException |
| Constructor and Description |
|---|
VootController(ExternalGroupsService externalGroupsService) |
| Modifier and Type | Method and Description |
|---|---|
List<Group> |
allGroups(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
List<Group> |
externalGroups(String userId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
org.springframework.ui.ModelMap |
handleMalformedPersonUrnException(VootController.MalformedUrnException exception) |
List<Group> |
internalGroups(String userId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
Group |
internalSpecificGroup(String userId,
String groupId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
List<Member> |
members(String groupId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
List<Group> |
myGroups(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
Group |
specificGroupMembership(String groupId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
@Autowired public VootController(ExternalGroupsService externalGroupsService)
@RequestMapping(value="/me/groups") public List<Group> myGroups(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
@RequestMapping(value="/me/groups/{groupId:.+}")
public Group specificGroupMembership(@PathVariable
String groupId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
throws VootController.MalformedGroupUrnException
@RequestMapping(value="/internal/groups/{userId:.+}/{groupId:.+}")
public Group internalSpecificGroup(@PathVariable
String userId,
@PathVariable
String groupId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
throws VootController.MalformedGroupUrnException
@RequestMapping(value="/internal/groups/{userId:.+}")
public List<Group> internalGroups(@PathVariable
String userId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
throws VootController.MalformedPersonUrnException
@RequestMapping(value="/internal/external-groups/{userId:.+}")
public List<Group> externalGroups(@PathVariable
String userId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
throws VootController.MalformedPersonUrnException
@RequestMapping(value="/internal/all-groups") public List<Group> allGroups(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) throws VootController.MalformedPersonUrnException
@RequestMapping(value="/members/{groupId:.+}")
public List<Member> members(@PathVariable
String groupId,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
throws VootController.MalformedPersonUrnException
@ExceptionHandler(value=VootController.MalformedUrnException.class) @ResponseStatus(value=BAD_REQUEST) public org.springframework.ui.ModelMap handleMalformedPersonUrnException(VootController.MalformedUrnException exception)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.