Samples > Sample stores > Consumer direct sample store > IBM Gift Center for the Consumer direct sample store > IBM Gift Center > Customize the Web (presentation) layer > IBM Gift Center actions
UserGiftRegistryAdminCreate action
This action combines creating a store user registry profile with creating a gift registry profile for a new (unregistered) customer. This command is executed by a gift consultant, creating a gift registry on behalf of a customer. The UserGiftRegistryAdminCreate action is a wrapper that calls UserRegistrationAdminAdd (a WebSphere Commerce command) and GiftRegistryCreate (a base IBM Gift Center action).
Use this command with SSL to ensure that all personal information is encrypted.
To do so, type the command with the HTTPS secure protocol.
URL structure
name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />
- http://host_name/path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path (for example, wcserver.mydomain.ibm.com is fully qualified).
Parameter values
The UserGiftRegistryAdminCreate action calls UserRegistrationAdminAdd and GiftRegistryCreate. Refer to the parameter values for UserRegistrationAdminAdd and GiftRegistryCreate for details.
Example
The following example illustrates a gift consultant creating a ConsumerDirect store registration profile and a gift registry profile for the gift registrant John Smith, who has asked the gift consultant to help him register for his wedding anniversary on May 25, 2006. The gift consultant has set up the logon ID for both store and the gift registry as jsmith. The gift registry is for a store with the ID of 10001. The gift consultant has set up registry access passwords for the customer, and for any gift givers that he has invited to use the gift registry.
https://myhost_name/webapp/wcs/stores/servlet/UserGiftRegistryAdminCreate? logonId=jsmith&logonPassword=mypassword&logonPasswordVerify=pass &URL=/webapp/wcs/stores/servlet/&storeId=10001&eventTypeId=2&eventYear=2006 &eventMonth=05&eventDay=25&addressType_1=R&addressType_2=PreEventShipping &name=50thWeddingAnniversary&relationship_1=husband&relationship_2=wife &shippingPreference=R&lastName=Smith&firstName=John &address1_1=123 Main Street&city_1=Toronto&state_1=Ontario &country_1=Canada &zipCode_1=M1M1M1&email_1=jsmith@email.com&phone1=555-555-5555 &phone2=333-333-3333®istryPassword=pass1word&guestPassword=pass2word
Behavior
- Upon successful completion, the specified URL is called.
- Registers a new customer with the store.
- Creates a gift registry profile for the customer.
- If unsuccessful, the command redirects to the error view.
Exception conditions
Refer to the exceptions described for the UserRegistrationAdminAdd and the GiftRegistryCreate.
Related reference