Class UserResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.plugin.mgt.rest.UserResource
-
@Path("/configuser") @Produces("application/json") @Consumes("application/json") @ApplicationScoped public class UserResource extends io.jans.configapi.core.rest.BaseResource
-
-
Constructor Summary
Constructors Constructor Description UserResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsecreateUser(@Valid io.jans.as.common.model.common.User user)jakarta.ws.rs.core.ResponsedeleteUser(@NotNull String inum)jakarta.ws.rs.core.ResponsegetUserByInum(@NotNull String inum)jakarta.ws.rs.core.ResponsegetUsers(int limit, String pattern, int startIndex, String sortBy, String sortOrder)jakarta.ws.rs.core.ResponsepatchUser(@NotNull String inum, @NotNull UserPatchRequest userPatchRequest)jakarta.ws.rs.core.ResponseupdateUser(@Valid io.jans.as.common.model.common.User user)-
Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkResourceNotNull, createSearchRequest, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
getUsers
@GET public jakarta.ws.rs.core.Response getUsers(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("1") @QueryParam("startIndex") int startIndex, @QueryParam("sortBy") String sortBy, @QueryParam("sortOrder") String sortOrder) throws io.jans.util.security.StringEncrypter.EncryptionException, IllegalAccessException, InvocationTargetException- Throws:
io.jans.util.security.StringEncrypter.EncryptionExceptionIllegalAccessExceptionInvocationTargetException
-
getUserByInum
@GET @Path("{inum}") public jakarta.ws.rs.core.Response getUserByInum(@PathParam("inum") @NotNull @NotNull String inum) throws io.jans.util.security.StringEncrypter.EncryptionException, IllegalAccessException, InvocationTargetException- Throws:
io.jans.util.security.StringEncrypter.EncryptionExceptionIllegalAccessExceptionInvocationTargetException
-
createUser
@POST public jakarta.ws.rs.core.Response createUser(@Valid @Valid io.jans.as.common.model.common.User user) throws io.jans.util.security.StringEncrypter.EncryptionException, NoSuchMethodException, IllegalAccessException, InvocationTargetException- Throws:
io.jans.util.security.StringEncrypter.EncryptionExceptionNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetException
-
updateUser
@PUT public jakarta.ws.rs.core.Response updateUser(@Valid @Valid io.jans.as.common.model.common.User user) throws io.jans.util.security.StringEncrypter.EncryptionException, NoSuchMethodException, IllegalAccessException, InvocationTargetException- Throws:
io.jans.util.security.StringEncrypter.EncryptionExceptionNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetException
-
patchUser
@PATCH @Path("{inum}") public jakarta.ws.rs.core.Response patchUser(@PathParam("inum") @NotNull @NotNull String inum, @NotNull @NotNull UserPatchRequest userPatchRequest) throws io.jans.util.security.StringEncrypter.EncryptionException, IllegalAccessException, InvocationTargetException, com.github.fge.jsonpatch.JsonPatchException, IOException- Throws:
io.jans.util.security.StringEncrypter.EncryptionExceptionIllegalAccessExceptionInvocationTargetExceptioncom.github.fge.jsonpatch.JsonPatchExceptionIOException
-
deleteUser
@DELETE @Path("{inum}") public jakarta.ws.rs.core.Response deleteUser(@PathParam("inum") @NotNull @NotNull String inum)
-
-