Class ProductService
java.lang.Object
com.vmware.vipclient.i18n.messages.service.ProductService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves translated messages of all components of a product in the requested locale (See the dto object).Retrieves the combined set of cached supported locales from all data sources.getCachedSupportedLocales(DataSourceEnum dataSource) Retrieves the cached set of locales that are supported in the given data source.Retrieves the list of components of a product.getSupportedLocales(DataSourceEnum dataSource) Retrieves the set of locales that are supported in the given data source.
-
Constructor Details
-
ProductService
-
-
Method Details
-
getAllComponentTranslation
Retrieves translated messages of all components of a product in the requested locale (See the dto object).- Returns:
- translated messages of all components of a product locale specified in the dto object
-
getComponents
Retrieves the list of components of a product. It recursively applies data source fallback mechanism in case of failure.- Returns:
- list of components of the product specified in the dto object
-
getCachedSupportedLocales
Retrieves the combined set of cached supported locales from all data sources. It also refreshes/populates the cache if expired/not yet cached in a separate thread.- Returns:
- The combined set of supported locales from all data sources found in cache. An empty set if cache is empty or not yet populated.
-
getCachedSupportedLocales
Retrieves the cached set of locales that are supported in the given data source.- Parameters:
dataSource- The data source- Returns:
- The data from the cache as is, or an empty Set if not in cache.
-
getSupportedLocales
Retrieves the set of locales that are supported in the given data source. It will trigger a cache populate or refresh as necessary before returning.- Parameters:
dataSource- The data source- Returns:
- The set of locales supported in the given data source. An empty set if fetch fails.
-