@Controller @RequestMapping(value="/api/blacklist") @PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public class BlacklistAPI extends Object
Constructor and Description |
---|
BlacklistAPI() |
Modifier and Type | Method and Description |
---|---|
String |
addNewBlacklistedSite(String jsonString,
org.springframework.ui.ModelMap m,
Principal p)
Create a new blacklisted site
|
String |
deleteBlacklistedSite(Long id,
org.springframework.ui.ModelMap m)
Delete a blacklisted site
|
String |
getAllBlacklistedSites(org.springframework.ui.ModelMap m)
Get a list of all blacklisted sites
|
String |
getBlacklistedSite(Long id,
org.springframework.ui.ModelMap m)
Get a single blacklisted site
|
String |
updateBlacklistedSite(Long id,
String jsonString,
org.springframework.ui.ModelMap m,
Principal p)
Update an existing blacklisted site
|
public static final String URL
public BlacklistAPI()
@RequestMapping(method=GET, produces="application/json") public String getAllBlacklistedSites(org.springframework.ui.ModelMap m)
m
- @RequestMapping(method=POST, consumes="application/json", produces="application/json") public String addNewBlacklistedSite(@RequestBody String jsonString, org.springframework.ui.ModelMap m, Principal p)
jsonString
- m
- p
- @RequestMapping(value="/{id}", method=PUT, consumes="application/json", produces="application/json") public String updateBlacklistedSite(@PathVariable(value="id") Long id, @RequestBody String jsonString, org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/{id}", method=DELETE) public String deleteBlacklistedSite(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m)
@RequestMapping(value="/{id}", method=GET, produces="application/json") public String getBlacklistedSite(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m)
Copyright © 2018. All rights reserved.