org.opennms.web.map
Class ResponseAssembler

java.lang.Object
  extended by org.opennms.web.map.ResponseAssembler

public class ResponseAssembler
extends Object


Constructor Summary
ResponseAssembler()
           
 
Method Summary
protected static String getActionOKMapResponse(String action)
          getActionOKMapResponse
protected static String getAddElementResponse(List<Integer> mapsWithLoopInfo, Collection<VElement> elems, Collection<VLink> links)
          getAddElementResponse
protected static String getDeleteElementsResponse(List<String> velemsids)
          getDeleteElementsResponse
protected static String getLoadDefaultMapResponse(VMapInfo vmapinfo)
          getLoadDefaultMapResponse
protected static String getLoadLabelMapResponse(Map<String,Set<Integer>> labelMap)
          getLoadLabelMapResponse
protected static String getLoadMapsResponse(List<VMapInfo> vmapinfos)
          getLoadMapsResponse
protected static String getLoadNodesResponse(List<VElementInfo> elemInfos)
          getLoadNodesResponse
protected static String getMapErrorResponse(String action)
          getMapErrorResponse
protected static String getMapResponse(VMap map)
          getMapResponse
protected static String getRefreshResponse(VMap map)
          getRefreshResponse
protected static String getSaveMapResponse(VMap map)
          getSaveMapResponse
protected static String getStartupResponse(VProperties initObj)
          getStartupResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseAssembler

public ResponseAssembler()
Method Detail

getRefreshResponse

protected static String getRefreshResponse(VMap map)

getRefreshResponse

Parameters:
map - a VMap object.
Returns:
a String object.

getAddElementResponse

protected static String getAddElementResponse(List<Integer> mapsWithLoopInfo,
                                              Collection<VElement> elems,
                                              Collection<VLink> links)

getAddElementResponse

Parameters:
mapsWithLoopInfo - a List object.
elems - a Collection object.
links - a Collection object.
Returns:
a String object.

getDeleteElementsResponse

protected static String getDeleteElementsResponse(List<String> velemsids)

getDeleteElementsResponse

Parameters:
velemsids - a List object.
Returns:
a String object.

getLoadNodesResponse

protected static String getLoadNodesResponse(List<VElementInfo> elemInfos)

getLoadNodesResponse

Parameters:
elemInfos - a List object.
Returns:
a String object.

getLoadMapsResponse

protected static String getLoadMapsResponse(List<VMapInfo> vmapinfos)

getLoadMapsResponse

Parameters:
vmapinfos - a List object.
Returns:
a String object.

getLoadDefaultMapResponse

protected static String getLoadDefaultMapResponse(VMapInfo vmapinfo)

getLoadDefaultMapResponse

Parameters:
vmapinfo - a VMapInfo object.
Returns:
a String object.

getSaveMapResponse

protected static String getSaveMapResponse(VMap map)

getSaveMapResponse

Parameters:
map - a VMap object.
Returns:
a String object.

getMapResponse

protected static String getMapResponse(VMap map)

getMapResponse

Parameters:
map - a VMap object.
Returns:
a String object.

getStartupResponse

protected static String getStartupResponse(VProperties initObj)
                                    throws Exception

getStartupResponse

Parameters:
initObj - a VProperties object.
Returns:
a String object.
Throws:
Exception - if any.

getLoadLabelMapResponse

protected static String getLoadLabelMapResponse(Map<String,Set<Integer>> labelMap)

getLoadLabelMapResponse

Parameters:
labelMap - a Map object.
Returns:
a String object.

getActionOKMapResponse

protected static String getActionOKMapResponse(String action)

getActionOKMapResponse

Parameters:
action - a String object.
Returns:
a String object.

getMapErrorResponse

protected static String getMapErrorResponse(String action)

getMapErrorResponse

Parameters:
action - a String object.
Returns:
a String object.


Copyright © 2011. All Rights Reserved.