public class PolicyService extends Object
| Constructor and Description |
|---|
PolicyService(ResourceServer resourceServer,
AuthorizationProvider authorization,
RealmAuth auth) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(PolicyRepresentation representation) |
javax.ws.rs.core.Response |
delete(String id) |
javax.ws.rs.core.Response |
find(String name) |
javax.ws.rs.core.Response |
findAll(String id,
String name,
String type,
String resource,
Boolean permission,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
findById(String id) |
javax.ws.rs.core.Response |
findPolicyProviders() |
javax.ws.rs.core.Response |
getAssociatedPolicies(String id) |
javax.ws.rs.core.Response |
getDependentPolicies(String id) |
PolicyEvaluationService |
getPolicyEvaluateResource() |
Object |
getPolicyTypeResource(String policyType) |
javax.ws.rs.core.Response |
getResources(String id) |
javax.ws.rs.core.Response |
getScopes(String id) |
javax.ws.rs.core.Response |
update(String id,
PolicyRepresentation representation) |
public PolicyService(ResourceServer resourceServer, AuthorizationProvider authorization, RealmAuth auth)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(PolicyRepresentation representation)
@Path(value="{id}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response update(@PathParam(value="id")
String id,
PolicyRepresentation representation)
@Path(value="{id}")
@DELETE
public javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
@Path(value="{id}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findById(@PathParam(value="id")
String id)
@Path(value="{id}/dependentPolicies")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getDependentPolicies(@PathParam(value="id")
String id)
@Path(value="{id}/scopes")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getScopes(@PathParam(value="id")
String id)
@Path(value="{id}/resources")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getResources(@PathParam(value="id")
String id)
@Path(value="{id}/associatedPolicies")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getAssociatedPolicies(@PathParam(value="id")
String id)
@Path(value="/search")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response find(@QueryParam(value="name")
String name)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findAll(@QueryParam(value="policyId")
String id,
@QueryParam(value="name")
String name,
@QueryParam(value="type")
String type,
@QueryParam(value="resource")
String resource,
@QueryParam(value="permission")
Boolean permission,
@QueryParam(value="first")
Integer firstResult,
@QueryParam(value="max")
Integer maxResult)
@Path(value="providers") @GET @Produces(value="application/json") public javax.ws.rs.core.Response findPolicyProviders()
@Path(value="evaluate") public PolicyEvaluationService getPolicyEvaluateResource()
Copyright © 2017 JBoss by Red Hat. All rights reserved.