org.jasig.portlet.maps.dao
Class DefaultMapDaoImpl

java.lang.Object
  extended by org.jasig.portlet.maps.dao.DefaultMapDaoImpl
All Implemented Interfaces:
IMapDao

public class DefaultMapDaoImpl
extends Object
implements IMapDao

Default map DAO retrieves map data from a static JSON file hosted from within the portlet itself.

Version:
$Revision: 25546 $
Author:
Jen Bourey, jennifer.bourey@gmail.com

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
DefaultMapDaoImpl()
           
 
Method Summary
 MapData getMap(javax.portlet.PortletRequest request)
          Retrieve map data for the specified PortletRequest.
protected  String getUrlTemplate(javax.portlet.PortletRequest request)
          Get the REST url template for the current portlet request.
protected  void postProcessData(MapData map)
          Perform data post-processing to set a search string for each location.
 void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

DefaultMapDaoImpl

public DefaultMapDaoImpl()
Method Detail

setRestTemplate

@Autowired(required=true)
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)

getMap

public MapData getMap(javax.portlet.PortletRequest request)
Description copied from interface: IMapDao
Retrieve map data for the specified PortletRequest.

Specified by:
getMap in interface IMapDao
Returns:

getUrlTemplate

protected String getUrlTemplate(javax.portlet.PortletRequest request)
Get the REST url template for the current portlet request.

Parameters:
request -
Returns:

postProcessData

protected void postProcessData(MapData map)
Perform data post-processing to set a search string for each location.

Parameters:
map -


Copyright © 2012 Jasig. All Rights Reserved.