@Consumes(value="application/json")
@Produces(value="application/json")
public interface UserResource
@GET UserRepresentation toRepresentation()
@PUT void update(UserRepresentation userRepresentation)
@DELETE void remove()
@Path(value="groups") @GET List<GroupRepresentation> groups()
@Path(value="groups") @GET List<GroupRepresentation> groups(@QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
@Path(value="groups") @GET List<GroupRepresentation> groups(@QueryParam(value="search") String search, @QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResults)
@Path(value="groups/{groupId}")
@PUT
void joinGroup(@PathParam(value="groupId")
String groupId)
@Path(value="groups/{groupId}")
@DELETE
void leaveGroup(@PathParam(value="groupId")
String groupId)
@POST @Path(value="logout") void logout()
@GET @Path(value="credentials") @Produces(value="application/json") List<CredentialRepresentation> credentials()
@DELETE
@Path(value="credentials/{credentialId}")
void removeCredential(@PathParam(value="credentialId")
String credentialId)
@PUT
@Consumes(value="text/plain")
@Path(value="credentials/{credentialId}/userLabel")
void setCredentialUserLabel(@PathParam(value="credentialId")
String credentialId,
String userLabel)
@Path(value="credentials/{credentialId}/moveToFirst")
@POST
void moveCredentialToFirst(@PathParam(value="credentialId")
String credentialId)
credentialId - The credential to move@Path(value="credentials/{credentialId}/moveAfter/{newPreviousCredentialId}")
@POST
void moveCredentialAfter(@PathParam(value="credentialId")
String credentialId,
@PathParam(value="newPreviousCredentialId")
String newPreviousCredentialId)
credentialId - The credential to movenewPreviousCredentialId - The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list.@Path(value="disable-credential-types") @PUT @Consumes(value="application/json") @Deprecated void disableCredentialType(List<String> credentialTypes)
credentialTypes - @PUT @Path(value="reset-password") void resetPassword(CredentialRepresentation credentialRepresentation)
@PUT @Path(value="reset-password-email") @Deprecated void resetPasswordEmail()
@PUT @Path(value="reset-password-email") @Deprecated void resetPasswordEmail(@QueryParam(value="client_id") String clientId)
@PUT @Path(value="execute-actions-email") void executeActionsEmail(List<String> actions)
actions - @PUT
@Path(value="execute-actions-email")
void executeActionsEmail(@QueryParam(value="client_id")
String clientId,
@QueryParam(value="redirect_uri")
String redirectUri,
List<String> actions)
clientId - redirectUri - actions - @PUT @Path(value="send-verify-email") void sendVerifyEmail()
@PUT
@Path(value="send-verify-email")
void sendVerifyEmail(@QueryParam(value="client_id")
String clientId)
@GET @Path(value="sessions") List<UserSessionRepresentation> getUserSessions()
@GET
@Path(value="offline-sessions/{clientId}")
List<UserSessionRepresentation> getOfflineSessions(@PathParam(value="clientId")
String clientId)
@GET @Path(value="federated-identity") List<FederatedIdentityRepresentation> getFederatedIdentity()
@POST
@Path(value="federated-identity/{provider}")
javax.ws.rs.core.Response addFederatedIdentity(@PathParam(value="provider")
String provider,
FederatedIdentityRepresentation rep)
@Path(value="federated-identity/{provider}")
@DELETE
void removeFederatedIdentity(@PathParam(value="provider")
String provider)
@Path(value="role-mappings") RoleMappingResource roles()
@DELETE
@Path(value="consents/{client}")
void revokeConsent(@PathParam(value="client")
String clientId)
Copyright © 2019 JBoss by Red Hat. All rights reserved.