Class CardStaticViewSet

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified, Tool, HTMLRenderable

@Component @Configurable public class CardStaticViewSet extends CardStaticView
CardView field for displaying multiple values from StaticView based on comma-separated IDs. Extends CardStaticView to handle lists of IDs instead of single ID. Takes a field containing comma-separated IDs (e.g., "1,2,3"), performs StaticView lookup for each ID, and concatenates the results using a configurable separator.
Since:
21.0
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • CardStaticViewSet

      public CardStaticViewSet()
  • Method Details

    • setSEPARATOR

      public void setSEPARATOR(String separator)
      Sets the separator to use between multiple values in the output
      Parameters:
      separator - The separator string (default: ", ")
    • getSeparator

      public String getSeparator()
      Gets the separator used between multiple values in the output
      Returns:
      The separator string
    • setIDSEPARATOR

      public void setIDSEPARATOR(String idSeparator)
      Sets the separator used to split the input IDs
      Parameters:
      idSeparator - The ID separator string (default: ",")
    • getIdSeparator

      public String getIdSeparator()
      Gets the separator used to split the input IDs
      Returns:
      The ID separator string
    • getValueFromStaticView

      protected String getValueFromStaticView(Map<String,Object> data)
      Gets the value from StaticView for multiple IDs. Overrides parent method to handle comma-separated ID lists.
      Overrides:
      getValueFromStaticView in class CardStaticView
      Parameters:
      data - The data container
      Returns:
      The formatted values from StaticView lookups, separated by the configured separator
    • convertKeyValue

      protected Object convertKeyValue(String keyValue)
      Converts string key value to appropriate type for StaticView lookup. Tries Long first, then falls back to String.
      Parameters:
      keyValue - The string key value
      Returns:
      The converted key value