public void createLinks() { // create new link to object String linkType = type.getReferencedCnaLinkType(); String referencedEntityType = type.getReferencedEntityTypeId(); type.getReferenceResolver().createLinks(referencedEntityType, linkType, entity.getUuid()); writeLinkedObjectsToTextField(); }
/** * Get all linked objects for linktype and write their names to the text field. Uses a runtime * callback (reference resolver) to do this. */ private void writeLinkedObjectsToTextField() { String referencedCnaLinkType = type.getReferencedCnaLinkType(); String names = type.getReferenceResolver() .getTitlesOfLinkedObjects(referencedCnaLinkType, entity.getUuid()); text.setText(names); }