Class AttributesResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.AttributesResource
-
@Path("/attributes") @Consumes("application/json") @Produces("application/json") public class AttributesResource extends ConfigBaseResource
- Author:
- Mougang T.Gasmyr
-
-
Field Summary
-
Fields inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
DEFAULT_LIST_SIZE, DEFAULT_LIST_START_INDEX, DEFAULT_MAX_COUNT, READ_ACCESS, WRITE_ACCESS
-
-
Constructor Summary
Constructors Constructor Description AttributesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
createAttribute(@Valid io.jans.model.GluuAttribute attribute)
jakarta.ws.rs.core.Response
deleteAttribute(@NotNull String inum)
jakarta.ws.rs.core.Response
getAttributeByInum(@NotNull String inum)
jakarta.ws.rs.core.Response
getAttributes(int limit, String pattern, String status)
jakarta.ws.rs.core.Response
patchAtribute(@NotNull String inum, @NotNull String pathString)
jakarta.ws.rs.core.Response
updateAttribute(@Valid io.jans.model.GluuAttribute attribute)
-
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, checkResourceNotNull, createSearchRequest, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
getAttributes
@GET public jakarta.ws.rs.core.Response getAttributes(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("all") @QueryParam("status") String status) throws Exception
- Throws:
Exception
-
getAttributeByInum
@GET @Path("{inum}") public jakarta.ws.rs.core.Response getAttributeByInum(@PathParam("inum") @NotNull @NotNull String inum)
-
createAttribute
@POST public jakarta.ws.rs.core.Response createAttribute(@Valid @Valid io.jans.model.GluuAttribute attribute)
-
updateAttribute
@PUT public jakarta.ws.rs.core.Response updateAttribute(@Valid @Valid io.jans.model.GluuAttribute attribute)
-
patchAtribute
@PATCH @Consumes("application/json-patch+json") @Path("{inum}") public jakarta.ws.rs.core.Response patchAtribute(@PathParam("inum") @NotNull @NotNull String inum, @NotNull @NotNull String pathString) throws com.github.fge.jsonpatch.JsonPatchException, IOException
- Throws:
com.github.fge.jsonpatch.JsonPatchException
IOException
-
deleteAttribute
@DELETE @Path("{inum}") public jakarta.ws.rs.core.Response deleteAttribute(@PathParam("inum") @NotNull @NotNull String inum)
-
-