cancel
Showing results for 
Search instead for 
Did you mean: 

is there any outbox hybris webservice which returns all properties from hac or from properties file

former_member631989
Discoverer
0 Kudos
 

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor
0 Kudos

I don't think there is. When I needed this kind of functionality, I had to make my own service / method. You can use de.hybris.platform.servicelayer.config.ConfigurationService.getConfiguration(), like this:

 public Map<String, String> buildConfigurationMap()
 {
     final Map<String, String> sortedMap = new TreeMap<String, String>();
     final Configuration configuration = configurationService.getConfiguration();
     final Iterator<String> configurationKeys = configuration.getKeys();
     while (configurationKeys.hasNext())
     {
         final String key = configurationKeys.next();
         final String value = configuration.getString(key);
         sortedMap.put(key, value);
     }

     return sortedMap;
 }

Answers (0)