Class AgamaResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.AgamaResource
-
@Path("/agama") @Consumes("application/json") @Produces("application/json") public class AgamaResource extends ConfigBaseResource
-
-
Constructor Summary
Constructors Constructor Description AgamaResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
createFlow(@Valid io.jans.agama.model.Flow flow)
jakarta.ws.rs.core.Response
createFlowFromSource(@NotNull String flowName, @Valid String source)
jakarta.ws.rs.core.Response
delete(@NotNull String flowName)
jakarta.ws.rs.core.Response
getFlowByName(@NotNull String flowName, boolean includeSource)
jakarta.ws.rs.core.Response
getFlows(String pattern, int limit, int startIndex, String sortBy, String sortOrder, boolean includeSource)
jakarta.ws.rs.core.Response
patchFlow(@NotNull String flowName, @NotNull com.github.fge.jsonpatch.JsonPatch jsonPatch)
jakarta.ws.rs.core.Response
updateFlowSource(@NotNull String flowName, @Valid String source)
-
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCount
-
Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwBadRequestException, thorwInternalServerException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
getFlows
@GET public jakarta.ws.rs.core.Response getFlows(@DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("0") @QueryParam("startIndex") int startIndex, @DefaultValue("agFlowQname") @QueryParam("sortBy") String sortBy, @DefaultValue("ascending") @QueryParam("sortOrder") String sortOrder, @DefaultValue("false") @QueryParam("includeSource") boolean includeSource)
-
getFlowByName
@GET @Path("{qname}") public jakarta.ws.rs.core.Response getFlowByName(@PathParam("qname") @NotNull @NotNull String flowName, @DefaultValue("false") @QueryParam("includeSource") boolean includeSource)
-
createFlow
@POST public jakarta.ws.rs.core.Response createFlow(@Valid @Valid io.jans.agama.model.Flow flow) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
createFlowFromSource
@POST @Consumes("text/plain") @Path("{qname}") public jakarta.ws.rs.core.Response createFlowFromSource(@PathParam("qname") @NotNull @NotNull String flowName, @Valid @Valid String source) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
updateFlowSource
@PUT @Consumes("text/plain") @Path("/source/{qname}") public jakarta.ws.rs.core.Response updateFlowSource(@PathParam("qname") @NotNull @NotNull String flowName, @Valid @Valid String source) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
patchFlow
@PATCH @Consumes("application/json-patch+json") @Path("{qname}") public jakarta.ws.rs.core.Response patchFlow(@PathParam("qname") @NotNull @NotNull String flowName, @NotNull @NotNull com.github.fge.jsonpatch.JsonPatch jsonPatch) throws com.github.fge.jsonpatch.JsonPatchException, IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
- Throws:
com.github.fge.jsonpatch.JsonPatchException
IOException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
-
delete
@DELETE @Path("{qname}") public jakarta.ws.rs.core.Response delete(@PathParam("qname") @NotNull @NotNull String flowName)
-
-