Class ViewerHelper

java.lang.Object
org.tailormap.api.persistence.helper.ViewerHelper

@Service public class ViewerHelper extends Object
  • Constructor Details

  • Method Details

    • getAppLayerContextMap

      public Map<String,ViewerHelper.AppLayerContext> getAppLayerContextMap(Application application)
      Returns a map of AppTreeLayerNode id to AppLayerContext, with only nodes that reference an existing GeoServiceLayer, including base layer nodes.
      Parameters:
      application - the application
      Returns:
      a map of appLayerId to AppLayerContext
    • getAppLayerContextMap

      public Map<String,ViewerHelper.AppLayerContext> getAppLayerContextMap(Application application, List<String> appLayerIds)
      As #getAppLayerContextMap(), but only for the given appLayerIds.
      Parameters:
      application - the application
      appLayerIds - the list of appLayerIds to limit the result to
      Returns:
      a map of appLayerId to AppLayerContext
    • getAppLayerFullContextMap

      public Map<String,ViewerHelper.AppLayerFullContext> getAppLayerFullContextMap(Application application)
      As #getAppLayerContextMap(), but only with nodes that reference an existing GeoServiceLayer that has a feature type.
      Parameters:
      application - the application
      Returns:
      a map of appLayerId to AppLayerFullContext
    • getAppLayerFullContextMap

      public Map<String,ViewerHelper.AppLayerFullContext> getAppLayerFullContextMap(Application application, List<String> appLayerIds)
      As #getAppLayerFullContextMap(), but only for the given appLayerIds.
      Parameters:
      application - the application
      appLayerIds - the list of appLayerIds to limit the result to
      Returns:
      a map of appLayerId to AppLayerFullContext