org.broadleafcommerce.core.web.util
Class ProcessorUtils

java.lang.Object
  extended by org.broadleafcommerce.core.web.util.ProcessorUtils

public class ProcessorUtils
extends Object

Author:
apazzolini Utility class for Thymeleaf Processors

Field Summary
protected static Map<String,Object> cachedBeans
           
 
Constructor Summary
ProcessorUtils()
           
 
Method Summary
static CatalogService getCatalogService(org.thymeleaf.Arguments arguments)
          Gets the "blCatalogService" bean via the Spring Web Application Context
static ExploitProtectionService getExploitProtectionService(org.thymeleaf.Arguments arguments)
          Gets the "blExploitProtectionService" bean via the Spring Web Application Context
static OrderService getOrderService(org.thymeleaf.Arguments arguments)
          Gets the "blOrderService" bean via the Spring Web Application Context
static RatingService getRatingService(org.thymeleaf.Arguments arguments)
          Gets the "blRatingService" bean via the Spring Web Application Context
static RelatedProductsService getRelatedProductsService(org.thymeleaf.Arguments arguments)
          Gets the "blRelatedProductsService" bean via the Spring Web Application Context
static SearchFacetDTOService getSearchFacetDTOService(org.thymeleaf.Arguments arguments)
          Gets the "blSearchFacetDTOService" bean via the Spring Web Application Context
static StaticAssetService getStaticAssetService(org.thymeleaf.Arguments arguments)
          Gets the "blStaticAssetService" bean via the Spring Web Application Context
static String getUrl(String baseUrl, Map<String,String[]> parameters)
          Gets a UTF-8 URL encoded URL based on the current URL as well as the specified map of query string parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachedBeans

protected static Map<String,Object> cachedBeans
Constructor Detail

ProcessorUtils

public ProcessorUtils()
Method Detail

getRelatedProductsService

public static RelatedProductsService getRelatedProductsService(org.thymeleaf.Arguments arguments)
Gets the "blRelatedProductsService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blRelatedProductsService" bean instance

getCatalogService

public static CatalogService getCatalogService(org.thymeleaf.Arguments arguments)
Gets the "blCatalogService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blCatalogService" bean instance

getStaticAssetService

public static StaticAssetService getStaticAssetService(org.thymeleaf.Arguments arguments)
Gets the "blStaticAssetService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blStaticAssetService" bean instance

getOrderService

public static OrderService getOrderService(org.thymeleaf.Arguments arguments)
Gets the "blOrderService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blOrderService" bean instance

getSearchFacetDTOService

public static SearchFacetDTOService getSearchFacetDTOService(org.thymeleaf.Arguments arguments)
Gets the "blSearchFacetDTOService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blSearchFacetDTOService" bean instance

getRatingService

public static RatingService getRatingService(org.thymeleaf.Arguments arguments)
Gets the "blRatingService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blRatingService" bean instance

getExploitProtectionService

public static ExploitProtectionService getExploitProtectionService(org.thymeleaf.Arguments arguments)
Gets the "blExploitProtectionService" bean via the Spring Web Application Context

Parameters:
arguments - the Thymeleaf arguments that's part of the request
Returns:
"blExploitProtectionService" bean instance

getUrl

public static String getUrl(String baseUrl,
                            Map<String,String[]> parameters)
Gets a UTF-8 URL encoded URL based on the current URL as well as the specified map of query string parameters

Parameters:
baseUrl -
parameters -
Returns:
the built URL


Copyright © 2012. All Rights Reserved.