@Path(value="policies") public interface PolicyService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractPolicyTO> |
create(T policyTO)
Create a new policy.
|
<T extends AbstractPolicyTO> |
delete(Long policyId)
Delete policy matching the given id.
|
List<CorrelationRuleClass> |
getSyncCorrelationRuleClasses()
Returns a list of classes to be used as correlation rules.
|
<T extends AbstractPolicyTO> |
list(PolicyType type)
Returns a list of policies of the matching type.
|
<T extends AbstractPolicyTO> |
read(Long policyId)
Returns the policy matching the given id.
|
<T extends AbstractPolicyTO> |
readGlobal(PolicyType type)
Returns the global policy for the given type.
|
<T extends AbstractPolicyTO> |
update(Long policyId,
T policyTO)
Updates policy matching the given id.
|
@GET
@Path(value="syncCorrelationRuleClasses")
@Produces(value={"application/xml","application/json"})
List<CorrelationRuleClass> getSyncCorrelationRuleClasses()
@GET
@Path(value="{policyId}")
@Produces(value={"application/xml","application/json"})
<T extends AbstractPolicyTO> T read(@NotNull@PathParam(value="policyId")
Long policyId)
T - response type (extending PolicyTO)policyId - id of requested policy@GET
@Path(value="global")
@Produces(value={"application/xml","application/json"})
<T extends AbstractPolicyTO> T readGlobal(@NotNull@MatrixParam(value="type")
PolicyType type)
T - response type (extending PolicyTO)type - PolicyType to read global policy from@GET
@Produces(value={"application/xml","application/json"})
<T extends AbstractPolicyTO> List<T> list(@NotNull@MatrixParam(value="type")
PolicyType type)
T - response type (extending PolicyTO)type - Type selector for requested policies@POST
@Consumes(value={"application/xml","application/json"})
<T extends AbstractPolicyTO> javax.ws.rs.core.Response create(@NotNull
T policyTO)
T - response type (extending PolicyTO)policyTO - Policy to be created (needs to match type)@PUT
@Path(value="{policyId}")
@Consumes(value={"application/xml","application/json"})
<T extends AbstractPolicyTO> void update(@NotNull@PathParam(value="policyId")
Long policyId,
@NotNull
T policyTO)
T - response type (extending PolicyTO)policyId - id of policy to be updatedpolicyTO - Policy to replace existing policy@DELETE
@Path(value="{policyId}")
<T extends AbstractPolicyTO> void delete(@NotNull@PathParam(value="policyId")
Long policyId)
T - response type (extending PolicyTO)policyId - id of policy to be deletedCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.