Skip to Content
0
Former Member
Oct 24, 2014 at 08:42 AM

How to programatically set the localized name for a new UserPriceGroup?

278 Views

Hello...

I am creating a new UserPriceGroup, programmatically in the service layer (extension of DefaultCustomerAccountService).

   final UserPriceGroup newPriceGroup = UserPriceGroup.valueOf(codeNumber);
   customer.getDefaultB2BUnit().setUserPriceGroup(newPriceGroup);

I want to set the localized name for the new UserPriceGroup. It is an enum type, so it is not clear to me how to set that localized english name, programmatically, so it shows as such in the HMC Localized name Properties.

Any suggestions? Thank You