@Controller @RequestMapping(value="/users") public class UsersController extends RestController
| Constructor and Description |
|---|
UsersController() |
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.User createUser(@RequestBody com.sitewhere.rest.model.user.request.UserCreateRequest input) throws com.sitewhere.spi.SiteWhereException
input - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{username:.+}",
method=PUT)
@ResponseBody
@PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')")
public com.sitewhere.rest.model.user.User updateUser(@PathVariable
String username,
@RequestBody
com.sitewhere.rest.model.user.request.UserCreateRequest input)
throws com.sitewhere.spi.SiteWhereException
input - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{username:.+}",
method=GET)
@ResponseBody
@PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')")
public com.sitewhere.rest.model.user.User getUserByUsername(@PathVariable
String username)
throws com.sitewhere.spi.SiteWhereException
username - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{username:.+}",
method=DELETE)
@ResponseBody
@PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')")
public com.sitewhere.rest.model.user.User deleteUserByUsername(@PathVariable
String username,
@RequestParam(defaultValue="false")
boolean force)
throws com.sitewhere.spi.SiteWhereException
siteToken - force - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{username:.+}/authorities",
method=GET)
@ResponseBody
@PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')")
public com.sitewhere.rest.model.search.SearchResults<com.sitewhere.rest.model.user.GrantedAuthority> getAuthoritiesForUsername(@PathVariable
String username)
throws com.sitewhere.spi.SiteWhereException
username - com.sitewhere.spi.SiteWhereException@RequestMapping(method=GET) @ResponseBody @PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')") public com.sitewhere.rest.model.search.SearchResults<com.sitewhere.rest.model.user.User> listUsers(@RequestParam(defaultValue="false") boolean includeDeleted, @RequestParam(defaultValue="100") int count) throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{username:.+}/tenants",
method=GET)
@ResponseBody
@PreAuthorize(value="hasRole(\'ROLE_REST\') and hasRole(\'ROLE_ADMINISTER_USERS\')")
public List<com.sitewhere.spi.user.ITenant> getTenantsForUsername(@PathVariable
String username,
@RequestParam(required=false,defaultValue="false")
boolean includeRuntimeInfo)
throws com.sitewhere.spi.SiteWhereException
username - com.sitewhere.spi.SiteWhereExceptionCopyright © 2016 SiteWhere, LLC.. All rights reserved.