@Path(value="policies") public interface PolicyService extends JAXRSService
PARAM_ANYTYPE_KIND, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_RESOURCE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(PolicyType type,
PolicyTO policyTO)
Create a new policy.
|
void |
delete(PolicyType type,
String key)
Delete policy matching the given key.
|
<T extends PolicyTO> |
list(PolicyType type)
Returns a list of policies of the matching type.
|
<T extends PolicyTO> |
read(PolicyType type,
String key)
Returns the policy matching the given key.
|
void |
update(PolicyType type,
PolicyTO policyTO)
Updates policy matching the given key.
|
@GET
@Path(value="{type}/{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
<T extends PolicyTO> T read(@NotNull @PathParam(value="type")
PolicyType type,
@NotNull @PathParam(value="key")
String key)
T - response type (extending PolicyTO)type - policy typekey - key of requested policy@GET
@Path(value="{type}")
@Produces(value={"application/json","application/yaml","application/xml"})
<T extends PolicyTO> List<T> list(@NotNull @PathParam(value="type")
PolicyType type)
T - response type (extending PolicyTO)type - Type selector for requested policies@POST
@Path(value="{type}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
javax.ws.rs.core.Response create(@NotNull @PathParam(value="type")
PolicyType type,
@NotNull
PolicyTO policyTO)
type - policy typepolicyTO - Policy to be created (needs to match type)@PUT
@Path(value="{type}/{key}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
void update(@NotNull @PathParam(value="type")
PolicyType type,
@NotNull
PolicyTO policyTO)
type - policy typepolicyTO - Policy to replace existing policy@DELETE
@Path(value="{type}/{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
void delete(@NotNull @PathParam(value="type")
PolicyType type,
@NotNull @PathParam(value="key")
String key)
type - policy typekey - key of policy to be deletedCopyright © 2010–2019 The Apache Software Foundation. All rights reserved.