betweenGo

Update Profile in ATG Commerce

by on Sep.08, 2009, under Commerce

Wolf portrait 3 on Flickr
(Photo: Wolf portrait 3 by Tambako the Jaguar)

ProfileTools provides methods for updating a profile.  In ATG Commerce you can access the ProfileTools via the CommerceProfileTools.

Therefore to update a profile it is as simple as calling the update methods in ProfileTools.

getCommerceProfileTools().updateProperty(propertyName,
                                         property, getProfile());

getCommerceProfileTools().updateProperty(propertyTable, getProfile());

The update methods get the MutableRepositoryItem for the profile, set the property in the MutableRepositoryItem and then update the item in the ProfileRepository.

Pretty simple, eh? :-)


Share

Related posts:

  1. ATG Product Bundles
  2. Accessing JavaBean’s Getters and Setters
  3. How to Add Products to Categories using Content Groups
  4. How to Debug an InvalidVersionException from Updating an ATG Order
  5. Microsoft Office 2008 update 12.1.0 will not install

:, ,

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!