Interface SampleDataExtension


  • public interface SampleDataExtension
    The SampleDataExtension describes a method to retrieve a selection of data to show to an end user. The connector can choose how to return the data and whether to return real data or synthetic data that is typical for this type of resource. The result is a map of names to lists of values. If the data is tabular, the names are the column names and the list of values are the values for that column. The order of the values in the lists is consistent column to column so that the first item in the lists are for row 1 etc. If the data is name-value pairs, the names are the names of the properties and the values are single elements in the list. If the data is a single element, or a nested structure, it is formatted as a string that goes in the first name in the map with a null list of values.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getSampleData​(int pageSize)
      Return sample data for the default user configured for this connector.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getSampleData​(java.lang.String userId, int pageSize)
      Return sample data for the calling user.