Class ViewerHelper
java.lang.Object
org.tailormap.api.persistence.helper.ViewerHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionViewerHelper
(GeoServiceRepository geoServiceRepository, FeatureSourceRepository featureSourceRepository) -
Method Summary
Modifier and TypeMethodDescriptiongetAppLayerContextMap
(Application application) Returns a map of AppTreeLayerNode id to AppLayerContext, with only nodes that reference an existing GeoServiceLayer, including base layer nodes.getAppLayerContextMap
(Application application, List<String> appLayerIds) As #getAppLayerContextMap(), but only for the given appLayerIds.getAppLayerFullContextMap
(Application application) As #getAppLayerContextMap(), but only with nodes that reference an existing GeoServiceLayer that has a feature type.getAppLayerFullContextMap
(Application application, List<String> appLayerIds) As #getAppLayerFullContextMap(), but only for the given appLayerIds.
-
Constructor Details
-
ViewerHelper
public ViewerHelper(GeoServiceRepository geoServiceRepository, FeatureSourceRepository featureSourceRepository)
-
-
Method Details
-
getAppLayerContextMap
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 applicationappLayerIds
- 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 applicationappLayerIds
- the list of appLayerIds to limit the result to- Returns:
- a map of appLayerId to AppLayerFullContext
-