| Modifier and Type | Field and Description |
|---|---|
static String |
POLICYURL |
static String |
URL |
| Constructor and Description |
|---|
PolicyAPI() |
| Modifier and Type | Method and Description |
|---|---|
String |
createNewPolicyForResourceSet(Long rsid,
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Create a new policy on the given resource set
|
String |
deleteResourceSet(Long rsid,
Long pid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Delete a specific policy
|
String |
deleteResourceSet(Long rsid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Delete the indicated resource set
|
String |
getPoliciesForResourceSet(Long rsid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
List all the policies for the given resource set
|
String |
getPolicy(Long rsid,
Long pid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Get a specific policy
|
String |
getResourceSet(Long rsid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Get the indicated resource set
|
String |
getResourceSetsForCurrentUser(org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
List all resource sets for the current user
|
String |
setClaimsForResourceSet(Long rsid,
Long pid,
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Update a specific policy
|
public static final String URL
public static final String POLICYURL
public PolicyAPI()
@RequestMapping(value="",
method=GET,
produces="application/json")
public String getResourceSetsForCurrentUser(org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
m - auth - @RequestMapping(value="/{rsid}",
method=GET,
produces="application/json")
public String getResourceSet(@PathVariable(value="rsid")
Long rsid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - m - auth - @RequestMapping(value="/{rsid}",
method=DELETE,
produces="application/json")
public String deleteResourceSet(@PathVariable(value="rsid")
Long rsid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - m - auth - @RequestMapping(value="/{rsid}/policy",
method=GET,
produces="application/json")
public String getPoliciesForResourceSet(@PathVariable(value="rsid")
Long rsid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - m - auth - @RequestMapping(value="/{rsid}/policy",
method=POST,
produces="application/json")
public String createNewPolicyForResourceSet(@PathVariable(value="rsid")
Long rsid,
@RequestBody
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - m - auth - @RequestMapping(value="/{rsid}/policy/{pid}",
method=GET,
produces="application/json")
public String getPolicy(@PathVariable(value="rsid")
Long rsid,
@PathVariable(value="pid")
Long pid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - pid - m - auth - @RequestMapping(value="/{rsid}/policy/{pid}",
method=PUT,
consumes="application/json",
produces="application/json")
public String setClaimsForResourceSet(@PathVariable(value="rsid")
Long rsid,
@PathVariable(value="pid")
Long pid,
@RequestBody
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - pid - jsonString - m - auth - @RequestMapping(value="/{rsid}/policy/{pid}",
method=DELETE,
produces="application/json")
public String deleteResourceSet(@PathVariable(value="rsid")
Long rsid,
@PathVariable(value="pid")
Long pid,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
rsid - pid - m - auth - Copyright © 2018. All rights reserved.