com.ibm.commerce.rest.member.handler

Class GuestIdentityHandler

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • RESOURCE_NAME

        public static final java.lang.String RESOURCE_NAME
        The Constant RESOURCE_NAME.
        See Also:
        Constant Field Values
      • FORMAT_GROUP_NAME

        public static final java.lang.String FORMAT_GROUP_NAME
        The constant FORMAT_GROUP_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • GuestIdentityHandler

        public GuestIdentityHandler()
    • Method Detail

      • getResourceName

        public java.lang.String getResourceName()
        Description copied from interface: IResourceHandler
        This method returns the name of the resource used primarily to determine the representation of the resource. This class can be overridden to change the name of the resource and therefore the representation, while keeping all the methods in this class.
        Returns:
        the resource name
      • login

        @POST
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response login(@PathParam(value="storeId")
                                                                                                                                                             java.lang.String storeId,
                                                                                                                                                             @QueryParam(value="responseFormat")
                                                                                                                                                             java.lang.String responseFormat)
        Create identity for a guest user. No input data is required.
        Parameters:
        storeId - the store id
        responseFormat - the response format
        Returns:
        the response
      • logout

        @DELETE
         @Path(value="@self")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response logout(@PathParam(value="storeId")
                                                                                                                                                                                      java.lang.String storeId,
                                                                                                                                                                                      @QueryParam(value="responseFormat")
                                                                                                                                                                                      java.lang.String responseFormat)
        Logout a user. The authentication tokens obtained during login must be sent back with the request header.
        Parameters:
        storeId - the store id
        responseFormat - the response format
        Returns:
        the response
      • createGuest

        public java.util.Map createGuest(BusinessContextType bContext,
                                         javax.security.auth.callback.CallbackHandler callbackHandler,
                                         java.util.Map<java.lang.String,java.lang.Object> inputData)
                                  throws PersonException
        Creates the guest.
        Parameters:
        bContext - the b context
        callbackHandler - the callback handler
        inputData - the input data
        Returns:
        the map
        Throws:
        PersonException - the person exception