Class IdentityRestService

java.lang.Object
fr.paris.lutece.plugins.identitypicker.service.rs.IdentityRestService

@Path("/rest/identitypicker/api") public class IdentityRestService extends Object
REST service for identity management operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    createAccountTask(String customerId, javax.servlet.http.HttpServletRequest request)
     
    javax.ws.rs.core.Response
    createEmailValidationTask(String customerId, javax.servlet.http.HttpServletRequest request)
     
    javax.ws.rs.core.Response
    createIdentity(Map<String,Object> data, javax.servlet.http.HttpServletRequest servletRequest)
    Create a new identity.
    javax.ws.rs.core.Response
    getIdentity(String customerId, javax.servlet.http.HttpServletRequest request)
    Retrieve an identity by customer ID.
    javax.ws.rs.core.Response
    getIdentityHistory(String customerId, javax.servlet.http.HttpServletRequest request)
    Retrieve the history of an identity by customer ID.
    javax.ws.rs.core.Response
    getIdentityTasks(String customerId, javax.servlet.http.HttpServletRequest request)
     
    javax.ws.rs.core.Response
    getRules(javax.servlet.http.HttpServletRequest request)
    Retrieve the rules for identity picking.
    javax.ws.rs.core.Response
    getUserPermissions(javax.servlet.http.HttpServletRequest request)
    Retrieve the permissions for the current user.
    javax.ws.rs.core.Response
    identitySearch(IdentitySearchCriteria searchCriteria, javax.servlet.http.HttpServletRequest request)
    Search for identities based on given criteria.
    javax.ws.rs.core.Response
    updateIdentity(String customerId, Map<String,Object> data, javax.servlet.http.HttpServletRequest servletRequest)
    Update an existing identity.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 identities
      request - 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 up
      request - 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 create
      servletRequest - 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 update
      data - The updated identity data
      servletRequest - 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 up
      request - 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)