Class IdentityRestService
java.lang.Object
fr.paris.lutece.plugins.identitypicker.service.rs.IdentityRestService
REST service for identity management operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateAccountTask(String customerId, javax.servlet.http.HttpServletRequest request) javax.ws.rs.core.ResponsecreateEmailValidationTask(String customerId, javax.servlet.http.HttpServletRequest request) javax.ws.rs.core.ResponsecreateIdentity(Map<String, Object> data, javax.servlet.http.HttpServletRequest servletRequest) Create a new identity.javax.ws.rs.core.ResponsegetIdentity(String customerId, javax.servlet.http.HttpServletRequest request) Retrieve an identity by customer ID.javax.ws.rs.core.ResponsegetIdentityHistory(String customerId, javax.servlet.http.HttpServletRequest request) Retrieve the history of an identity by customer ID.javax.ws.rs.core.ResponsegetIdentityTasks(String customerId, javax.servlet.http.HttpServletRequest request) javax.ws.rs.core.ResponsegetRules(javax.servlet.http.HttpServletRequest request) Retrieve the rules for identity picking.javax.ws.rs.core.ResponsegetUserPermissions(javax.servlet.http.HttpServletRequest request) Retrieve the permissions for the current user.javax.ws.rs.core.ResponseidentitySearch(IdentitySearchCriteria searchCriteria, javax.servlet.http.HttpServletRequest request) Search for identities based on given criteria.javax.ws.rs.core.ResponseupdateIdentity(String customerId, Map<String, Object> data, javax.servlet.http.HttpServletRequest servletRequest) Update an existing identity.
-
Constructor Details
-
IdentityRestService
public IdentityRestService()
-
-
Method Details
-
identitySearch
@GET @Path("/search") @Produces("application/json") public javax.ws.rs.core.Response identitySearch(@BeanParam IdentitySearchCriteria searchCriteria, @Context javax.servlet.http.HttpServletRequest request) Search for identities based on given criteria.- Parameters:
searchCriteria- The search criteria for identitiesrequest- The HTTP servlet request- Returns:
- Response containing the search results or error information
-
getIdentity
@GET @Path("/identity/{customer_id}") @Produces("application/json") public javax.ws.rs.core.Response getIdentity(@PathParam("customer_id") String customerId, @Context javax.servlet.http.HttpServletRequest request) Retrieve an identity by customer ID.- Parameters:
customerId- The customer ID to look uprequest- The HTTP servlet request- Returns:
- Response containing the identity information or error details
-
getRules
@GET @Path("/rules") @Produces("application/json") public javax.ws.rs.core.Response getRules(@Context javax.servlet.http.HttpServletRequest request) Retrieve the rules for identity picking.- Parameters:
request- The HTTP servlet request- Returns:
- Response containing the rules or error information
-
getUserPermissions
@GET @Path("/permissions") @Produces("application/json") public javax.ws.rs.core.Response getUserPermissions(@Context javax.servlet.http.HttpServletRequest request) Retrieve the permissions for the current user.- Parameters:
request- The HTTP servlet request- Returns:
- Response containing the user's permissions or error information
-
createIdentity
@POST @Path("/identity") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createIdentity(Map<String, Object> data, @Context javax.servlet.http.HttpServletRequest servletRequest) Create a new identity.- Parameters:
data- The identity data to createservletRequest- The HTTP servlet request- Returns:
- Response containing the result of the creation or error information
-
updateIdentity
@PUT @Path("/identity/{customer_id}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateIdentity(@PathParam("customer_id") String customerId, Map<String, Object> data, @Context javax.servlet.http.HttpServletRequest servletRequest) Update an existing identity.- Parameters:
customerId- The customer ID of the identity to updatedata- The updated identity dataservletRequest- The HTTP servlet request- Returns:
- Response containing the result of the update or error information
-
getIdentityHistory
@GET @Path("/identity/{customer_id}/history") @Produces("application/json") public javax.ws.rs.core.Response getIdentityHistory(@PathParam("customer_id") String customerId, @Context javax.servlet.http.HttpServletRequest request) Retrieve the history of an identity by customer ID.- Parameters:
customerId- The customer ID to look uprequest- The HTTP servlet request- Returns:
- Response containing the identity history or error details
-
getIdentityTasks
@GET @Path("/identity/{customer_id}/tasks") @Produces("application/json") public javax.ws.rs.core.Response getIdentityTasks(@PathParam("customer_id") String customerId, @Context javax.servlet.http.HttpServletRequest request) -
createAccountTask
@POST @Path("/identity/{customer_id}/tasks/create-account-task") @Produces("application/json") public javax.ws.rs.core.Response createAccountTask(@PathParam("customer_id") String customerId, @Context javax.servlet.http.HttpServletRequest request) -
createEmailValidationTask
@POST @Path("/identity/{customer_id}/tasks/validate-email-task") @Produces("application/json") public javax.ws.rs.core.Response createEmailValidationTask(@PathParam("customer_id") String customerId, @Context javax.servlet.http.HttpServletRequest request)
-