@Path(value="policies") public interface PolicyService extends JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(@NotNull PolicyType type,
@NotNull PolicyTO policyTO)
Create a new policy.
|
void |
delete(@NotNull PolicyType type,
@NotNull String key)
Delete policy matching the given key.
|
<T extends PolicyTO> |
list(@NotNull PolicyType type)
Returns a list of policies of the matching type.
|
<T extends PolicyTO> |
read(@NotNull PolicyType type,
@NotNull String key)
Returns the policy matching the given key.
|
void |
update(@NotNull PolicyType type,
@NotNull 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") @NotNull PolicyType type, @NotNull @PathParam(value="key") @NotNull 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") @NotNull 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") @NotNull PolicyType type, @NotNull @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") @NotNull PolicyType type, @NotNull @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") @NotNull PolicyType type, @NotNull @PathParam(value="key") @NotNull String key)
type
- policy typekey
- key of policy to be deletedCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.