Interface TrustedSources


public interface TrustedSources
Represents the trusted sources that have been configured for the matching table.

Code Sample

 public class CustomService implements UserService<TableViewEntitySelection> {

     public void setupDisplay(
          UserServiceSetupDisplayContext<TableViewEntitySelection> context,
          UserServiceDisplayConfigurator configurator) {

         AdaptationTable table = context.getEntitySelection().getTable();
         ConfigurationOperations configurationOperations = OperationsFactory
                          .getConfigurationOperations();
         TableConfiguration tableConfiguration = configurationOperations
                          .getTableConfiguration(table)

         TrustedSources trustedSources = tableConfiguration
                          .getTrustedSources();
         List<String> tableTrustedSources = trustedSources
                          .getTableTrustedSources();

         SchemaNode addressField = table
                          .getTableOccurrenceRootNode()
                          .getNode(
                              Path.parse(
                                  PathPerson._People._Address
                                      .getPathInSchema()
                                      .format()));
         List<String> addressTrustedSources = trustedSources
                          .getFieldTrustedSources(addressField);
    }
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    getFieldTrustedSources(com.orchestranetworks.schema.SchemaNode fieldNode)
    Gets a list of trusted sources.
    Get a list of trusted sources that have been configured for the matching table.
  • Method Details

    • getTableTrustedSources

      List<String> getTableTrustedSources()
      Get a list of trusted sources that have been configured for the matching table.
      Returns:
      List A list of trusted sources at the table level.

      Returns an empty list if this table has no configured trusted sources.

    • getFieldTrustedSources

      List<String> getFieldTrustedSources(com.orchestranetworks.schema.SchemaNode fieldNode)
      Gets a list of trusted sources.
      Parameters:
      fieldNode - Represents a matching table field declaration in the resolved data model.
      Returns:
      List A list of trusted sources of specific field in table.

      Returns an empty list if this field has no configured trusted sources.

      Throws:
      IllegalArgumentException - When the parameter fieldNode is a node which does not belong to the matching table.