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 TypeMethodDescriptiongetFieldTrustedSources(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
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
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 parameterfieldNodeis a node which does not belong to the matching table.
-