org.broadleafcommerce.cms.url.service
Class URLHandlerServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.url.service.URLHandlerServiceImpl
All Implemented Interfaces:
URLHandlerService

@Service(value="blURLHandlerService")
public class URLHandlerServiceImpl
extends Object
implements URLHandlerService

Created by bpolster.


Field Summary
protected  StatisticsService statisticsService
           
protected  net.sf.ehcache.Cache urlHandlerCache
           
protected  URLHandlerDao urlHandlerDao
           
 
Constructor Summary
URLHandlerServiceImpl()
           
 
Method Summary
protected  String buildKey(SandBox sandBox, String requestUri)
           
protected  String buildKey(SandBox sandBox, URLHandler urlHandler)
           
 List<URLHandler> findAllURLHandlers()
           
 URLHandler findURLHandlerById(Long id)
           
 URLHandler findURLHandlerByURI(String uri)
          Checks the passed in URL to determine if there is a matching URLHandler.
protected  URLHandler findURLHandlerByURIInternal(String uri)
           
 net.sf.ehcache.Cache getUrlHandlerCache()
           
protected  URLHandler getUrlHandlerFromCache(String key)
           
protected  URLHandler lookupHandlerFromCache(String requestURI)
           
 void removeURLHandlerFromCache(SandBox sandBox, URLHandler urlhandler)
           
 URLHandler saveURLHandler(URLHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urlHandlerDao

protected URLHandlerDao urlHandlerDao

statisticsService

protected StatisticsService statisticsService

urlHandlerCache

protected net.sf.ehcache.Cache urlHandlerCache
Constructor Detail

URLHandlerServiceImpl

public URLHandlerServiceImpl()
Method Detail

findURLHandlerByURI

public URLHandler findURLHandlerByURI(String uri)
Checks the passed in URL to determine if there is a matching URLHandler. Returns null if no handler was found.

Specified by:
findURLHandlerByURI in interface URLHandlerService
Parameters:
uri -
Returns:

findURLHandlerById

public URLHandler findURLHandlerById(Long id)
Specified by:
findURLHandlerById in interface URLHandlerService

removeURLHandlerFromCache

public void removeURLHandlerFromCache(SandBox sandBox,
                                      URLHandler urlhandler)
Specified by:
removeURLHandlerFromCache in interface URLHandlerService

findAllURLHandlers

public List<URLHandler> findAllURLHandlers()
Specified by:
findAllURLHandlers in interface URLHandlerService

saveURLHandler

@Transactional(value="blTransactionManager")
public URLHandler saveURLHandler(URLHandler handler)
Specified by:
saveURLHandler in interface URLHandlerService

getUrlHandlerCache

public net.sf.ehcache.Cache getUrlHandlerCache()
Specified by:
getUrlHandlerCache in interface URLHandlerService

buildKey

protected String buildKey(SandBox sandBox,
                          String requestUri)

buildKey

protected String buildKey(SandBox sandBox,
                          URLHandler urlHandler)

lookupHandlerFromCache

protected URLHandler lookupHandlerFromCache(String requestURI)

getUrlHandlerFromCache

protected URLHandler getUrlHandlerFromCache(String key)

findURLHandlerByURIInternal

protected URLHandler findURLHandlerByURIInternal(String uri)


Copyright © 2013. All Rights Reserved.