cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member1208351
Participant
0 Kudos

a bit late in answering but may be that link can help: https://wiki.hybris.com/display/release5/Working+with+Enumerations

Former Member
0 Kudos

Hello,

you should be able to do that with`EnumerationService.setEnumerationName(HybrisEnumValue, String, Locale)`.