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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>
getFieldTrustedSources(com.orchestranetworks.schema.SchemaNode fieldNode)
Gets a list of trusted sources.java.util.List<java.lang.String>
getTableTrustedSources()
Get a list of trusted sources that have been configured for the matching table.
-
-
-
Method Detail
-
getTableTrustedSources
java.util.List<java.lang.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
java.util.List<java.lang.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:
java.lang.IllegalArgumentException
- When the parameterfieldNode
is a node which does not belong to the matching table.
-
-