コード例 #1
0
 public String getDefinitionText(DefinitionMapping association) {
   ConnectorDefinition definition =
       defStore.getDefinition(association.getDefinitionId(), association.getDefinitionVersion());
   if (definition != null) {
     String connectorDefinitionLabel = resourceProvider.getConnectorDefinitionLabel(definition);
     if (connectorDefinitionLabel == null) {
       connectorDefinitionLabel = definition.getId();
     }
     return connectorDefinitionLabel + " (" + definition.getVersion() + ")";
   } else {
     return "defintion not found for "
         + association.getDefinitionId()
         + " with version"
         + association.getDefinitionVersion();
   }
 }