@Controller @RequestMapping(value="/authorities") public class AuthoritiesController extends RestController
| Constructor and Description |
|---|
AuthoritiesController() |
| Modifier and Type | Method and Description |
|---|---|
com.sitewhere.rest.model.user.GrantedAuthority |
createAuthority(com.sitewhere.rest.model.user.request.GrantedAuthorityCreateRequest input)
Create a new authority.
|
List<GrantedAuthorityHierarchyNode> |
getAuthoritiesHierarchy()
Get the hierarchy of granted authorities.
|
com.sitewhere.rest.model.user.GrantedAuthority |
getAuthorityByName(String name)
Get an authority by unique name.
|
com.sitewhere.rest.model.search.SearchResults<com.sitewhere.rest.model.user.GrantedAuthority> |
listAuthorities(int count)
List authorities that match given criteria.
|
getTenant, getTenantAuthToken, handleAccessDenied, handleMissingContent, handleRuntimeException, handleSuccessfulAdd, handleSystemException@RequestMapping(method=POST) @ResponseBody @PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')") public com.sitewhere.rest.model.user.GrantedAuthority createAuthority(@RequestBody com.sitewhere.rest.model.user.request.GrantedAuthorityCreateRequest input) throws com.sitewhere.spi.SiteWhereException
input - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{name}",
method=GET)
@ResponseBody
@Secured(value="ROLE_REST")
public com.sitewhere.rest.model.user.GrantedAuthority getAuthorityByName(@PathVariable
String name)
throws com.sitewhere.spi.SiteWhereException
name - com.sitewhere.spi.SiteWhereException@RequestMapping(method=GET) @ResponseBody @Secured(value="ROLE_REST") public com.sitewhere.rest.model.search.SearchResults<com.sitewhere.rest.model.user.GrantedAuthority> listAuthorities(@RequestParam(defaultValue="100") int count) throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException@RequestMapping(value="/hierarchy",
method=GET)
@ResponseBody
@Secured(value="ROLE_REST")
public List<GrantedAuthorityHierarchyNode> getAuthoritiesHierarchy()
throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereExceptionCopyright © 2016 SiteWhere, LLC.. All rights reserved.